Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Save ¶
func Save(def *Definition) error
func Validate ¶
func Validate(t Definition) error
func Write ¶
func Write(path string, def Definition) error
Types ¶
type Definition ¶
type Definition struct { Syntax string `yaml:"syntax"validate:"required,syntax"` Builder string `yaml:"builder,omitempty"` Services []Service `yaml:"services"validate:"dive"` }
Definition describe the configuration yaml file
func Load ¶
func Load() (*Definition, error)
func New ¶
func New() *Definition
func Read ¶
func Read(path string) (*Definition, error)
Click to show internal directories.
Click to hide internal directories.