Documentation ¶
Index ¶
- type DefaultProvider
- func (p *DefaultProvider) Create(ctx context.Context, nodeClass *v1beta1.EC2NodeClass, ...) (*Instance, error)
- func (p *DefaultProvider) CreateTags(ctx context.Context, id string, tags map[string]string) error
- func (p *DefaultProvider) Delete(ctx context.Context, id string) error
- func (p *DefaultProvider) Get(ctx context.Context, id string) (*Instance, error)
- func (p *DefaultProvider) List(ctx context.Context) ([]*Instance, error)
- type Instance
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultProvider ¶ added in v0.36.0
type DefaultProvider struct {
// contains filtered or unexported fields
}
func NewDefaultProvider ¶ added in v0.36.0
func NewDefaultProvider(ctx context.Context, region string, ec2api ec2iface.EC2API, unavailableOfferings *cache.UnavailableOfferings, instanceTypeProvider instancetype.Provider, subnetProvider subnet.Provider, launchTemplateProvider launchtemplate.Provider) *DefaultProvider
func (*DefaultProvider) Create ¶ added in v0.36.0
func (p *DefaultProvider) Create(ctx context.Context, nodeClass *v1beta1.EC2NodeClass, nodeClaim *corev1beta1.NodeClaim, instanceTypes []*cloudprovider.InstanceType) (*Instance, error)
func (*DefaultProvider) CreateTags ¶ added in v0.36.0
func (*DefaultProvider) Delete ¶ added in v0.36.0
func (p *DefaultProvider) Delete(ctx context.Context, id string) error
type Instance ¶
type Instance struct { LaunchTime time.Time State string ID string ImageID string Type string Zone string CapacityType string SecurityGroupIDs []string SubnetID string Tags map[string]string EFAEnabled bool }
Instance is an internal data representation of either an ec2.Instance or an ec2.FleetInstance It contains all the common data that is needed to inject into the Machine from either of these responses
func NewInstance ¶
func NewInstanceFromFleet ¶
type Provider ¶
type Provider interface { Create(context.Context, *v1beta1.EC2NodeClass, *corev1beta1.NodeClaim, []*cloudprovider.InstanceType) (*Instance, error) Get(context.Context, string) (*Instance, error) List(context.Context) ([]*Instance, error) Delete(context.Context, string) error CreateTags(context.Context, string, map[string]string) error }
Click to show internal directories.
Click to hide internal directories.