alimodel

package
v0.0.0-...-6060be6 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoadBalancerListenerStatus    = "running"
	LoadBalancerListenerBandwidth = -1
)
View Source
const (
	IpProtocolTCP = "tcp"
	IpProtocolUDP = "udp"
)
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 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 context.go, adjust parameters length to meet AliCloud requirements

func (*ALIModelContext) GetNameForEIP

func (c *ALIModelContext) GetNameForEIP() string

func (*ALIModelContext) GetNameForLoadBalancer

func (c *ALIModelContext) GetNameForLoadBalancer() string

func (*ALIModelContext) GetNameForNatGateway

func (c *ALIModelContext) GetNameForNatGateway() 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) GetNameForVSwitchSNAT

func (c *ALIModelContext) GetNameForVSwitchSNAT(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) LinkToEIP

func (c *ALIModelContext) LinkToEIP() *alitasks.EIP

LinkToEIP returns the EIP object the NateGatway is associated to

func (*ALIModelContext) LinkToNatGateway

func (c *ALIModelContext) LinkToNatGateway() *alitasks.NatGateway

LinkToNateGateway returns the NatGateway 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

func (*ALIModelContext) LinkToVSwitchSNAT

func (c *ALIModelContext) LinkToVSwitchSNAT(subnetName string) *alitasks.VSwitch

LinkToVSwitchSNAT returns the VSwitchSNAT 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