template

package
v8.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TemplateMain = `` /* 514-byte string literal not displayed */
View Source
const TemplateMainIAMPolicies = `` /* 3906-byte string literal not displayed */
View Source
const TemplateMainInstance = `` /* 2367-byte string literal not displayed */
View Source
const TemplateMainInternetGateway = `` /* 678-byte string literal not displayed */
View Source
const TemplateMainLoadBalancers = `` /* 3031-byte string literal not displayed */
View Source
const TemplateMainNatGateway = `` /* 786-byte string literal not displayed */
View Source
const TemplateMainOutputs = `` /* 623-byte string literal not displayed */
View Source
const TemplateMainRecordSets = `` /* 2655-byte string literal not displayed */
View Source
const TemplateMainRouteTables = `` /* 920-byte string literal not displayed */
View Source
const TemplateMainSecurityGroups = `` /* 2695-byte string literal not displayed */
View Source
const TemplateMainSubnets = `` /* 1388-byte string literal not displayed */
View Source
const TemplateMainVPC = `` /* 1507-byte string literal not displayed */

Variables

This section is empty.

Functions

func Render

func Render(v interface{}) (string, error)

Types

type Gateway

type Gateway struct {
	AvailabilityZone string
	NATGWName        string
	NATEIPName       string
	PublicSubnetName string
}

type NATRoute

type NATRoute struct {
	NATGWName             string
	NATRouteName          string
	PrivateRouteTableName string
}

type ParamsMain

type ParamsMain struct {
	IAMPolicies     *ParamsMainIAMPolicies
	InternetGateway *ParamsMainInternetGateway
	Instance        *ParamsMainInstance
	LoadBalancers   *ParamsMainLoadBalancers
	NATGateway      *ParamsMainNATGateway
	Outputs         *ParamsMainOutputs
	RecordSets      *ParamsMainRecordSets
	RouteTables     *ParamsMainRouteTables
	SecurityGroups  *ParamsMainSecurityGroups
	Subnets         *ParamsMainSubnets
	VPC             *ParamsMainVPC
}

type ParamsMainIAMPolicies

type ParamsMainIAMPolicies struct {
	ClusterID         string
	EC2ServiceDomain  string
	KMSKeyARN         string
	MasterRoleName    string
	MasterPolicyName  string
	MasterProfileName string
	RegionARN         string
	Route53Enabled    bool
	S3Bucket          string
}

type ParamsMainInstance

type ParamsMainInstance struct {
	Cluster ParamsMainInstanceCluster
	Image   ParamsMainInstanceImage
	Master  ParamsMainInstanceMaster
}

type ParamsMainInstanceCluster

type ParamsMainInstanceCluster struct {
	ID string
}

type ParamsMainInstanceImage

type ParamsMainInstanceImage struct {
	ID string
}

type ParamsMainInstanceMaster

type ParamsMainInstanceMaster struct {
	AZ               string
	CloudConfig      string
	EncrypterBackend string
	DockerVolume     ParamsMainInstanceMasterDockerVolume
	EtcdVolume       ParamsMainInstanceMasterEtcdVolume
	LogVolume        ParamsMainInstanceMasterLogVolume
	Instance         ParamsMainInstanceMasterInstance
	PrivateSubnet    string
}

type ParamsMainInstanceMasterDockerVolume

type ParamsMainInstanceMasterDockerVolume struct {
	Name         string
	ResourceName string
}

type ParamsMainInstanceMasterEtcdVolume

type ParamsMainInstanceMasterEtcdVolume struct {
	Name string
}

type ParamsMainInstanceMasterInstance

type ParamsMainInstanceMasterInstance struct {
	ResourceName string
	Type         string
	Monitoring   bool
}

type ParamsMainInstanceMasterLogVolume

type ParamsMainInstanceMasterLogVolume struct {
	Name string
}

type ParamsMainInternetGateway

type ParamsMainInternetGateway struct {
	ClusterID        string
	InternetGateways []ParamsMainInternetGatewayInternetGateway
}

type ParamsMainInternetGatewayInternetGateway

type ParamsMainInternetGatewayInternetGateway struct {
	InternetGatewayRoute string
	RouteTable           string
}

type ParamsMainLoadBalancers

