alimodel

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CloudTagInstanceGroupRolePrefix = "k8s.io/role/"
View Source
const DefaultInstanceType = "ecs.n2.medium"
View Source
const DefaultVolumeType = "cloud_ssd"
View Source
const IpProtocolAll = "all"
View Source
const IpProtocolTCP = "tcp"
View Source
const IpProtocolUDP = "udp"
View Source
const LoadBalancerListenerBandwidth = -1
View Source
const LoadBalancerListenerStatus = "running"
View Source
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

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

type FirewallModelBuilder

type FirewallModelBuilder struct {
	*ALIModelContext
	Lifecycle *fi.Lifecycle
}

FirewallModelBuilder configures firewall network objects

func (*FirewallModelBuilder) Build

type NetWorkModelBuilder

type NetWorkModelBuilder struct {
	*ALIModelContext
	Lifecycle *fi.Lifecycle
}

NetWorkModelBuilder configures VPC network objects

func (*NetWorkModelBuilder) Build

type RAMModelBuilder

type RAMModelBuilder struct {
	*ALIModelContext

	Lifecycle *fi.Lifecycle
}

func (*RAMModelBuilder) Build

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

type ScalingGroupModelBuilder

type ScalingGroupModelBuilder struct {
	*ALIModelContext

	BootstrapScript   *model.BootstrapScript
	Lifecycle         *fi.Lifecycle
	SecurityLifecycle *fi.Lifecycle
}

ScalingGroupModelBuilder configures ScalingGroup objects

func (*ScalingGroupModelBuilder) Build

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL