6.7 KiB
6.7 KiB
labelStructs
import "katenary/generator/labels/labelStructs"
labelStructs is a package that contains the structs used to represent the labels in the yaml files.
type ConfigMapFile
type ConfigMapFile []string
func ConfigMapFileFrom
func ConfigMapFileFrom(data string) (ConfigMapFile, error)
type CronJob
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"`
}
func CronJobFrom
func CronJobFrom(data string) (*CronJob, error)
type Dependency
Dependency is a dependency of a chart to other charts.
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"`
}
func DependenciesFrom
func DependenciesFrom(data string) ([]Dependency, error)
DependenciesFrom returns a slice of dependencies from the given string.
type EnvFrom
type EnvFrom []string
func EnvFromFrom
func EnvFromFrom(data string) (EnvFrom, error)
EnvFromFrom returns a EnvFrom from the given string.
type ExchangeVolume
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"`
}
func NewExchangeVolumes
func NewExchangeVolumes(data string) ([]*ExchangeVolume, error)
type HealthCheck
type HealthCheck struct {
LivenessProbe *corev1.Probe `yaml:"livenessProbe,omitempty" json:"livenessProbe,omitempty"`
ReadinessProbe *corev1.Probe `yaml:"readinessProbe,omitempty" json:"readinessProbe,omitempty"`
}
func ProbeFrom
func ProbeFrom(data string) (*HealthCheck, error)
type Ingress
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" 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" json:"enabled,omitempty"`
TLS *TLS `yaml:"tls,omitempty" json:"tls,omitempty"`
}
func IngressFrom
func IngressFrom(data string) (*Ingress, error)
IngressFrom creates a new Ingress from a compose service.
type MapEnv
type MapEnv map[string]string
func MapEnvFrom
func MapEnvFrom(data string) (MapEnv, error)
MapEnvFrom returns a MapEnv from the given string.
type Ports
type Ports []uint32
func PortsFrom
func PortsFrom(data string) (Ports, error)
PortsFrom returns a Ports from the given string.
type Secrets
type Secrets []string
func SecretsFrom
func SecretsFrom(data string) (Secrets, error)
type TLS
type TLS struct {
Enabled bool `yaml:"enabled" json:"enabled,omitempty"`
}
type ValueFrom
type ValueFrom map[string]string
func GetValueFrom
func GetValueFrom(data string) (*ValueFrom, error)
Generated by gomarkdoc