Documentation
¶
Index ¶
- Constants
- type LaunchpadClient
- func (c *LaunchpadClient) CreateInstance(ctx context.Context, attrs v1.CreateInstanceAttrs) (*v1.Instance, error)
- func (c *LaunchpadClient) GetAPIType() v1.APIType
- func (c LaunchpadClient) GetCapabilities(_ context.Context) (v1.Capabilities, error)
- func (c *LaunchpadClient) GetCloudProviderID() v1.CloudProviderID
- func (c *LaunchpadClient) GetInstance(ctx context.Context, id v1.CloudProviderInstanceID) (*v1.Instance, error)
- func (c *LaunchpadClient) GetInstanceTypes(ctx context.Context, args v1.GetInstanceTypeArgs) ([]v1.InstanceType, error)
- func (c *LaunchpadClient) GetLocations(ctx context.Context, args v1.GetLocationsArgs) ([]v1.Location, error)
- func (c *LaunchpadClient) GetReferenceID() string
- func (c *LaunchpadClient) ListInstances(ctx context.Context, args v1.ListInstancesArgs) ([]v1.Instance, error)
- func (c *LaunchpadClient) MergeInstanceForUpdate(_ v1.Instance, newInstance v1.Instance) v1.Instance
- func (c *LaunchpadClient) MergeInstanceTypeForUpdate(_ v1.InstanceType, newInstanceType v1.InstanceType) v1.InstanceType
- func (c *LaunchpadClient) TerminateInstance(ctx context.Context, instanceID v1.CloudProviderInstanceID) error
- type LaunchpadClientOption
- type LaunchpadCredential
- func (c *LaunchpadCredential) GetAPIType() v1.APIType
- func (c *LaunchpadCredential) GetCapabilities(ctx context.Context) (v1.Capabilities, error)
- func (c *LaunchpadCredential) GetCloudProviderID() v1.CloudProviderID
- func (c *LaunchpadCredential) GetInstancePollTime() time.Duration
- func (c *LaunchpadCredential) GetReferenceID() string
- func (c *LaunchpadCredential) GetTenantID() (string, error)
- func (c *LaunchpadCredential) MakeClient(ctx context.Context, location string) (v1.CloudClient, error)
- func (c *LaunchpadCredential) MakeClientWithOptions(_ context.Context, _ string, opts ...LaunchpadClientOption) (v1.CloudClient, error)
- func (c *LaunchpadCredential) SetDefaults()
- func (c *LaunchpadCredential) Validate() error
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 (c *LaunchpadClient) GetInstance(ctx context.Context, id v1.CloudProviderInstanceID) (*v1.Instance, error)
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 (*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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.