Documentation ¶
Index ¶
Constants ¶
View Source
const ( TagClusterName = "KubernetesCluster" TagNameRolePrefix = "k8s.io/role/" TagNameEtcdClusterPrefix = "k8s.io/etcd/" TagRoleMaster = "master" )
Variables ¶
View Source
var KubernetesKopsIdentity = fmt.Sprintf("Kubernetes.Kops/%s", prj.Version)
This is for statistic purpose.
Functions ¶
func FindAutoscalingGroups ¶
func FindAutoscalingGroups(c ALICloud) ([]ess.ScalingGroupItemType, error)
FindAutoscalingGroups finds autoscaling groups matching the specified tags This isn't entirely trivial because autoscaling doesn't let us filter with as much precision as we would like
func FindRegion ¶
FindRegion determines the region from the zones specified in the cluster
Types ¶
type ALIAPITarget ¶
type ALIAPITarget struct {
Cloud ALICloud
}
func NewALIAPITarget ¶
func NewALIAPITarget(cloud ALICloud) *ALIAPITarget
func (*ALIAPITarget) ProcessDeletions ¶
func (t *ALIAPITarget) ProcessDeletions() bool
type ALICloud ¶
type ALICloud interface { fi.Cloud // Clients that use official Alicloud go sdk SLB() *slbnew.Client // Since package github.com/denverdino/aliyungo is not actively maintained, // clients that use github.com/denverdino/aliyungo, will be deprecated after // the above official SDK clients covers all of them EcsClient() *ecs.Client SlbClient() *slb.Client RamClient() *ram.RamClient EssClient() *ess.Client VpcClient() *ecs.Client AddClusterTags(tags map[string]string) GetTags(resourceId string, resourceType string) (map[string]string, error) CreateTags(resourceId string, resourceType string, tags map[string]string) error RemoveTags(resourceId string, resourceType string, tags map[string]string) error GetClusterTags() map[string]string }
Click to show internal directories.
Click to hide internal directories.