yaml

package
v0.0.0-...-06b6d77 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Zlib Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compose

type Compose struct {
	Version  string             `yaml:"version"`
	Services map[string]Service `yaml:"services"`
}

type DockerComposeYaml

type DockerComposeYaml struct {
	FileContent         string
	RegistryCredentials []edge.RegistryCredentials
	// contains filtered or unexported fields
}

func NewDockerComposeYAML

func NewDockerComposeYAML(fileContent string, credentials []edge.RegistryCredentials, config *agent.AWSConfig) *DockerComposeYaml

func (*DockerComposeYaml) AddCredentialsAsEnvForSpecificService

func (y *DockerComposeYaml) AddCredentialsAsEnvForSpecificService(serviceName string) (string, error)

type KubernetesYaml

type KubernetesYaml struct {
	FileContent         string
	RegistryCredentials []edge.RegistryCredentials
}

func NewKubernetesYAML

func NewKubernetesYAML(fileContent string, credentials []edge.RegistryCredentials) *KubernetesYaml

func (*KubernetesYaml) AddImagePullSecrets

func (y *KubernetesYaml) AddImagePullSecrets() (string, error)

type Service

type Service struct {
	Image       string   `yaml:"image"`
	Labels      []string `yaml:"labels,omitempty"`
	Command     []string `yaml:"command,omitempty"`
	Environment []string `yaml:"environment,omitempty"`
	Volumes     []string `yaml:"volumes,omitempty"`
}

Jump to

Keyboard shortcuts

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