(Addons)
- ListAddonTypes - List addon types
Gets information about the available addon types
package main
import(
"github.com/speakeasy-sdks/northflank-go/v3/pkg/models/shared"
northflankgo "github.com/speakeasy-sdks/northflank-go/v3"
"context"
"log"
)
func main() {
s := northflankgo.New(
northflankgo.WithSecurity(shared.Security{
BasicAuth: &shared.SchemeBasicAuth{
Password: "<YOUR_PASSWORD_HERE>",
Username: "<YOUR_USERNAME_HERE>",
},
}),
)
ctx := context.Background()
res, err := s.Addons.ListAddonTypes(ctx)
if err != nil {
log.Fatal(err)
}
if res.AddonTypesResult != nil {
// handle response
}
}
Parameter | Type | Required | Description |
---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. |
*operations.ListAddonTypesResponse, error
Error Object | Status Code | Content Type |
---|---|---|
sdkerrors.SDKError | 4xx-5xx | / |