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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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