Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.8 KB

README.md

File metadata and controls

57 lines (43 loc) · 1.8 KB

Addons

(Addons)

Available Operations

ListAddonTypes

Gets information about the available addon types

Example Usage

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
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.

Response

*operations.ListAddonTypesResponse, error

Error Object Status Code Content Type
sdkerrors.SDKError 4xx-5xx /