models

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	Remote EnvRemote         `yaml:"remote,omitempty"`
	Vars   map[string]EnvVar `yaml:"vars,omitempty"`
}

func (Env) GetEnvs

func (e Env) GetEnvs(cfg aws.Config) map[string]string

type EnvRemote

type EnvRemote struct {
	Type string `yaml:"type"`
	Key  string `yaml:"key"`
}

func (EnvRemote) GetValues

func (e EnvRemote) GetValues(cfg aws.Config) map[string]string

type EnvVar

type EnvVar struct {
	Source string `yaml:"source,omitempty"`
	Key    string `yaml:"key,omitempty"`
	Value  string `yaml:"value,omitempty"`
}

func (EnvVar) GetValue

func (e EnvVar) GetValue(cfg aws.Config) string

type Job

type Job struct {
	Name       string   `yaml:"name"`
	WorkingDir string   `yaml:"working_dir,omitempty"`
	Command    string   `yaml:"command"`
	Args       []string `yaml:"args,omitempty"`
	Env        Env      `yaml:"env,omitempty"`
}

func (Job) ToJobConfig

func (j Job) ToJobConfig(cfg aws.Config) JobConfig

func (Job) ToYAML

func (j Job) ToYAML() string

type JobConfig

type JobConfig struct {
	Name       string   `yaml:"name"`
	WorkingDir string   `yaml:"working_dir,omitempty"`
	Command    string   `yaml:"command"`
	Args       []string `yaml:"args,omitempty"`
	Env        map[string]string
}

func (JobConfig) ToYAML

func (j JobConfig) ToYAML() string

type Jobs

type Jobs struct {
	DefaultStage string           `yaml:"default_stage"`
	Jobs         map[string][]Job `yaml:"jobs"`
}

Jump to

Keyboard shortcuts

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