v1

package
v0.0.0-...-ffcb421 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const CloudProviderID = "launchpad"

Variables

This section is empty.

Functions

This section is empty.

Types

type LaunchpadClient

type LaunchpadClient struct {
	v1.NotImplCloudClient
	// contains filtered or unexported fields
}

func NewLaunchpadClient

func NewLaunchpadClient(launchpadCredential LaunchpadCredential, opts ...LaunchpadClientOption) (*LaunchpadClient, error)

func (*LaunchpadClient) CreateInstance

func (c *LaunchpadClient) CreateInstance(ctx context.Context, attrs v1.CreateInstanceAttrs) (*v1.Instance, error)

func (*LaunchpadClient) GetAPIType

func (c *LaunchpadClient) GetAPIType() v1.APIType

func (LaunchpadClient) GetCapabilities

func (c LaunchpadClient) GetCapabilities(_ context.Context) (v1.Capabilities, error)

GetCapabilities implements v1.CloudCredential.

func (*LaunchpadClient) GetCloudProviderID

func (c *LaunchpadClient) GetCloudProviderID() v1.CloudProviderID

func (*LaunchpadClient) GetInstance

func (*LaunchpadClient) GetInstanceTypes

func (c *LaunchpadClient) GetInstanceTypes(ctx context.Context, args v1.GetInstanceTypeArgs) ([]v1.InstanceType, error)

func (*LaunchpadClient) GetLocations

func (c *LaunchpadClient) GetLocations(ctx context.Context, args v1.GetLocationsArgs) ([]v1.Location, error)

func (*LaunchpadClient) GetReferenceID

func (c *LaunchpadClient) GetReferenceID() string

func (*LaunchpadClient) ListInstances

func (c *LaunchpadClient) ListInstances(ctx context.Context, args v1.ListInstancesArgs) ([]v1.Instance, error)

func (*LaunchpadClient) MergeInstanceForUpdate

func (c *LaunchpadClient) MergeInstanceForUpdate(_ v1.Instance, newInstance v1.Instance) v1.Instance

func (*LaunchpadClient) MergeInstanceTypeForUpdate

func (c *LaunchpadClient) MergeInstanceTypeForUpdate(_ v1.InstanceType, newInstanceType v1.InstanceType) v1.InstanceType

func (*LaunchpadClient) TerminateInstance

func (c *LaunchpadClient) TerminateInstance(ctx context.Context, instanceID v1.CloudProviderInstanceID) error

type LaunchpadClientOption

type LaunchpadClientOption func(c *LaunchpadClient)

func WithLogger

func WithLogger(logger v1.Logger) LaunchpadClientOption

type LaunchpadCredential

type LaunchpadCredential struct {
	RefID    string
	APIToken string `json:"api_token"`
	APIURL   string `json:"api_url"`
}

func NewLaunchpadCredential

func NewLaunchpadCredential(refID, apiToken, apiURL string) *LaunchpadCredential

func (*LaunchpadCredential) GetAPIType

func (c *LaunchpadCredential) GetAPIType() v1.APIType

GetAPIType implements v1.CloudCredential.

func (*LaunchpadCredential) GetCapabilities

func (c *LaunchpadCredential) GetCapabilities(ctx context.Context) (v1.Capabilities, error)

GetCapabilities returns the capabilities for Launchpad

func (*LaunchpadCredential) GetCloudProviderID

func (c *LaunchpadCredential) GetCloudProviderID() v1.CloudProviderID

GetCloudProviderID implements v1.CloudCredential.

func (*LaunchpadCredential) GetInstancePollTime

func (c *LaunchpadCredential) GetInstancePollTime() time.Duration

func (*LaunchpadCredential) GetReferenceID

func (c *LaunchpadCredential) GetReferenceID() string

GetReferenceID implements v1.CloudCredential.

func (*LaunchpadCredential) GetTenantID

func (c *LaunchpadCredential) GetTenantID() (string, error)

GetTenantID implements v1.CloudCredential.

func (*LaunchpadCredential) MakeClient

func (c *LaunchpadCredential) MakeClient(ctx context.Context, location string) (v1.CloudClient, error)

MakeClient implements v1.CloudCredential.

func (*LaunchpadCredential) MakeClientWithOptions

func (c *LaunchpadCredential) MakeClientWithOptions(_ context.Context, _ string, opts ...LaunchpadClientOption) (v1.CloudClient, error)

func (*LaunchpadCredential) SetDefaults

func (c *LaunchpadCredential) SetDefaults()

func (*LaunchpadCredential) Validate

func (c *LaunchpadCredential) Validate() error

Directories

Path Synopsis
gen
scripts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL