Documentation
¶
Index ¶
- func ImageByRegistry(registry string, images []string) (string, error)
- func Registry(imageName string) (string, error)
- type Config
- func (c *Config) Add(stack Stack) error
- func (c *Config) Delete(stackID string) error
- func (c *Config) Get(stackID string) (*Stack, error)
- func (c *Config) Path() string
- func (c *Config) SetDefaultBuilder(builder string) error
- func (c *Config) SetDefaultStack(stackID string) error
- func (c *Config) Update(stackID string, stack Stack) error
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Stacks []Stack `toml:"stacks"`
DefaultStackID string `toml:"default-stack-id"`
DefaultBuilder string `toml:"default-builder"`
// contains filtered or unexported fields
}
func NewDefault ¶ added in v0.0.5
func (*Config) Path ¶ added in v0.0.5
Path returns the directory path where the config is stored as a toml file. That directory may also contain other `pack` related files.
func (*Config) SetDefaultBuilder ¶ added in v0.0.6
func (*Config) SetDefaultStack ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.