Versions in this module Expand all Collapse all v1 v1.15.1 Feb 17, 2020 v1.15.0 Feb 17, 2020 Changes in this version + func DeleteInstance(cloud Cloud, instance *cloudinstances.CloudInstanceGroupMember) error + func DeleteInstanceGroup(cloud Cloud, group *cloudinstances.CloudInstanceGroup) error + func GetCloudGroups(cloud Cloud, cluster *kops.Cluster, instanceGroups []*kops.InstanceGroup, ...) (map[string]*cloudinstances.CloudInstanceGroup, error) + func ListElastigroupResources(cloud Cloud, clusterName string) ([]*resources.Resource, error) + func ListOceanResources(cloud Cloud, clusterName string) ([]*resources.Resource, error) + func ListResources(cloud Cloud, clusterName string) ([]*resources.Resource, error) + func LoadCredentials() (credentials.Value, error) + func NewConfig() *spotinst.Config + func NewCredentials() *credentials.Credentials + func NewStdLogger() log.Logger + type Cloud interface + Elastigroup func() InstanceGroupService + LaunchSpec func() LaunchSpecService + Ocean func() InstanceGroupService + func NewCloud(cloudProviderID kops.CloudProviderID) (Cloud, error) + type Instance interface + CreatedAt func() time.Time + Id func() string + Obj func() interface{} + type InstanceGroup interface + CreatedAt func() time.Time + Id func() string + MaxSize func() int + MinSize func() int + Name func() string + Obj func() interface{} + Type func() InstanceGroupType + UpdatedAt func() time.Time + func NewElastigroup(cloudProviderID kops.CloudProviderID, obj interface{}) (InstanceGroup, error) + func NewInstanceGroup(cloudProviderID kops.CloudProviderID, instanceGroupType InstanceGroupType, ...) (InstanceGroup, error) + func NewOcean(cloudProviderID kops.CloudProviderID, obj interface{}) (InstanceGroup, error) + type InstanceGroupService interface + Create func(ctx context.Context, group InstanceGroup) (string, error) + Delete func(ctx context.Context, groupID string) error + Detach func(ctx context.Context, groupID string, instanceIDs []string) error + Instances func(ctx context.Context, groupID string) ([]Instance, error) + List func(ctx context.Context) ([]InstanceGroup, error) + Read func(ctx context.Context, groupID string) (InstanceGroup, error) + Update func(ctx context.Context, group InstanceGroup) error + type InstanceGroupType string + const InstanceGroupElastigroup + const InstanceGroupOcean + type LaunchSpec interface + CreatedAt func() time.Time + Id func() string + Name func() string + Obj func() interface{} + OceanId func() string + UpdatedAt func() time.Time + func NewLaunchSpec(cloudProviderID kops.CloudProviderID, obj interface{}) (LaunchSpec, error) + type LaunchSpecService interface + Create func(ctx context.Context, spec LaunchSpec) (string, error) + Delete func(ctx context.Context, specID string) error + List func(ctx context.Context, oceanID string) ([]LaunchSpec, error) + Read func(ctx context.Context, specID string) (LaunchSpec, error) + Update func(ctx context.Context, spec LaunchSpec) error + type ResourceType string + const ResourceTypeInstanceGroup + const ResourceTypeLaunchSpec