Documentation ¶
Index ¶
- type CloudProvider
- func (c *CloudProvider) Create(ctx context.Context, machine *v1alpha5.Machine) (*v1alpha5.Machine, error)
- func (c *CloudProvider) Delete(ctx context.Context, machine *v1alpha5.Machine) error
- func (c *CloudProvider) Get(ctx context.Context, providerID string) (*v1alpha5.Machine, error)
- func (c *CloudProvider) GetInstanceTypes(ctx context.Context, provisioner *v1alpha5.Provisioner) ([]*cloudprovider.InstanceType, error)
- func (c *CloudProvider) IsMachineDrifted(ctx context.Context, machine *v1alpha5.Machine) (bool, error)
- func (c *CloudProvider) Link(ctx context.Context, machine *v1alpha5.Machine) error
- func (c *CloudProvider) List(ctx context.Context) ([]*v1alpha5.Machine, error)
- func (c *CloudProvider) LivenessProbe(req *http.Request) error
- func (c *CloudProvider) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudProvider ¶
type CloudProvider struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.19.0
func New(instanceTypeProvider *instancetype.Provider, instanceProvider *instance.Provider, kubeClient client.Client, amiProvider *amifamily.Provider) *CloudProvider
func (*CloudProvider) Create ¶
func (c *CloudProvider) Create(ctx context.Context, machine *v1alpha5.Machine) (*v1alpha5.Machine, error)
Create a machine given the constraints.
func (*CloudProvider) GetInstanceTypes ¶
func (c *CloudProvider) GetInstanceTypes(ctx context.Context, provisioner *v1alpha5.Provisioner) ([]*cloudprovider.InstanceType, error)
GetInstanceTypes returns all available InstanceTypes
func (*CloudProvider) IsMachineDrifted ¶ added in v0.21.0
func (*CloudProvider) Link ¶ added in v0.26.0
Link adds a tag to the cloudprovider machine to tell the cloudprovider that it's now owned by a Machine
func (*CloudProvider) LivenessProbe ¶ added in v0.19.0
func (c *CloudProvider) LivenessProbe(req *http.Request) error
func (*CloudProvider) Name ¶ added in v0.5.3
func (c *CloudProvider) Name() string
Name returns the CloudProvider implementation name.
Click to show internal directories.
Click to hide internal directories.