spec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name      string            `json:"name"`
	Type      string            `json:"type"`
	Image     string            `json:"image"`
	Command   []string          `json:"command,omitempty"`
	PostStart *PostStartHook    `json:"postStart,omitempty"`
	Configs   map[string]string `json:"configs"`
	Mounts    map[string]string `json:"mounts"`
}

type AuthInfo

type AuthInfo struct {
	Username string
	Password string
	Registry string
}

type ConfigMapKeyRef

type ConfigMapKeyRef struct {
	Name string `yaml:"name"`
	Key  string `yaml:"key"`
}

type ConfigMapRef

type ConfigMapRef struct {
	Name string `yaml:"name"`
}

type DockerAuth

type DockerAuth struct {
	Auth     string `json:"auth,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
}

DockerAuth represents authentication info for a registry

type DockerCompose

type DockerCompose struct {
	Services map[string]DockerComposeService `yaml:"services"`
	Networks map[string]interface{}          `yaml:"networks"`
}

type DockerComposeService

type DockerComposeService struct {
	Image       string            `yaml:"image"`
	Command     []string          `yaml:"command,omitempty"`
	Environment map[string]string `yaml:"environment,omitempty"`
	Volumes     []string          `yaml:"volumes,omitempty"`
	Restart     string            `yaml:"restart,omitempty"`
	Networks    []string          `yaml:"networks,omitempty"`
	NetworkMode string            `yaml:"network_mode,omitempty"`
}

type DockerConfig

type DockerConfig struct {
	Auths map[string]DockerAuth `json:"auths"`
}

type EnvFrom

type EnvFrom struct {
	ConfigMapRef *ConfigMapRef `yaml:"configMapRef,omitempty"`
}

type EnvVar

type EnvVar struct {
	Name      string        `yaml:"name"`
	Value     string        `yaml:"value,omitempty"`
	ValueFrom *EnvVarSource `yaml:"valueFrom,omitempty"`
}

type EnvVarSource

type EnvVarSource struct {
	ConfigMapKeyRef *ConfigMapKeyRef `yaml:"configMapKeyRef,omitempty"`
}

type ExecAction

type ExecAction struct {
	Command []string `yaml:"command"`
}

type HTTPGetAction

type HTTPGetAction struct {
	Path string `yaml:"path"`
	Port string `yaml:"port"`
}

type Lifecycle

type Lifecycle struct {
	PostStart *LifecycleHandler `yaml:"postStart,omitempty"`
}

type LifecycleHandler

type LifecycleHandler struct {
	Exec    *ExecAction    `yaml:"exec,omitempty"`
	HTTPGet *HTTPGetAction `yaml:"httpGet,omitempty"`
}

type PostStartHook

type PostStartHook struct {
	Type    string   `json:"type"`
	Command []string `json:"command,omitempty"`
	HTTPGet string   `json:"httpGet,omitempty"`
}

type Resource

type Resource struct {
	APIVersion string                 `yaml:"apiVersion"`
	Kind       string                 `yaml:"kind"`
	Metadata   map[string]interface{} `yaml:"metadata"`
	Spec       map[string]interface{} `yaml:"spec,omitempty"`
	Data       map[string]interface{} `yaml:"data,omitempty"`
}

type Volume

type Volume struct {
	Name      string                 `yaml:"name"`
	ConfigMap *VolumeConfigMapSource `yaml:"configMap,omitempty"`
}

type VolumeConfigMapSource

type VolumeConfigMapSource struct {
	Name string `yaml:"name"`
}

type VolumeMount

type VolumeMount struct {
	Name      string `yaml:"name"`
	MountPath string `yaml:"mountPath"`
}

Jump to

Keyboard shortcuts

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