Documentation ¶
Index ¶
- Constants
- func NewParser() *viper.Viper
- func SortedStringKeys(i interface{}) []string
- type Config
- type Overlay
- func (o *Overlay) Add(path string) error
- func (o *Overlay) Apply(target string) error
- func (o *Overlay) Delete(path string) error
- func (o *Overlay) Init(path string) error
- func (o *Overlay) ParseConfig() error
- func (o *Overlay) PlanExecution(target string, opts *plan.ExecuteOptions) (*plan.Plan, error)
- func (o *Overlay) Pretty() string
- func (o *Overlay) Rm(path string) error
- func (o *Overlay) String() string
- type OverlayConfig
- type Repository
- type Workdir
Constants ¶
View Source
const ( Version = "dev" Commit = "" Date = "" BuiltBy = "" )
View Source
const (
// defaultCfg = "~/.config/over.yml"
EnvPrefix = "OVER_"
)
Variables ¶
This section is empty.
Functions ¶
func SortedStringKeys ¶
func SortedStringKeys(i interface{}) []string
Types ¶
type Config ¶
Config stores the un marshalled parameters
type Overlay ¶
type Overlay struct { Name string Root string Config *OverlayConfig }
func NewOverlay ¶
NewOverlay instianciate a new or existing overlay
func (*Overlay) Delete ¶
Delete the overlay from the repository. If the overlay does not exists, Delete does not nothing. If the overlay exists, files are removed from git management and disk.
func (*Overlay) Init ¶
Init perform the overlay initialization. If the overlay does not exists, Init create the overlay on-disk layout and adds initial files to git management. If the overlay already exists, Init does nothing.
func (*Overlay) ParseConfig ¶
func (*Overlay) PlanExecution ¶
type OverlayConfig ¶
type Repository ¶
func NewRepository ¶
func NewRepository(cfg *Config) *Repository
func (*Repository) Get ¶
func (r *Repository) Get(name string) *Overlay
func (*Repository) Init ¶
func (r *Repository) Init() error
Init create the repository on disk if not existant
func (*Repository) List ¶
func (r *Repository) List() []*Overlay
List all overlays into the repository
func (*Repository) New ¶
func (r *Repository) New() *Overlay
New create a new overlay into the repository
func (*Repository) String ¶
func (r *Repository) String() string
Directories ¶
Path | Synopsis |
---|---|
Package actions provides all the `plan.Step` implementations and factories
|
Package actions provides all the `plan.Step` implementations and factories |
Package plan provides a model to describe an execution plan.
|
Package plan provides a model to describe an execution plan. |
Click to show internal directories.
Click to hide internal directories.