Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GiltDir option set from CLI. // Should move to r.New GiltDir string )
Functions ¶
This section is empty.
Types ¶
type Repositories ¶
type Repositories struct { Debug bool // Debug option set from CLI with debug state. Filename string // Filename option set from CLI with path to gilt.yml. Items []repository.Repository // Items slice containing Repository items. }
Repositories is an object which implements the business logic interface.
func (*Repositories) Overlay ¶
func (r *Repositories) Overlay() error
Overlay clone and extract the Repository items.
func (*Repositories) UnmarshalYAML ¶
func (r *Repositories) UnmarshalYAML(data []byte) error
UnmarshalYAML decodes the first YAML document found within the data byte slice, passes the string through a generic YAML-to-JSON converter, performs validation, provides the resulting JSON to Unmarshaler, and assigns the decoded values to the Repositories struct.
func (*Repositories) UnmarshalYAMLFile ¶
func (r *Repositories) UnmarshalYAMLFile() error
UnmarshalYAMLFile reads the file named by Filename and passes the source data byte slice to UnmarshalYAML for decoding.
Click to show internal directories.
Click to hide internal directories.