config

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpdateStrategyCurrent  = "current"
	UpdateStrategyLatest   = "latest"
	UpdateStrategyRedeploy = "redeploy"
	UpdateStrategyNone     = "none"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ParsedConfig added in v0.0.9

type ParsedConfig struct {
	Services       []*Service
	ScheduledTasks []*ScheduledTask
	Role           *Role
	TimeoutMinutes int
	UpdateStrategy string
}

func Read added in v0.0.5

func Read(configPath, gitsha string) (ParsedConfig, error)

Read reads the config file at the given path and returns a slice of services and scheduled tasks.

type Role added in v0.0.6

type Role struct {
	ARN string `yaml:"arn"`
}

Role represents an IAM role to assume

type ScheduledTask added in v0.0.5

type ScheduledTask struct {
	Name                      string
	Gitsha                    string
	UpdateStrategy            string
	PreviousGitsha            string
	TaskDefinitionARN         string
	PreviousTaskDefinitionARN string
}

ScheduledTask represents an ECS Scheduled Task.

type Service

type Service struct {
	Name           string
	Gitsha         string
	Cluster        string
	URL            string
	UpdateStrategy string
	Containers     []string
	// The Git SHA of the previous deployment. Used by Gehen for rollback purposes.
	// Please do not modify this value.
	PreviousGitsha            string
	PreviousTaskDefinitionARN string
	TaskDefinitionARN         string
	Tags                      []string
}

Service represents a service that can be deployed by gehen.

Jump to

Keyboard shortcuts

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