Documentation
¶
Index ¶
- Variables
- type CloudConfig
- type CloudInitConfig
- type Service
- func (s *Service) AttachInstanceToElb(instance *infrav1.Instance) error
- func (s *Service) CheckJob(jobId string) error
- func (s *Service) CreateInstance(scope *scope.MachineScope, userData []byte, userDataFormat string) (*infrav1.Instance, error)
- func (s *Service) DetachInstanceFromElb(instance *infrav1.Instance) error
- func (s *Service) GetCoreSecurityGroups(scope *scope.MachineScope) ([]string, error)
- func (s *Service) InstanceIfExists(id *string) (*infrav1.Instance, error)
- func (s *Service) SDKToInstance(v *ecsModel.ShowServerResponse) (*infrav1.Instance, error)
- func (s *Service) ShowInstance(serverId string) (*ecsModel.ShowServerResponse, error)
- func (s *Service) TerminateInstance(id string) error
- type WriteFile
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInstanceNotFoundByID defines an error for when the instance with the provided provider ID is missing. ErrInstanceNotFoundByID = errors.New("failed to find instance by id") // ErrShowInstance defines an error for when ECS SDK returns error when showing instances. ErrShowInstance = errors.New("failed to show instance by id") )
Functions ¶
This section is empty.
Types ¶
type CloudConfig ¶ added in v0.1.0
type CloudConfig struct {
Region string
AccessKey string
SecretKey string
VPCID string
NeutronSubnetID string
}
CloudConfig holds the configuration for the cloud provider.
type CloudInitConfig ¶ added in v0.1.0
type CloudInitConfig struct {
WriteFiles []*WriteFile `yaml:"write_files,omitempty"`
RunCmd []string `yaml:"runcmd,omitempty"`
}
CloudInitConfig represents the structure of a cloud-init configuration.
type Service ¶
Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the ecs client.
func NewService ¶
NewService returns a new service given the ECS api client.
func (*Service) AttachInstanceToElb ¶
func (*Service) CreateInstance ¶
func (*Service) DetachInstanceFromElb ¶
func (*Service) GetCoreSecurityGroups ¶
func (s *Service) GetCoreSecurityGroups(scope *scope.MachineScope) ([]string, error)
func (*Service) InstanceIfExists ¶
func (*Service) SDKToInstance ¶
func (*Service) ShowInstance ¶
func (s *Service) ShowInstance(serverId string) (*ecsModel.ShowServerResponse, error)
func (*Service) TerminateInstance ¶
Click to show internal directories.
Click to hide internal directories.