Files
katenary/doc/docs/packages/generator/labelStructs.md
Patrice Ferlet 865473b41b Enhance documentation
- upgraded mkdocs and dependencise (+ add mermaid)
- linted markdown
- add more details
2024-10-18 09:36:56 +02:00

4.7 KiB

labelStructs

import "katenary/generator/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"`
    Command  string `yaml:"command"`
    Schedule string `yaml:"schedule"`
    Rbac     bool   `yaml:"rbac"`
}

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:"-"`
    Name       string         `yaml:"name"`
    Version    string         `yaml:"version"`
    Repository string         `yaml:"repository"`
    Alias      string         `yaml:"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 Ingress

type Ingress struct {
    Port        *int32            `yaml:"port,omitempty"`
    Annotations map[string]string `yaml:"annotations,omitempty"`
    Hostname    string            `yaml:"hostname"`
    Path        string            `yaml:"path"`
    Class       string            `yaml:"class"`
    Enabled     bool              `yaml:"enabled"`
}

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 Probe

type Probe struct {
    LivenessProbe  *corev1.Probe `yaml:"livenessProbe,omitempty"`
    ReadinessProbe *corev1.Probe `yaml:"readinessProbe,omitempty"`
}

func ProbeFrom

func ProbeFrom(data string) (*Probe, error)

type Secrets

type Secrets []string

func SecretsFrom

func SecretsFrom(data string) (Secrets, error)

Generated by gomarkdoc