templates

package
v4.0.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMI

type AMI struct {
	AMI string `json:",omitempty"`
}

type BOSHEIPTemplateBuilder

type BOSHEIPTemplateBuilder struct{}

func NewBOSHEIPTemplateBuilder

func NewBOSHEIPTemplateBuilder() BOSHEIPTemplateBuilder

func (BOSHEIPTemplateBuilder) BOSHEIP

func (t BOSHEIPTemplateBuilder) BOSHEIP() Template

type BOSHIAMTemplateBuilder

type BOSHIAMTemplateBuilder struct{}

func NewBOSHIAMTemplateBuilder

func NewBOSHIAMTemplateBuilder() BOSHIAMTemplateBuilder

func (BOSHIAMTemplateBuilder) BOSHIAMUser

func (t BOSHIAMTemplateBuilder) BOSHIAMUser(userName string) Template

type BOSHSubnetTemplateBuilder

type BOSHSubnetTemplateBuilder struct{}

func NewBOSHSubnetTemplateBuilder

func NewBOSHSubnetTemplateBuilder() BOSHSubnetTemplateBuilder

func (BOSHSubnetTemplateBuilder) BOSHSubnet

func (BOSHSubnetTemplateBuilder) BOSHSubnet(availabilityZone string) Template

type EIP

type EIP struct {
	Domain     string      `json:",omitempty"`
	InstanceId interface{} `json:",omitempty"`
}

type ElasticLoadBalancingLoadBalancer

type ElasticLoadBalancingLoadBalancer struct {
	Subnets        []interface{} `json:"Subnets,omitempty"`
	SecurityGroups []interface{} `json:"SecurityGroups,omitempty"`
	HealthCheck    HealthCheck   `json:"HealthCheck,omitempty"`
	Listeners      []Listener    `json:"Listeners,omitempty"`
	CrossZone      bool          `json:"CrossZone,omitempty"`
}

type FnGetAtt

type FnGetAtt struct {
	FnGetAtt []string `json:"Fn::GetAtt"`
}

type FnJoin

type FnJoin struct {
	Delimeter string
	Values    []interface{}
}

func (FnJoin) MarshalJSON

func (j FnJoin) MarshalJSON() ([]byte, error)

type HealthCheck

type HealthCheck struct {
	HealthyThreshold   string `json:"HealthyThreshold,omitempty"`
	Interval           string `json:"Interval,omitempty"`
	Target             string `json:"Target,omitempty"`
	Timeout            string `json:"Timeout,omitempty"`
	UnhealthyThreshold string `json:"UnhealthyThreshold,omitempty"`
}

type IAMAccessKey

type IAMAccessKey struct {
	UserName Ref
}

type IAMPolicy

type IAMPolicy struct {
	PolicyName     string
	PolicyDocument IAMPolicyDocument
}

type IAMPolicyDocument

type IAMPolicyDocument struct {
	Version   string
	Statement []IAMStatement
}

type IAMStatement

type IAMStatement struct {
	Action   []string
	Effect   string
	Resource string
}

type IAMUser

type IAMUser struct {
	Policies []IAMPolicy
	UserName string `json:",omitempty"`
}

type Instance

type Instance struct {
	InstanceType     string                 `json:",omitempty"`
	PrivateIpAddress string                 `json:",omitempty"`
	SubnetId         interface{}            `json:",omitempty"`
	ImageId          map[string]interface{} `json:",omitempty"`
	KeyName          interface{}            `json:",omitempty"`
	SecurityGroupIds []interface{}          `json:",omitempty"`
	Tags             []Tag                  `json:",omitempty"`
	SourceDestCheck  bool
}

type InternalSubnetTemplateBuilder

type InternalSubnetTemplateBuilder struct{}

func NewInternalSubnetTemplateBuilder

func NewInternalSubnetTemplateBuilder() InternalSubnetTemplateBuilder

func (InternalSubnetTemplateBuilder) InternalSubnet

func (s InternalSubnetTemplateBuilder) InternalSubnet(az, suffix, cidrBlock string) Template

type InternalSubnetsTemplateBuilder

type InternalSubnetsTemplateBuilder struct{}

func NewInternalSubnetsTemplateBuilder

