config

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ContextOverride string
)

Functions

func SetContext added in v0.2.0

func SetContext(new Context)

func SetDefaultContext added in v0.2.0

func SetDefaultContext(new string) error

Types

type API added in v0.0.3

type API struct {
	ImageName string `mapstructure:"image_name" yaml:"image_name"`
}

type Config

type Config struct {
	Default  string
	Contexts map[string]Context
}

func Get

func Get() Config

type Context added in v0.2.0

type Context struct {
	Name        string
	Repo        string
	Root        string
	TrunkBranch string `mapstructure:"trunk_branch" yaml:"trunk_branch"`
	API         API    `mapstructure:"api"  yaml:"api"`
	IsWorkspace bool
}

func GetContext added in v0.2.0

func GetContext() Context

func LoadWorkspaceContext added in v0.2.0

func LoadWorkspaceContext(path string) Context

Jump to

Keyboard shortcuts

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