Documentation ¶
Index ¶
Constants ¶
const Version string = "v1"
Version is the current api version
Variables ¶
var Kubernetes = &kubernetesInfo{
RegexPatterns: &kubernetesRegexPatterns{
Name: "^[a-z][a-z0-9-]{0,50}[a-z0-9]$",
},
}
Kubernetes is a var that contains all regexes for names given to kubernetes objects
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Name string Container *AppContainer External *AppExternal }
AppConfig is the config for a single app
type AppContainer ¶
AppContainer is the container in which an app is running
type AppExternal ¶
AppExternal defines the external acces to an app
type Cluster ¶
type Cluster struct { TillerNamespace string `yaml:"tillerNamespace"` UseKubeConfig bool `yaml:"useKubeConfig,omitempty"` ApiServer string `yaml:"apiServer,omitempty"` CaCert string `yaml:"caCert,omitempty"` User *User `yaml:"user,omitempty"` }
Cluster is a struct that contains data for a Kubernetes-Cluster
type DevSpaceConfig ¶
type DevSpaceConfig struct { Version string `yaml:"version"` PortForwarding []*PortForwarding `yaml:"portForwarding"` SyncPaths []*SyncPath `yaml:"syncPath"` Registry map[interface{}]interface{} `yaml:"registry,omitempty"` }
DevSpaceConfig defines the config for a DevSpace
type PortForwarding ¶
type PortForwarding struct { ResourceType string `yaml:"resourceType"` LabelSelector map[string]string `yaml:"labelSelector"` PortMappings []*PortMapping `yaml:"portMappings"` }
PortForwarding defines the ports for a port forwarding to a DevSpace
type PortMapping ¶
PortMapping defines the ports for a PortMapping
type PrivateConfig ¶
type PrivateConfig struct { Version string `yaml:"version"` Release *Release `yaml:"release"` Registry *RegistryAccess `yaml:"registry"` Cluster *Cluster `yaml:"cluster"` }
PrivateConfig defines the private config of the users' computer
type RegistryAccess ¶
type RegistryAccess struct { Release *Release `yaml:"release"` User *RegistryUser `yaml:"user"` }
RegistryAccess sets the access from a user to a release
type RegistryUser ¶
RegistryUser is a user for the registry
type Release ¶
type Release struct { Name string `yaml:"name"` Namespace string `yaml:"namespace"` LatestBuild string `yaml:"latestBuild"` LatestImage string `yaml:"latestImage"` }
Release defines running version of a project
type SyncPath ¶
type SyncPath struct { ResourceType string `yaml:"resourceType"` LabelSelector map[string]string `yaml:"labelSelector"` LocalSubPath string `yaml:"localSubPath"` ContainerPath string `yaml:"containerPath"` ExcludeRegex []string `yaml:"excludeRegex"` }
SyncPath defines the paths for a SyncFolder