definition

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerDefinition

type ContainerDefinition struct {
	Content []byte
}

type Definition

type Definition struct {
	EcspressoConfig *EcspressoConfig
	Service         *ServiceDefinition
	Task            *TaskDefinition
	Cluster         string
}

func (*Definition) Print

func (def *Definition) Print()

type DefinitionOpts

type DefinitionOpts struct {
	ConfDir            string `env:"DMTS_CONF_DIR" short:"d" required:"" default:"~/.demitas" help:"Config file base dir."`
	Config             string `env:"ECSPRESSO_CONF" required:"" default:"ecspresso.yml" help:"ecspresso config file name."`
	ContainerDef       string `env:"DMTS_CONT_DEF" required:"" default:"ecs-container-def.jsonnet" help:"ECS container definition file name."`
	ConfigOverrides    string `short:"e" help:"JSON/YAML string that overrides ecspresso config."`
	ServiceOverrides   string `short:"s" help:"JSON/YAML string that overrides ECS service definition."`
	TaskOverrides      string `short:"t" help:"JSON/YAML string that overrides ECS task definition."`
	ContainerOverrides string `short:"c" help:"JSON/YAML string that overrides ECS container definition."`
}

func (*DefinitionOpts) ExpandConfDir

func (opts *DefinitionOpts) ExpandConfDir() string

func (*DefinitionOpts) Load

func (opts *DefinitionOpts) Load(profile string, command string, image string, cpu uint64, memory uint64) (*Definition, error)

type EcspressoConfig

type EcspressoConfig struct {
	Content []byte
}

func (*EcspressoConfig) Print

func (ecsConf *EcspressoConfig) Print()

type ServiceDefinition

type ServiceDefinition struct {
	Content []byte
}

func (*ServiceDefinition) Print

func (svrDef *ServiceDefinition) Print()

type TaskDefinition

type TaskDefinition struct {
	Content []byte
}

Jump to

Keyboard shortcuts

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