compose

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 9 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 {
	// contains filtered or unexported fields
}

Compose is a struct that contains a compose object

func New

func New(filename string) (Compose, error)

New creates a new Compose object

func (*Compose) GetPolicies

func (c *Compose) GetPolicies(disableTLS bool) ([]manifest.Manifest, error)

GetPolicies returns a list of policies defined in the compose file

type EnvFiles

type EnvFiles []string

func (EnvFiles) SetEnv

func (e EnvFiles) SetEnv() error

SetEnv sets the environment variables

type Environments

type Environments map[string]string

Environments is a map of environment variables

func (Environments) SetEnv

func (e Environments) SetEnv() error

SetEnv sets the environment variables

type Policy

type Policy struct {
	// Name contains the policy name
	Name string `yaml:",omitempty"`
	// Policy contains the policy OCI name
	Policy string `yaml:",omitempty"`
	// Config contains a list of Updatecli config file path
	Config []string `yaml:",omitempty"`
	// Values contains a list of Updatecli config file path
	Values []string `yaml:",omitempty"`
	// Secrets contains a list of Updatecli secret file path
	Secrets []string `yaml:",omitempty"`
}

func (Policy) IsZero added in v0.64.1

func (p Policy) IsZero() bool

type Spec

type Spec struct {
	// Policies contains a list of policies
	Policies []Policy
	// Environment contains a list of environment variables
	Environments Environments `yaml:",omitempty"`
	// Env_files contains a list of environment files
	Env_files EnvFiles `yaml:"env_files,omitempty"`
}

func LoadFile

func LoadFile(filename string) (*Spec, error)

LoadFile loads an Updatecli compose file into a compose Spec

Jump to

Keyboard shortcuts

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