template

package
v8.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 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 = `` /* 5122-byte string literal not displayed */
View Source
const TemplateMainInstance = `` /* 2367-byte string literal not displayed */
View Source
const TemplateMainInternetGateway = `` /* 758-byte string literal not displayed */
View Source
const TemplateMainLoadBalancers = `` /* 3031-byte string literal not displayed */
View Source
const TemplateMainNatGateway = `` /* 833-byte string literal not displayed */
View Source
const TemplateMainOutputs = `` /* 623-byte string literal not displayed */
View Source
const TemplateMainRecordSets = `` /* 2969-byte string literal not displayed */
View Source
const TemplateMainRouteTables = `` /* 1407-byte string literal not displayed */
View Source
const TemplateMainSecurityGroups = `` /* 3952-byte string literal not displayed */
View Source
const TemplateMainSubnets = `` /* 1980-byte string literal not displayed */
View Source
const TemplateMainVPC = `` /* 1678-byte string literal not displayed */

Variables

This section is empty.

Functions

func Render

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

Types

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  []ParamsMainNATGatewayGateway
	NATRoutes []ParamsMainNATGatewayNATRoute
}

type ParamsMainNATGatewayGateway

type ParamsMainNATGatewayGateway struct {
	AvailabilityZone string
	ClusterID        string
	NATGWName        string
	NATEIPName       string
	PublicSubnetName string
}

type ParamsMainNATGatewayNATRoute

type ParamsMainNATGatewayNATRoute struct {
	NATGWName      string
	NATRouteName   string
	RouteTableName string
}

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 {
	ClusterID       string
	HostClusterCIDR string

	AWSCNIRouteTableNames  []ParamsMainRouteTablesRouteTableName
	PrivateRouteTableNames []ParamsMainRouteTablesRouteTableName
	PublicRouteTableNames  []ParamsMainRouteTablesRouteTableName
}

type ParamsMainRouteTablesRouteTableName

type ParamsMainRouteTablesRouteTableName struct {
	AvailabilityZone    string
	ResourceName        string
	VPCPeeringRouteName string
}

type ParamsMainSecurityGroups

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

type ParamsMainSubnets

type ParamsMainSubnets struct {
	AWSCNISubnets  []ParamsMainSubnetsSubnet
	PublicSubnets  []ParamsMainSubnetsSubnet
	PrivateSubnets []ParamsMainSubnetsSubnet
}

type ParamsMainSubnetsSubnet

type ParamsMainSubnetsSubnet struct {
	AvailabilityZone      string
	CIDR                  string
	Name                  string
	MapPublicIPOnLaunch   bool
	RouteTableAssociation ParamsMainSubnetsSubnetRouteTableAssociation
}

type ParamsMainSubnetsSubnetRouteTableAssociation

type ParamsMainSubnetsSubnetRouteTableAssociation struct {
	Name           string
	RouteTableName string
	SubnetName     string
}

type ParamsMainVPC

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

type ParamsMainVPCRouteTableName

type ParamsMainVPCRouteTableName 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.

Jump to

Keyboard shortcuts

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