repositories

package
v0.0.0-...-5f29aa1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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