appconfig

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ImagesDirectory string    `mapstructure:"images_directory"`
	Contexts        []Context `mapstructure:"contexts"`
	CurrentContext  string    `mapstructure:"current_context"`
	Verbose         bool      `mapstructure:"verbose"`
}

func (*Config) CurrentRegistry

func (c *Config) CurrentRegistry() string

func (*Config) Override

func (c *Config) Override(ref string) string

Override takes a reference and overrides it by prepending the registry from the current context

type Context

type Context struct {
	Name     string `mapstructure:"name"`
	Registry string `mapstructure:"registry"`
	User     string `mapstructure:"user"`
	Password string `mapstructure:"password"`
}

Jump to

Keyboard shortcuts

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