common

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	MetaData      types.Metadata `json:"metadata"`
	Specification ClusterSpec    `json:"spec"`
}

Cluster contains the parameters needed for a Cluster

type ClusterKey

type ClusterKey struct {
	Project          string `json:"project"`
	LogicalCloudName string `json:"logicalCloud"`
	ClusterReference string `json:"clusterReference"`
}

type ClusterSpec

type ClusterSpec struct {
	ClusterProvider string `json:"clusterProvider"`
	ClusterName     string `json:"cluster"`
	LoadBalancerIP  string `json:"loadBalancerIP"`
	Certificate     string `json:"certificate"`
}

type EmcoEvent

type EmcoEvent string

EmcoEvent is the supported life-cycle events

const (
	Approve     EmcoEvent = "Approve"
	Instantiate EmcoEvent = "Instantiate"
	Migrate     EmcoEvent = "Migrate"
	Rollback    EmcoEvent = "Rollback"
	Stop        EmcoEvent = "Stop"
	Status      EmcoEvent = "Status"
	Terminate   EmcoEvent = "Terminate"
	Update      EmcoEvent = "Update"
)

type KubeCluster

type KubeCluster struct {
	ClusterDef  KubeClusterDef `yaml:"cluster"`
	ClusterName string         `yaml:"name"`
}

type KubeClusterDef

type KubeClusterDef struct {
	CertificateAuthorityData string `yaml:"certificate-authority-data"`
	Server                   string `yaml:"server"`
}

type KubeConfig

type KubeConfig struct {
	ApiVersion     string            `yaml:"apiVersion"`
	Kind           string            `yaml:"kind"`
	Clusters       []KubeCluster     `yaml:"clusters"`
	Contexts       []KubeContext     `yaml:"contexts"`
	CurrentContext string            `yaml:"current-context"`
	Preferences    map[string]string `yaml:"preferences"`
	Users          []KubeUser        `yaml:"users"`
}

type KubeContext

type KubeContext struct {
	ContextDef  KubeContextDef `yaml:"context"`
	ContextName string         `yaml:"name"`
}

type KubeContextDef

type KubeContextDef struct {
	Cluster   string `yaml:"cluster"`
	Namespace string `yaml:"namespace,omitempty"`
	User      string `yaml:"user"`
}

type KubeUser

type KubeUser struct {
	UserName string      `yaml:"name"`
	UserDef  KubeUserDef `yaml:"user"`
}

type KubeUserDef

type KubeUserDef struct {
	ClientCertificateData string `yaml:"client-certificate-data"`
	ClientKeyData         string `yaml:"client-key-data"`
}

type LogicalCloud

type LogicalCloud struct {
	MetaData      types.Metadata `json:"metadata"`
	Specification Spec           `json:"spec"`
}

LogicalCloud contains the parameters needed for a Logical Cloud

type LogicalCloudKey

type LogicalCloudKey struct {
	Project          string `json:"project"`
	LogicalCloudName string `json:"logicalCloud"`
}

LogicalCloudKey is the key structure that is used in the database

type PrivateKey

type PrivateKey struct {
	KeyValue string `json:"key" encrypted:""`
}

PrivateKey is the key structure that is used in the database

type Spec

type Spec struct {
	NameSpace string            `json:"namespace"`
	Labels    map[string]string `json:"labels"`
	Level     string            `json:"level"`
	User      UserData          `json:"user"`
}

Spec contains the parameters needed for spec

type UserData

type UserData struct {
	UserName string `json:"userName"`
	Type     string `json:"type"`
}

UserData contains the parameters needed for user

Directories

Path Synopsis
Package emcoerror standardizes the error handling
Package emcoerror standardizes the error handling

Jump to

Keyboard shortcuts

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