func NewInternalSubnetsTemplateBuilder() InternalSubnetsTemplateBuilder

func (InternalSubnetsTemplateBuilder) InternalSubnets

func (InternalSubnetsTemplateBuilder) InternalSubnets(availabilityZones []string) Template

type Listener

type Listener struct {
	Protocol         string `json:"Protocol,omitempty"`
	LoadBalancerPort string `json:"LoadBalancerPort,omitempty"`
	InstanceProtocol string `json:"InstanceProtocol,omitempty"`
	InstancePort     string `json:"InstancePort,omitempty"`
	SSLCertificateID string `json:"SSLCertificateId,omitempty"`
}

type LoadBalancerSubnetTemplateBuilder

type LoadBalancerSubnetTemplateBuilder struct{}

func NewLoadBalancerSubnetTemplateBuilder

func NewLoadBalancerSubnetTemplateBuilder() LoadBalancerSubnetTemplateBuilder

func (LoadBalancerSubnetTemplateBuilder) LoadBalancerSubnet

func (LoadBalancerSubnetTemplateBuilder) LoadBalancerSubnet(az, subnetSuffix, cidrBlock string) Template

type LoadBalancerSubnetsTemplateBuilder

type LoadBalancerSubnetsTemplateBuilder struct{}

func NewLoadBalancerSubnetsTemplateBuilder

func NewLoadBalancerSubnetsTemplateBuilder() LoadBalancerSubnetsTemplateBuilder

func (LoadBalancerSubnetsTemplateBuilder) LoadBalancerSubnets

func (LoadBalancerSubnetsTemplateBuilder) LoadBalancerSubnets(availabilityZones []string) Template

type LoadBalancerTemplateBuilder

type LoadBalancerTemplateBuilder struct{}

func NewLoadBalancerTemplateBuilder

func NewLoadBalancerTemplateBuilder() LoadBalancerTemplateBuilder

func (LoadBalancerTemplateBuilder) CFRouterLoadBalancer

func (l LoadBalancerTemplateBuilder) CFRouterLoadBalancer(numberOfAvailabilityZones int, sslCertificateID string) Template

func (LoadBalancerTemplateBuilder) CFSSHProxyLoadBalancer

func (l LoadBalancerTemplateBuilder) CFSSHProxyLoadBalancer(numberOfAvailabilityZones int) Template

func (LoadBalancerTemplateBuilder) ConcourseLoadBalancer

func (l LoadBalancerTemplateBuilder) ConcourseLoadBalancer(numberOfAvailabilityZones int, sslCertificateID string) Template

type NATTemplateBuilder

type NATTemplateBuilder struct{}

func NewNATTemplateBuilder

func NewNATTemplateBuilder() NATTemplateBuilder

func (NATTemplateBuilder) NAT

func (t NATTemplateBuilder) NAT() Template

type Output

type Output struct {
	Value interface{}
}

type Parameter

type Parameter struct {
	Type        string
	Default     string
	Description string `json:",omitempty"`
}

type Ref

type Ref struct {
	Ref string `json:",omitempty"`
}

type Resource

type Resource struct {
	Type           string
	Properties     interface{} `json:",omitempty"`
	DependsOn      interface{} `json:",omitempty"`
	CreationPolicy interface{} `json:",omitempty"`
	UpdatePolicy   interface{} `json:",omitempty"`
	DeletionPolicy interface{} `json:",omitempty"`
}

type Route

type Route struct {
	DestinationCidrBlock string      `json:",omitempty"`
	GatewayId            interface{} `json:",omitempty"`
	RouteTableId         interface{} `json:",omitempty"`
	InstanceId           interface{} `json:",omitempty"`
}

type RouteTable

type RouteTable struct {
	VpcId interface{} `json:",omitempty"`
}

type SSHKeyPairTemplateBuilder

type SSHKeyPairTemplateBuilder struct{}

func NewSSHKeyPairTemplateBuilder

func NewSSHKeyPairTemplateBuilder() SSHKeyPairTemplateBuilder

func (SSHKeyPairTemplateBuilder) SSHKeyPairName

func (t SSHKeyPairTemplateBuilder) SSHKeyPairName(keyPairName string) Template

type SecurityGroup

