config

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	ExtensionExclude string `mapstructure:"extensionExclude" validate:"required"`
	Docker           Docker `mapstructure:"docker"`
}

type Config

type Config struct {
	Build    Build    `mapstructure:"build"`
	Template Template `mapstructure:"template" validate:"omitempty,required"`
}

func DefaultConfig

func DefaultConfig() Config

func NewConfig

func NewConfig() Config

func (*Config) Get

func (g *Config) Get() *Config

type Docker added in v0.11.0

type Docker struct {
	CacheToEnable   bool              `mapstructure:"cacheToEnable"`
	CacheFromEnable bool              `mapstructure:"cacheFromEnable"`
	BuildExtraOpts  map[string]string `mapstructure:"buildExtraOpts"`
}

type Template

type Template struct {
	ImagePath string `mapstructure:"imagePath" validate:"omitempty,required"`
	IndexPath string `mapstructure:"indexPath" validate:"omitempty,required"`
}

Jump to

Keyboard shortcuts

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