Documentation
¶
Index ¶
- type DefaultProvider
- func (p *DefaultProvider) Create(ctx context.Context, nodeClass *v1alpha1.ECSNodeClass, ...) (*Instance, error)
- func (p *DefaultProvider) CreateTags(ctx context.Context, serverID string, tags map[string]string) error
- func (p *DefaultProvider) Delete(ctx context.Context, providerID string) error
- func (p *DefaultProvider) Get(ctx context.Context, providerID 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 ¶
type DefaultProvider struct {
// contains filtered or unexported fields
}
func (*DefaultProvider) Create ¶
func (p *DefaultProvider) Create(ctx context.Context, nodeClass *v1alpha1.ECSNodeClass, nodeClaim *karpv1.NodeClaim, tags map[string]string, instanceTypes []*cloudprovider.InstanceType) (*Instance, error)
func (*DefaultProvider) CreateTags ¶
func (*DefaultProvider) Delete ¶
func (p *DefaultProvider) Delete(ctx context.Context, providerID string) error
type Instance ¶
type Instance struct {
// NodeID is the CCE node UID.
NodeID string
// ServerID is the underlying ECS server UUID returned by CCE.
ServerID string
// Flavor is the ECS flavor used to create the node.
Flavor string
// Zone is the availability zone of the node.
Zone string
// SubnetID is the SubnetID of the node.
SubnetID string
}
type Provider ¶
type Provider interface {
Create(context.Context, *v1alpha1.ECSNodeClass, *karpv1.NodeClaim, map[string]string, []*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.