type SecurityGroup struct {
	VpcId                interface{}            `json:",omitempty"`
	GroupDescription     string                 `json:",omitempty"`
	SecurityGroupIngress []SecurityGroupIngress `json:",omitempty"`
	SecurityGroupEgress  []SecurityGroupEgress
}

type SecurityGroupEgress

type SecurityGroupEgress struct {
	SourceSecurityGroupId interface{} `json:",omitempty"`
	IpProtocol            string      `json:",omitempty"`
	FromPort              string      `json:",omitempty"`
	ToPort                string      `json:",omitempty"`
}

type SecurityGroupIngress

type SecurityGroupIngress struct {
	GroupId               interface{} `json:",omitempty"`
	SourceSecurityGroupId interface{} `json:",omitempty"`
	CidrIp                interface{} `json:",omitempty"`
	IpProtocol            string      `json:",omitempty"`
	FromPort              string      `json:",omitempty"`
	ToPort                string      `json:",omitempty"`
}

type SecurityGroupTemplateBuilder

type SecurityGroupTemplateBuilder struct{}

func NewSecurityGroupTemplateBuilder

func NewSecurityGroupTemplateBuilder() SecurityGroupTemplateBuilder

func (SecurityGroupTemplateBuilder) BOSHSecurityGroup

func (s SecurityGroupTemplateBuilder) BOSHSecurityGroup() Template

func (SecurityGroupTemplateBuilder) InternalSecurityGroup

func (s SecurityGroupTemplateBuilder) InternalSecurityGroup() Template

func (SecurityGroupTemplateBuilder) LBInternalSecurityGroup

func (s SecurityGroupTemplateBuilder) LBInternalSecurityGroup(securityGroupName, lbSecurityGroupName,
	securityGroupDescription, loadBalancerName string, template Template) Template

func (SecurityGroupTemplateBuilder) LBSecurityGroup

func (s SecurityGroupTemplateBuilder) LBSecurityGroup(securityGroupName, securityGroupDescription,
	loadBalancerName string, template Template) Template

type Subnet

type Subnet struct {
	AvailabilityZone string      `json:",omitempty"`
	CidrBlock        interface{} `json:",omitempty"`
	VpcId            interface{} `json:",omitempty"`
	Tags             []Tag       `json:",omitempty"`
}

type SubnetRouteTableAssociation

type SubnetRouteTableAssociation struct {
	RouteTableId interface{} `json:",omitempty"`
	SubnetId     interface{} `json:",omitempty"`
}

type Tag

type Tag struct {
	Key   string `json:",omitempty"`
	Value string `json:",omitempty"`
}

type Template

type Template struct {
	AWSTemplateFormatVersion string                 `json:",omitempty"`
	Description              string                 `json:",omitempty"`
	Parameters               map[string]Parameter   `json:",omitempty"`
	Mappings                 map[string]interface{} `json:",omitempty"`
	Resources                map[string]Resource    `json:",omitempty"`
	Outputs                  map[string]Output      `json:",omitempty"`
}

func (Template) Merge

func (t Template) Merge(templates ...Template) Template

type TemplateBuilder

type TemplateBuilder struct {
	// contains filtered or unexported fields
}

func NewTemplateBuilder

func NewTemplateBuilder(logger logger) TemplateBuilder

func (TemplateBuilder) Build

func (t TemplateBuilder) Build(keyPairName string, availablityZones []string, lbType, lbCertificateARN string, iamUserName string, envID string, boshAZ string) Template

type VPC

type VPC struct {
	CidrBlock Ref   `json:"CidrBlock,omitempty"`
	Tags      []Tag `json:"Tags,omitempty"`
}

type VPCGatewayAttachment

type VPCGatewayAttachment struct {
	VpcId             Ref `json:"VpcId,omitempty"`
	InternetGatewayId Ref `json:"InternetGatewayId,omitempty"`
}

type VPCTemplateBuilder

type VPCTemplateBuilder struct{}

func NewVPCTemplateBuilder

func NewVPCTemplateBuilder() VPCTemplateBuilder

func (VPCTemplateBuilder) VPC

func (t VPCTemplateBuilder) VPC(envID string) Template

Jump to

Keyboard shortcuts

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