Documentation ¶
Index ¶
- Constants
- type ALIModelContext
- func (c *ALIModelContext) CloudTagsForInstanceGroup(ig *kops.InstanceGroup) (map[string]string, error)
- func (c *ALIModelContext) GetNameForLoadBalancer() string
- func (c *ALIModelContext) GetNameForRAM(role kops.InstanceGroupRole) string
- func (c *ALIModelContext) GetNameForSSHKey() string
- func (c *ALIModelContext) GetNameForSecurityGroup(role kops.InstanceGroupRole) string
- func (c *ALIModelContext) GetNameForVPC() string
- func (c *ALIModelContext) GetNameForVSwitch(subnetName string) string
- func (c *ALIModelContext) GetScalingGroupName(ig *kops.InstanceGroup) string
- func (c *ALIModelContext) LinkLoadBalancer() *alitasks.LoadBalancer
- func (c *ALIModelContext) LinkToRAMRole(role kops.InstanceGroupRole) *alitasks.RAMRole
- func (c *ALIModelContext) LinkToSSHKey() *alitasks.SSHKey
- func (c *ALIModelContext) LinkToScalingGroup(ig *kops.InstanceGroup) *alitasks.ScalingGroup
- func (c *ALIModelContext) LinkToSecurityGroup(role kops.InstanceGroupRole) *alitasks.SecurityGroup
- func (c *ALIModelContext) LinkToVPC() *alitasks.VPC
- func (c *ALIModelContext) LinkToVSwitch(subnetName string) *alitasks.VSwitch
- type APILoadBalancerModelBuilder
- type AssumeRolePolicyDocument
- type AssumeRolePolicyItem
- type AssumeRolePolicyPrincpal
- type ExternalAccessModelBuilder
- type FirewallModelBuilder
- type NetWorkModelBuilder
- type RAMModelBuilder
- type SSHKeyModelBuilder
- type ScalingGroupModelBuilder
Constants ¶
const CloudTagInstanceGroupRolePrefix = "k8s.io/role/"
const DefaultInstanceType = "ecs.n2.medium"
const DefaultVolumeType = "cloud_ssd"
const IpProtocolAll = "all"
const IpProtocolTCP = "tcp"
const IpProtocolUDP = "udp"
const LoadBalancerListenerBandwidth = -1
const LoadBalancerListenerStatus = "running"
const PolicyType = string(ram.Custom)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ALIModelContext ¶
type ALIModelContext struct {
*model.KopsModelContext
}
func (*ALIModelContext) CloudTagsForInstanceGroup ¶
func (c *ALIModelContext) CloudTagsForInstanceGroup(ig *kops.InstanceGroup) (map[string]string, error)
CloudTagsForInstanceGroup computes the tags to apply to instances in the specified InstanceGroup Copy from contex.go, adjust parameters length to meet AliCloud requirements
func (*ALIModelContext) GetNameForLoadBalancer ¶
func (c *ALIModelContext) GetNameForLoadBalancer() string
func (*ALIModelContext) GetNameForRAM ¶
func (c *ALIModelContext) GetNameForRAM(role kops.InstanceGroupRole) string
func (*ALIModelContext) GetNameForSSHKey ¶
func (c *ALIModelContext) GetNameForSSHKey() string
func (*ALIModelContext) GetNameForSecurityGroup ¶
func (c *ALIModelContext) GetNameForSecurityGroup(role kops.InstanceGroupRole) string
func (*ALIModelContext) GetNameForVPC ¶
func (c *ALIModelContext) GetNameForVPC() string
func (*ALIModelContext) GetNameForVSwitch ¶
func (c *ALIModelContext) GetNameForVSwitch(subnetName string) string
func (*ALIModelContext) GetScalingGroupName ¶
func (c *ALIModelContext) GetScalingGroupName(ig *kops.InstanceGroup) string
func (*ALIModelContext) LinkLoadBalancer ¶
func (c *ALIModelContext) LinkLoadBalancer() *alitasks.LoadBalancer
LinkLoadBalancer returns the LoadBalancer object the cluster is located in
func (*ALIModelContext) LinkToRAMRole ¶
func (c *ALIModelContext) LinkToRAMRole(role kops.InstanceGroupRole) *alitasks.RAMRole
func (*ALIModelContext) LinkToSSHKey ¶
func (c *ALIModelContext) LinkToSSHKey() *alitasks.SSHKey
func (*ALIModelContext) LinkToScalingGroup ¶
func (c *ALIModelContext) LinkToScalingGroup(ig *kops.InstanceGroup) *alitasks.ScalingGroup
func (*ALIModelContext) LinkToSecurityGroup ¶
func (c *ALIModelContext) LinkToSecurityGroup(role kops.InstanceGroupRole) *alitasks.SecurityGroup
LinkToSecurityGroup returns the SecurityGroup with specific name
func (*ALIModelContext) LinkToVPC ¶
func (c *ALIModelContext) LinkToVPC() *alitasks.VPC
LinkToVPC returns the VPC object the cluster is located in
func (*ALIModelContext) LinkToVSwitch ¶
func (c *ALIModelContext) LinkToVSwitch(subnetName string) *alitasks.VSwitch
LinkToVSwitch returns the VSwitch object the cluster is located in
type APILoadBalancerModelBuilder ¶
type APILoadBalancerModelBuilder struct { *ALIModelContext Lifecycle *fi.Lifecycle }
APILoadBalancerModelBuilder builds a LoadBalancer for accessing the API
func (*APILoadBalancerModelBuilder) Build ¶
func (b *APILoadBalancerModelBuilder) Build(c *fi.ModelBuilderContext) error
type AssumeRolePolicyDocument ¶
type AssumeRolePolicyDocument struct { Statement []AssumeRolePolicyItem Version string }
type AssumeRolePolicyItem ¶
type AssumeRolePolicyItem struct { Action string Effect string Principal AssumeRolePolicyPrincpal }
type AssumeRolePolicyPrincpal ¶
type AssumeRolePolicyPrincpal struct {
Service []string
}
type ExternalAccessModelBuilder ¶
type ExternalAccessModelBuilder struct { *ALIModelContext Lifecycle *fi.Lifecycle }
ExternalAccessModelBuilder configures security group rules for external access (SSHAccess, KubernetesAPIAccess)
func (*ExternalAccessModelBuilder) Build ¶
func (b *ExternalAccessModelBuilder) Build(c *fi.ModelBuilderContext) error
type FirewallModelBuilder ¶
type FirewallModelBuilder struct { *ALIModelContext Lifecycle *fi.Lifecycle }
FirewallModelBuilder configures firewall network objects
func (*FirewallModelBuilder) Build ¶
func (b *FirewallModelBuilder) Build(c *fi.ModelBuilderContext) error
type NetWorkModelBuilder ¶
type NetWorkModelBuilder struct { *ALIModelContext Lifecycle *fi.Lifecycle }
NetWorkModelBuilder configures VPC network objects
func (*NetWorkModelBuilder) Build ¶
func (b *NetWorkModelBuilder) Build(c *fi.ModelBuilderContext) error
type RAMModelBuilder ¶
type RAMModelBuilder struct { *ALIModelContext Lifecycle *fi.Lifecycle }
func (*RAMModelBuilder) Build ¶
func (b *RAMModelBuilder) Build(c *fi.ModelBuilderContext) error
func (*RAMModelBuilder) CreatePolicyDocument ¶
func (b *RAMModelBuilder) CreatePolicyDocument() string
func (*RAMModelBuilder) CreateRolePolicyDocument ¶
func (b *RAMModelBuilder) CreateRolePolicyDocument() string
type SSHKeyModelBuilder ¶
type SSHKeyModelBuilder struct { *ALIModelContext Lifecycle *fi.Lifecycle }
SSHKeyModelBuilder configures SSH objects
func (*SSHKeyModelBuilder) Build ¶
func (b *SSHKeyModelBuilder) Build(c *fi.ModelBuilderContext) error
type ScalingGroupModelBuilder ¶
type ScalingGroupModelBuilder struct { *ALIModelContext BootstrapScript *model.BootstrapScript Lifecycle *fi.Lifecycle SecurityLifecycle *fi.Lifecycle }
ScalingGroupModelBuilder configures ScalingGroup objects
func (*ScalingGroupModelBuilder) Build ¶
func (b *ScalingGroupModelBuilder) Build(c *fi.ModelBuilderContext) error