resources

package
v0.0.0-...-a2c64ce Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 19 Imported by: 10

Documentation

Index

Constants

View Source
const (
	MasterIPAttempts               = 40
	MasterIPSleepSecondsPerAttempt = 3
)
View Source
const (
	KubicornAutoCreatedGroup = "A fabulous security group created by Kubicorn for cluster [%s]"
)

Variables

Functions

func B

func B(b bool) *bool

func I64

func I64(i int) *int64

func S

func S(format string, a ...interface{}) *string

Types

type Asg

type Asg struct {
	Shared
	MinCount     int
	MaxCount     int
	InstanceType string
	Image        string
	ServerPool   *cluster.ServerPool
}

func (*Asg) Actual

func (r *Asg) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Asg) Apply

func (r *Asg) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Asg) Delete

func (r *Asg) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Asg) Expected

func (r *Asg) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

type IAMPolicy

type IAMPolicy struct {
	Shared
	Document string
}

type IAMRole

type IAMRole struct {
	Shared
	Policies          []*IAMPolicy
	PolicyAttachments []string
}

type InstanceProfile

type InstanceProfile struct {
	Shared
	Role       *IAMRole
	ServerPool *cluster.ServerPool
}

func (*InstanceProfile) Actual

func (r *InstanceProfile) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*InstanceProfile) Apply

func (r *InstanceProfile) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*InstanceProfile) Delete

func (r *InstanceProfile) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*InstanceProfile) Expected

func (r *InstanceProfile) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

type InternetGateway

type InternetGateway struct {
	Shared
}

func (*InternetGateway) Actual

func (r *InternetGateway) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*InternetGateway) Apply

func (r *InternetGateway) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*InternetGateway) Delete

func (r *InternetGateway) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*InternetGateway) Expected

func (r *InternetGateway) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

type KeyPair

type KeyPair struct {
	Shared
	PublicKeyData        string
	PublicKeyPath        string
	PublicKeyFingerprint string
	User                 string
}

func (*KeyPair) Actual

func (r *KeyPair) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*KeyPair) Apply

func (r *KeyPair) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*KeyPair) Delete

func (r *KeyPair) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*KeyPair) Expected

func (r *KeyPair) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

type Lc

type Lc struct {
	Shared
	InstanceType     string
	Image            string
	SpotPrice        string
	InstanceProfile  string
	ServerPool       *cluster.ServerPool
	BootstrapScripts []string
	UserData         []byte
}

func (*Lc) Actual

func (r *Lc) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Lc) Apply

func (r *Lc) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Lc) Delete

func (r *Lc) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Lc) Expected

func (r *Lc) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

type RouteTable

type RouteTable struct {
	Shared
	ClusterSubnet *cluster.Subnet
	ServerPool    *cluster.ServerPool
}

func (*RouteTable) Actual

func (r *RouteTable) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*RouteTable) Apply

func (r *RouteTable) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*RouteTable) Delete

func (r *RouteTable) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*RouteTable) Expected

func (r *RouteTable) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

type Rule

type Rule struct {
	IngressFromPort int
	IngressToPort   int
	IngressSource   string
	IngressProtocol string
}

type SecurityGroup

type SecurityGroup struct {
	Shared
	Firewall   *cluster.Firewall
	ServerPool *cluster.ServerPool
	Rules      []*Rule
}

func (*SecurityGroup) Actual

func (r *SecurityGroup) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*SecurityGroup) Apply

func (r *SecurityGroup) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*SecurityGroup) Delete

func (r *SecurityGroup) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*SecurityGroup) Expected

func (r *SecurityGroup) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

type Shared

type Shared struct {
	Identifier string
	Name       string
	Tags       map[string]string
}

type Subnet

type Subnet struct {
	Shared
	ClusterSubnet *cluster.Subnet
	ServerPool    *cluster.ServerPool
	CIDR          string
	VpcID         string
	Zone          string
}

func (*Subnet) Actual

func (r *Subnet) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Subnet) Apply

func (r *Subnet) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Subnet) Delete

func (r *Subnet) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Subnet) Expected

func (r *Subnet) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

type Vpc

type Vpc struct {
	Shared
	CIDR string
}

func (*Vpc) Actual

func (r *Vpc) Actual(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Vpc) Apply

func (r *Vpc) Apply(actual, expected cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Vpc) Delete

func (r *Vpc) Delete(actual cloud.Resource, immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

func (*Vpc) Expected

func (r *Vpc) Expected(immutable *cluster.Cluster) (*cluster.Cluster, cloud.Resource, error)

Jump to

Keyboard shortcuts

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