2025-07-06 15:36:43 +02:00
<!-- Code generated by gomarkdoc. DO NOT EDIT -->
# labelstructs
```go
2025-08-19 23:09:50 +02:00
import "repo.katenary.io/katenary/katenary/internal/generator/labels/labelstructs"
2025-07-06 15:36:43 +02:00
```
Package labelstructs is a package that contains the structs used to represent the labels in the yaml files.
2025-08-19 23:09:50 +02:00
## type [ConfigMapFiles](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/configMap.go#L5>)
2025-07-06 15:36:43 +02:00
```go
2025-08-03 15:54:58 +02:00
type ConfigMapFiles []string
2025-07-06 15:36:43 +02:00
```
< a name = "ConfigMapFileFrom" > < / a >
2025-08-19 23:09:50 +02:00
### func [ConfigMapFileFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/configMap.go#L7>)
2025-07-06 15:36:43 +02:00
```go
2025-08-03 15:54:58 +02:00
func ConfigMapFileFrom(data string) (ConfigMapFiles, error)
2025-07-06 15:36:43 +02:00
```
< a name = "CronJob" > < / a >
2025-08-19 23:09:50 +02:00
## type [CronJob](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/cronJob.go#L5-L10>)
2025-07-06 15:36:43 +02:00
```go
type CronJob struct {
Image string `yaml:"image,omitempty" json:"image,omitempty"`
Command string `yaml:"command" json:"command,omitempty"`
Schedule string `yaml:"schedule" json:"schedule,omitempty"`
Rbac bool `yaml:"rbac" json:"rbac,omitempty"`
}
```
< a name = "CronJobFrom" > < / a >
2025-08-19 23:09:50 +02:00
### func [CronJobFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/cronJob.go#L12>)
2025-07-06 15:36:43 +02:00
```go
func CronJobFrom(data string) (*CronJob, error)
```
< a name = "Dependency" > < / a >
2025-08-19 23:09:50 +02:00
## type [Dependency](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/dependencies.go#L6-L12>)
2025-07-06 15:36:43 +02:00
Dependency is a dependency of a chart to other charts.
```go
type Dependency struct {
Values map[string]any `yaml:"-" json:"values,omitempty"`
Name string `yaml:"name" json:"name"`
Version string `yaml:"version" json:"version"`
Repository string `yaml:"repository" json:"repository"`
Alias string `yaml:"alias,omitempty" json:"alias,omitempty"`
}
```
< a name = "DependenciesFrom" > < / a >
2025-08-19 23:09:50 +02:00
### func [DependenciesFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/dependencies.go#L15>)
2025-07-06 15:36:43 +02:00
```go
func DependenciesFrom(data string) ([]Dependency, error)
```
DependenciesFrom returns a slice of dependencies from the given string.
< a name = "EnvFrom" > < / a >
2025-08-19 23:09:50 +02:00
## type [EnvFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/envFrom.go#L5>)
2025-07-06 15:36:43 +02:00
```go
type EnvFrom []string
```
< a name = "EnvFromFrom" > < / a >
2025-08-19 23:09:50 +02:00
### func [EnvFromFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/envFrom.go#L8>)
2025-07-06 15:36:43 +02:00
```go
func EnvFromFrom(data string) (EnvFrom, error)
```
EnvFromFrom returns a EnvFrom from the given string.
< a name = "ExchangeVolume" > < / a >
2025-08-19 23:09:50 +02:00
## type [ExchangeVolume](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/exchangeVolume.go#L5-L10>)
2025-07-06 15:36:43 +02:00
```go
type ExchangeVolume struct {
Name string `yaml:"name" json:"name"`
MountPath string `yaml:"mountPath" json:"mountPath"`
Type string `yaml:"type,omitempty" json:"type,omitempty"`
Init string `yaml:"init,omitempty" json:"init,omitempty"`
}
```
< a name = "NewExchangeVolumes" > < / a >
2025-08-19 23:09:50 +02:00
### func [NewExchangeVolumes](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/exchangeVolume.go#L12>)
2025-07-06 15:36:43 +02:00
```go
func NewExchangeVolumes(data string) ([]*ExchangeVolume, error)
```
< a name = "HealthCheck" > < / a >
2025-08-19 23:09:50 +02:00
## type [HealthCheck](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/probes.go#L11-L14>)
2025-07-06 15:36:43 +02:00
```go
type HealthCheck struct {
LivenessProbe *corev1.Probe `yaml:"livenessProbe,omitempty" json:"livenessProbe,omitempty"`
ReadinessProbe *corev1.Probe `yaml:"readinessProbe,omitempty" json:"readinessProbe,omitempty"`
}
```
< a name = "ProbeFrom" > < / a >
2025-08-19 23:09:50 +02:00
### func [ProbeFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/probes.go#L16>)
2025-07-06 15:36:43 +02:00
```go
func ProbeFrom(data string) (*HealthCheck, error)
```
< a name = "Ingress" > < / a >
2025-08-19 23:09:50 +02:00
## type [Ingress](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/ingress.go#L15-L23>)
2025-07-06 15:36:43 +02:00
```go
type Ingress struct {
Port *int32 `yaml:"port,omitempty" json:"port,omitempty"`
Annotations map[string]string `yaml:"annotations,omitempty" jsonschema:"nullable" json:"annotations,omitempty"`
Hostname string `yaml:"hostname,omitempty" json:"hostname,omitempty"`
Path *string `yaml:"path,omitempty" json:"path,omitempty"`
Class *string `yaml:"class,omitempty" json:"class,omitempty" jsonschema:"default:-"`
Enabled bool `yaml:"enabled,omitempty" json:"enabled,omitempty"`
TLS *TLS `yaml:"tls,omitempty" json:"tls,omitempty"`
}
```
< a name = "IngressFrom" > < / a >
2025-08-19 23:09:50 +02:00
### func [IngressFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/ingress.go#L26>)
2025-07-06 15:36:43 +02:00
```go
func IngressFrom(data string) (*Ingress, error)
```
IngressFrom creates a new Ingress from a compose service.
< a name = "MapEnv" > < / a >
2025-08-19 23:09:50 +02:00
## type [MapEnv](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/mapenv.go#L5>)
2025-07-06 15:36:43 +02:00
```go
type MapEnv map[string]string
```
< a name = "MapEnvFrom" > < / a >
2025-08-19 23:09:50 +02:00
### func [MapEnvFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/mapenv.go#L8>)
2025-07-06 15:36:43 +02:00
```go
func MapEnvFrom(data string) (MapEnv, error)
```
MapEnvFrom returns a MapEnv from the given string.
< a name = "Ports" > < / a >
2025-08-19 23:09:50 +02:00
## type [Ports](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/ports.go#L5>)
2025-07-06 15:36:43 +02:00
```go
type Ports []uint32
```
< a name = "PortsFrom" > < / a >
2025-08-19 23:09:50 +02:00
### func [PortsFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/ports.go#L8>)
2025-07-06 15:36:43 +02:00
```go
func PortsFrom(data string) (Ports, error)
```
PortsFrom returns a Ports from the given string.
< a name = "Secrets" > < / a >
2025-08-19 23:09:50 +02:00
## type [Secrets](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/secrets.go#L5>)
2025-07-06 15:36:43 +02:00
```go
type Secrets []string
```
< a name = "SecretsFrom" > < / a >
2025-08-19 23:09:50 +02:00
### func [SecretsFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/secrets.go#L7>)
2025-07-06 15:36:43 +02:00
```go
func SecretsFrom(data string) (Secrets, error)
```
< a name = "TLS" > < / a >
2025-08-19 23:09:50 +02:00
## type [TLS](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/ingress.go#L11-L13>)
2025-07-06 15:36:43 +02:00
```go
type TLS struct {
Enabled bool `yaml:"enabled" json:"enabled,omitempty"`
}
```
< a name = "ValueFrom" > < / a >
2025-08-19 23:09:50 +02:00
## type [ValueFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/valueFrom.go#L5>)
2025-07-06 15:36:43 +02:00
```go
type ValueFrom map[string]string
```
< a name = "GetValueFrom" > < / a >
2025-08-19 23:09:50 +02:00
### func [GetValueFrom](<https://repo.katenary.io/Katenary/katenary/blob/feat-move-to-gitea/internal/generator/labels/labelstructs/valueFrom.go#L7>)
2025-07-06 15:36:43 +02:00
```go
func GetValueFrom(data string) (*ValueFrom, error)
```
Generated by [gomarkdoc ](<https://github.com/princjef/gomarkdoc> )