Documentation ¶
Index ¶
- Variables
- func GetCapacityType(instance *ec2.Instance) string
- type Provider
- func (p *Provider) Create(ctx context.Context, nodeTemplate *v1alpha1.AWSNodeTemplate, ...) (*ec2.Instance, error)
- func (p *Provider) Delete(ctx context.Context, id string) error
- func (p *Provider) Get(ctx context.Context, id string) (*ec2.Instance, error)
- func (p *Provider) Link(ctx context.Context, id string) error
- func (p *Provider) List(ctx context.Context) ([]*ec2.Instance, error)
- func (p *Provider) Update(ctx context.Context, machine *v1alpha5.Machine) (*ec2.Instance, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// MaxInstanceTypes defines the number of instance type options to pass to CreateFleet
MaxInstanceTypes = 60
)
Functions ¶
func GetCapacityType ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(ctx context.Context, region string, ec2api ec2iface.EC2API, unavailableOfferings *cache.UnavailableOfferings, instanceTypeProvider *instancetype.Provider, subnetProvider *subnet.Provider, launchTemplateProvider *launchtemplate.Provider) *Provider
func (*Provider) Create ¶
func (p *Provider) Create(ctx context.Context, nodeTemplate *v1alpha1.AWSNodeTemplate, machine *v1alpha5.Machine, instanceTypes []*cloudprovider.InstanceType) (*ec2.Instance, error)
Click to show internal directories.
Click to hide internal directories.