config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const LockConfigName = ".chill-lock.yaml"
View Source
const ProjectConfigName = "chill.yaml"

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig(cwd string, file string, lock bool) (*service2.ProjectConfig, error)

Types

type SerializedDependency

type SerializedDependency struct {
	Remote          string `yaml:"remote,omitempty"`
	Local           string `yaml:"local,omitempty"`
	Version         string `yaml:"version"`
	SpecificVersion string `yaml:"specificVersion,omitempty"`
}

type SerializedLockFile

type SerializedLockFile struct {
	Service SerializedService
}

type SerializedService

type SerializedService struct {
	Name           string                          `yaml:"name,omitempty"`
	Registry       string                          `yaml:"registry,omitempty"`
	Remote         string                          `yaml:"remote,omitempty"`
	Clients        map[string]string               `yaml:"clients,omitempty"`
	BaseVersion    string                          `yaml:"baseVersion,omitempty"`
	CurrentVersion string                          `yaml:"currentVersion,omitempty"`
	Stage          string                          `yaml:"stage"`
	Integration    string                          `yaml:"integration"`
	Dependencies   map[string]SerializedDependency `yaml:"dependencies"`
	TrafficTargets map[string]int                  `yaml:"trafficTargets,omitempty"`
	Secrets        []string                        `yaml:"secrets,omitempty"`
}

func ProcessConfig

func ProcessConfig(c *service2.ProjectConfig) (*SerializedService, error)

func (*SerializedService) SaveToFile

func (s *SerializedService) SaveToFile(path string, lock bool) error

Jump to

Keyboard shortcuts

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