# labelStructs ```go import "katenary/generator/labelStructs" ``` labelStructs is a package that contains the structs used to represent the labels in the yaml files. ## type [ConfigMapFile]() ```go type ConfigMapFile []string ``` ### func [ConfigMapFileFrom]() ```go func ConfigMapFileFrom(data string) (ConfigMapFile, error) ``` ## type [CronJob]() ```go type CronJob struct { Image string `yaml:"image,omitempty"` Command string `yaml:"command"` Schedule string `yaml:"schedule"` Rbac bool `yaml:"rbac"` } ``` ### func [CronJobFrom]() ```go func CronJobFrom(data string) (*CronJob, error) ``` ## type [Dependency]() Dependency is a dependency of a chart to other charts. ```go type Dependency struct { Name string `yaml:"name"` Version string `yaml:"version"` Repository string `yaml:"repository"` Alias string `yaml:"alias,omitempty"` Values map[string]any `yaml:"-"` // do not export to Chart.yaml } ``` ### func [DependenciesFrom]() ```go func DependenciesFrom(data string) ([]Dependency, error) ``` DependenciesFrom returns a slice of dependencies from the given string. ## type [EnvFrom]() ```go type EnvFrom []string ``` ### func [EnvFromFrom]() ```go func EnvFromFrom(data string) (EnvFrom, error) ``` EnvFromFrom returns a EnvFrom from the given string. ## type [Ingress]() ```go type Ingress struct { // Hostname is the hostname to match against the request. It can contain wildcards. Hostname string `yaml:"hostname"` // Path is the path to match against the request. It can contain wildcards. Path string `yaml:"path"` // Enabled is a flag to enable or disable the ingress. Enabled bool `yaml:"enabled"` // Class is the ingress class to use. Class string `yaml:"class"` // Port is the port to use. Port *int32 `yaml:"port,omitempty"` // Annotations is a list of key-value pairs to add to the ingress. Annotations map[string]string `yaml:"annotations,omitempty"` } ``` ### func [IngressFrom]() ```go func IngressFrom(data string) (*Ingress, error) ``` IngressFrom creates a new Ingress from a compose service. ## type [MapEnv]() ```go type MapEnv map[string]string ``` ### func [MapEnvFrom]() ```go func MapEnvFrom(data string) (MapEnv, error) ``` MapEnvFrom returns a MapEnv from the given string. ## type [Ports]() ```go type Ports []uint32 ``` ### func [PortsFrom]() ```go func PortsFrom(data string) (Ports, error) ``` PortsFrom returns a Ports from the given string. ## type [Probe]() ```go type Probe struct { LivenessProbe *corev1.Probe `yaml:"livenessProbe,omitempty"` ReadinessProbe *corev1.Probe `yaml:"readinessProbe,omitempty"` } ``` ### func [ProbeFrom]() ```go func ProbeFrom(data string) (*Probe, error) ``` ## type [Secrets]() ```go type Secrets []string ``` ### func [SecretsFrom]() ```go func SecretsFrom(data string) (Secrets, error) ``` Generated by [gomarkdoc]()