Documentation ¶
Index ¶
- Constants
- type AgentPools
- type Aks
- type AwsConfig
- type AzureConfig
- type CloudProvider
- type CoreComponent
- type EKSConfig
- type GKEConfig
- type GcpConfig
- type InternetGatewayConfig
- type KubeConfig
- type NatGatewayConfig
- type NodeGroupConfig
- type ResourceGroupConfig
- type RouteTableConfig
- type ScalingConfig
- type ServiceProvider
- type Spike
- type SpikeConfig
- type SubnetConfig
- type Subnets
- type VPCConfig
- type VirtualNetworkConfig
Constants ¶
View Source
const KUBE_CA_FILE_PATH string = KUBE_CA_PATH + "kubecafile"
View Source
const KUBE_CA_PATH string = "/tmp/spikectl/"
TODO: not sure if this should liv here
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentPools ¶
type Aks ¶
type Aks struct { ClusterName string `json:"cluster_name"` AgentPools []AgentPools `json:"agent_pools"` ServiceProvider ServiceProvider `json:"service_provider"` }
type AzureConfig ¶
type AzureConfig struct { SubscriptionId string `json:"subscription_id"` ResourceGroupConfig ResourceGroupConfig `json:"resource_group"` VirtualNetworkConfig VirtualNetworkConfig `json:"virtual_network"` Aks Aks `json:"aks"` }
type CloudProvider ¶
type CloudProvider uint8
const ( AWS CloudProvider = iota + 1 AZURE GCP )
func ParseCloudProvider ¶
func ParseCloudProvider(s string) (CloudProvider, error)
func (*CloudProvider) MarshalJSON ¶
func (c *CloudProvider) MarshalJSON() ([]byte, error)
func (*CloudProvider) String ¶
func (c *CloudProvider) String() string
func (*CloudProvider) UnmarshalJSON ¶
func (c *CloudProvider) UnmarshalJSON(data []byte) (err error)
type CoreComponent ¶
type CoreComponent struct { ReleaseName string `json:"release_name"` Chart string `json:"chart"` Namespace string `json:"namespace"` Repository string `json:"repository"` ChartVersion string `json:"chart_version"` ImageName string `json:"image_name,omitempty"` ImageVersion string `json:"image_version,omitempty"` }
type EKSConfig ¶
type EKSConfig struct { Name string `json:"name"` NodeGroup NodeGroupConfig `json:"node_group"` }
type InternetGatewayConfig ¶
type InternetGatewayConfig struct {
Name string `json:"name"`
}
type KubeConfig ¶
type NatGatewayConfig ¶
type NatGatewayConfig struct {
Name string `json:"name"`
}
type NodeGroupConfig ¶
type NodeGroupConfig struct { Name string `json:"name"` InstanceType []string `json:"instance_type"` Scaling ScalingConfig `json:"scaling"` }
type ResourceGroupConfig ¶
type RouteTableConfig ¶
type RouteTableConfig struct {
Name string `json:"name"`
}
type ScalingConfig ¶
type ServiceProvider ¶
type Spike ¶
type Spike struct {
Spike SpikeConfig `json:"spike"`
}
type SpikeConfig ¶
type SpikeConfig struct { CloudProvider CloudProvider `json:"cloud_provider"` AzureConfig AzureConfig `json:"azure"` AwsConfig AwsConfig `json:"aws"` GcpConfig GcpConfig `json:"gcp"` CoreComponents []CoreComponent `json:"core"` }
type SubnetConfig ¶
type SubnetConfig struct { PublicSubnetName string `json:"public_subnet_name"` PublicSubnetCidr string `json:"public_subnet_cidr"` PublicSubnetAz string `json:"public_subnet_az"` PrimaryPrivateSubnetName string `json:"primary_private_subnet_name"` PrimaryPrivateSubnetCidr string `json:"primary_private_subnet_cidr"` PrimaryPrivateSubnetAz string `json:"primary_private_subnet_az"` SecondaryPrivateSubnetName string `json:"secondary_private_subnet_name"` SecondaryPrivateSubnetCidr string `json:"secondary_private_subnet_cidr"` SecondaryPrivateSubnetAz string `json:"secondary_private_subnet_az"` }
type VPCConfig ¶
type VPCConfig struct { Name string `json:"name"` CIDR string `json:"cidr"` Subnets SubnetConfig `json:"subnets"` InternetGateway InternetGatewayConfig `json:"internet_gateway"` NatGateway NatGatewayConfig `json:"nat_gateway"` PublicRouteTable RouteTableConfig `json:"public_route_table"` }
type VirtualNetworkConfig ¶
Click to show internal directories.
Click to hide internal directories.