type ParamsMainLoadBalancers struct {
	APIElbHealthCheckTarget          string
	APIElbName                       string
	APIInternalElbName               string
	APIElbPortsToOpen                []ParamsMainLoadBalancersPortPair
	APIElbScheme                     string
	APIInternalElbScheme             string
	APIElbSecurityGroupID            string
	EtcdElbHealthCheckTarget         string
	EtcdElbName                      string
	EtcdElbPortsToOpen               []ParamsMainLoadBalancersPortPair
	EtcdElbScheme                    string
	EtcdElbSecurityGroupID           string
	ELBHealthCheckHealthyThreshold   int
	ELBHealthCheckInterval           int
	ELBHealthCheckTimeout            int
	ELBHealthCheckUnhealthyThreshold int
	MasterInstanceResourceName       string
	PublicSubnets                    []string
	PrivateSubnets                   []string
}

type ParamsMainLoadBalancersPortPair

type ParamsMainLoadBalancersPortPair struct {
	// PortELB is the port the ELB should listen on.
	PortELB int
	// PortInstance is the port on the instance the ELB forwards traffic to.
	PortInstance int
}

type ParamsMainNATGateway

type ParamsMainNATGateway struct {
	Gateways  []Gateway
	NATRoutes []NATRoute
}

type ParamsMainOutputs

type ParamsMainOutputs struct {
	Master          ParamsMainOutputsMaster
	OperatorVersion string
	Route53Enabled  bool
}

type ParamsMainOutputsMaster

type ParamsMainOutputsMaster struct {
	ImageID      string
	Instance     ParamsMainOutputsMasterInstance
	DockerVolume ParamsMainOutputsMasterDockerVolume
}

type ParamsMainOutputsMasterDockerVolume

type ParamsMainOutputsMasterDockerVolume struct {
	ResourceName string
}

type ParamsMainOutputsMasterInstance

type ParamsMainOutputsMasterInstance struct {
	ResourceName string
	Type         string
}

type ParamsMainRecordSets

type ParamsMainRecordSets struct {
	BaseDomain                 string
	EtcdDomain                 string
	ClusterID                  string
	MasterInstanceResourceName string
	Route53Enabled             bool
	VPCRegion                  string
}

type ParamsMainRouteTables

type ParamsMainRouteTables struct {
	HostClusterCIDR        string
	PrivateRouteTableNames []RouteTableName
	PublicRouteTableNames  []RouteTableName
}

type ParamsMainSecurityGroups

type ParamsMainSecurityGroups struct {
	APIInternalELBSecurityGroupName  string
	APIInternalELBSecurityGroupRules []SecurityGroupRule
	APIWhitelistEnabled              bool
	PrivateAPIWhitelistEnabled       bool
	MasterSecurityGroupName          string
	MasterSecurityGroupRules         []SecurityGroupRule
	EtcdELBSecurityGroupName         string
	EtcdELBSecurityGroupRules        []SecurityGroupRule
}

type ParamsMainSubnets

type ParamsMainSubnets struct {
	PublicSubnets  []Subnet
	PrivateSubnets []Subnet
}

type ParamsMainVPC

type ParamsMainVPC struct {
	CidrBlock        string
	ClusterID        string
	InstallationName string
	HostAccountID    string
	PeerVPCID        string
	PeerRoleArn      string
	Region           string
	RegionARN        string
	RouteTableNames  []RouteTableName
}

type RouteTableAssociation

type RouteTableAssociation struct {
	Name           string
	RouteTableName string
	SubnetName     string
}

type RouteTableName

type RouteTableName struct {
	AvailabilityZone    string
	ResourceName        string
	VPCPeeringRouteName string
}

type SecurityGroupRule

type SecurityGroupRule struct {
	Description         string
	Port                int
	Protocol            string
	SourceCIDR          string
	SourceSecurityGroup string
}

type SmallCloudconfigConfig

type SmallCloudconfigConfig struct {
	S3URL string
}

SmallCloudconfigConfig represents the data structure required for executing the small cloudconfig template.

type Subnet

type Subnet struct {
	AvailabilityZone      string
	CIDR                  string
	Name                  string
	MapPublicIPOnLaunch   bool
	RouteTableAssociation RouteTableAssociation
}

Jump to

Keyboard shortcuts

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