config

package
v0.0.0-...-e51d0cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Exec       *Exec                                                               `json:"exec,omitempty"`
	Pod        *applyconfigurationscorev1.PodSpecApplyConfiguration                `json:"podSpec,omitempty"`
	PVCs       []applyconfigurationscorev1.PersistentVolumeClaimApplyConfiguration `json:"pvcs,omitempty"`
	ConfigMaps []applyconfigurationscorev1.ConfigMapApplyConfiguration             `json:"cms,omitempty"`
}

func Load

func Load(file string) (*Config, error)

type Env

type Env struct {
	Name  string
	Value string
}

func (*Env) UnmarshalJSON

func (e *Env) UnmarshalJSON(data []byte) error

type Exec

type Exec struct {
	User    string   `json:"user,omitempty"`
	Command []string `json:"command,omitempty"`
	Envs    []Env    `json:"envs,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL