resources

package
v0.0.0-...-6cddc57 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KUBICORN_AUTO_CREATED_GROUP = "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(known *cluster.Cluster) (cloud.Resource, error)

func (*Asg) Apply

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

func (*Asg) Delete

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

func (*Asg) Expected

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

func (*Asg) Render

func (r *Asg) Render(renderResource cloud.Resource, renderCluster *cluster.Cluster) (*cluster.Cluster, error)

func (*Asg) Tag

func (r *Asg) Tag(tags map[string]string) error

type InternetGateway

type InternetGateway struct {
	Shared
}

func (*InternetGateway) Actual

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

func (*InternetGateway) Apply

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

func (*InternetGateway) Delete

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

func (*InternetGateway) Expected

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

func (*InternetGateway) Render

func (r *InternetGateway) Render(renderResource cloud.Resource, renderCluster *cluster.Cluster) (*cluster.Cluster, error)

func (*InternetGateway) Tag

func (r *InternetGateway) Tag(tags map[string]string) error

type KeyPair

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

func (*KeyPair) Actual

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

func (*KeyPair) Apply

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

func (*KeyPair) Delete

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

func (*KeyPair) Expected

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

func (*KeyPair) Render

func (r *KeyPair) Render(renderResource cloud.Resource, renderCluster *cluster.Cluster) (*cluster.Cluster, error)

func (*KeyPair) Tag

func (r *KeyPair) Tag(tags map[string]string) error

type Lc

type Lc struct {
	Shared
	InstanceType string
	Image        string
	ServerPool   *cluster.ServerPool
}

func (*Lc) Actual

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

func (*Lc) Apply

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

func (*Lc) Delete

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

func (*Lc) Expected

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

func (*Lc) Render

func (r *Lc) Render(renderResource cloud.Resource, renderCluster *cluster.Cluster) (*cluster.Cluster, error)

func (*Lc) Tag

func (r *Lc) Tag(tags map[string]string) error

type RouteTable

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

func (*RouteTable) Actual

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

func (*RouteTable) Apply

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

func (*RouteTable) Delete

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

func (*RouteTable) Expected

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

func (*RouteTable) Render

func (r *RouteTable) Render(renderResource cloud.Resource, renderCluster *cluster.Cluster) (*cluster.Cluster, error)

func (*RouteTable) Tag

func (r *RouteTable) Tag(tags map[string]string) 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(known *cluster.Cluster) (cloud.Resource, error)

func (*SecurityGroup) Apply

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

func (*SecurityGroup) Delete

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

func (*SecurityGroup) Expected

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

func (*SecurityGroup) Render

func (r *SecurityGroup) Render(renderResource cloud.Resource, renderCluster *cluster.Cluster) (*cluster.Cluster, error)

func (*SecurityGroup) Tag

func (r *SecurityGroup) Tag(tags map[string]string) error

type Shared

type Shared struct {
	CloudID        string
	Name           string
	TagResource    cloud.Resource
	Tags           map[string]string
	CachedActual   cloud.Resource
	CachedExpected cloud.Resource
}

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(known *cluster.Cluster) (cloud.Resource, error)

func (*Subnet) Apply

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

func (*Subnet) Delete

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

func (*Subnet) Expected

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

func (*Subnet) Render

func (r *Subnet) Render(renderResource cloud.Resource, renderCluster *cluster.Cluster) (*cluster.Cluster, error)

func (*Subnet) Tag

func (r *Subnet) Tag(tags map[string]string) error

type Vpc

type Vpc struct {
	Shared
	CIDR string
}

func (*Vpc) Actual

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

func (*Vpc) Apply

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

func (*Vpc) Delete

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

func (*Vpc) Expected

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

func (*Vpc) Render

func (r *Vpc) Render(renderResource cloud.Resource, renderCluster *cluster.Cluster) (*cluster.Cluster, error)

func (*Vpc) Tag

func (r *Vpc) Tag(tags map[string]string) error

Jump to

Keyboard shortcuts

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