interfaces

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AppArgs   `json:"spec,omitempty"`
	Status            AppStatus `json:"status,omitempty"`
}

type AppArgs

type AppArgs struct {
	ProjectName string `mapstructure:"projectName" yaml:"projectName" json:"projectName,omitempty"`
	StackName   string `mapstructure:"stackName" yaml:"stackName" json:"stackName,omitempty"`
	// Cidr CidrInterface `mapstructure:"cidr" yaml:"cidr" json:"cidr,omitempty"`
	Providers     VpcOutputInterface `mapstructure:"providers" yaml:"providers" json:"providers,omitempty"`
	SecurityGroup SecurityGroupArgs  `mapstructure:"sg" yaml:"sg" json:"sg,omitempty"`
	Plugins       EnabledPlugins
}

type AppStatus

type AppStatus struct {
}

AppStatus defines the observed state of Cluster

type CidrInterface

type CidrInterface struct {
	Aws       string
	Hetzner   string
	Azure     string
	Gcp       string
	VmWare    string
	BareMetal string
}

type EnabledPlugins

type EnabledPlugins struct {
	Kubernetes bool
	Docker     bool
	Aws        bool
	Azure      bool
	Hetzner    bool
}

type PortSecurityGroupArgs

type PortSecurityGroupArgs struct {
	Name   string
	Port   int64
	Allows []string
}

type RootFlags

type RootFlags struct {
	DebugLogging       bool
	TraceLogging       bool
	TimestampedLogging bool
	Version            bool
	Config             *App
}

RootFlags describes a struct that holds flags that can be set on root level of the command

type SecurityGroupArgs

type SecurityGroupArgs struct {
	Name             string
	Http             bool
	Https            bool
	SshAllows        []string                `mapstructure:"ssh" yaml:"ssh" json:"ssh,omitempty"`
	PostgreSqlAllows []string                `mapstructure:"postgresql" yaml:"postgresql" json:"postgresql,omitempty"`
	MySqlAllows      []string                `mapstructure:"mysql" yaml:"mysql" json:"mysql,omitempty"`
	MongoAllows      []string                `mapstructure:"mongo" yaml:"mongo" json:"mongo,omitempty"`
	MsSqlAllows      []string                `mapstructure:"mssql" yaml:"mssql" json:"mssql,omitempty"`
	KubeApi          []string                `mapstructure:"kubeapi" yaml:"kubeapi" json:"kubeapi,omitempty"`
	Vault            []string                `mapstructure:"vault" yaml:"vault" json:"vault,omitempty"`
	Custom           []PortSecurityGroupArgs `mapstructure:"custom" yaml:"custom" json:"custom,omitempty"`
}

type VpcAwsOutputInterface

type VpcAwsOutputInterface struct {
	// enabled: boolean;
	VpcId         string `mapstructure:"vpcId" yaml:"vpcId" json:"vpcId,omitempty"`
	SubnetsIds    []string
	SecureGroupId string
	Cidr          string
	Region        string `mapstructure:"region" yaml:"region" json:"region,omitempty"`
}

type VpcAzureOutputInterface

type VpcAzureOutputInterface struct {
	// enabled: boolean;
	VpcId           string `mapstructure:"vpcId" yaml:"vpcId" json:"vpcId,omitempty"`
	ResourceGroupId string
	Cidr            string
	Region          string `mapstructure:"region" yaml:"region" json:"region,omitempty"`
}

type VpcBareMetalInterface

type VpcBareMetalInterface struct {
	// enabled: boolean;
	VpcId  string `mapstructure:"vpcId" yaml:"vpcId" json:"vpcId,omitempty"`
	Cidr   string
	Region string `mapstructure:"region" yaml:"region" json:"region,omitempty"`
}

type VpcGcpOutputInterface

type VpcGcpOutputInterface struct {
	// enabled: boolean;
	VpcId  string `mapstructure:"vpcId" yaml:"vpcId" json:"vpcId,omitempty"`
	Cidr   string
	Region string `mapstructure:"region" yaml:"region" json:"region,omitempty"`
}

type VpcHetznerOutputInterface

type VpcHetznerOutputInterface struct {
	// enabled: boolean;
	VpcId  string `mapstructure:"vpcId" yaml:"vpcId" json:"vpcId,omitempty"`
	Cidr   string
	Region string `mapstructure:"region" yaml:"region" json:"region,omitempty"`
}

type VpcOutputInterface

type VpcOutputInterface struct {
	Aws       VpcAwsOutputInterface     `mapstructure:"aws" yaml:"aws" json:"aws,omitempty"`
	Hetzner   VpcHetznerOutputInterface `mapstructure:"hetzner" yaml:"hetzner" json:"hetzner,omitempty"`
	Azure     VpcAzureOutputInterface   `mapstructure:"azure" yaml:"azure" json:"azure,omitempty"`
	BareMetal VpcBareMetalInterface     `mapstructure:"vm" yaml:"vm" json:"vm,omitempty"`
}

Jump to

Keyboard shortcuts

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