Documentation ¶
Index ¶
- type BackRef
- type Config
- func (c *Config) BuildAll(force bool)
- func (c *Config) Destination(dst ...string) string
- func (c *Config) Error(err ...error) error
- func (c *Config) Force(f ...bool) bool
- func (c *Config) Load(mf ...string)
- func (c Config) RegisterCmd(name string, cmd []string, timeOutOpt ...int)
- func (c *Config) Source(src ...string) string
- type DataBranch
- type Entity
- type Exec
- type FSDirectory
- type FSFile
- type FSTemplate
- type PrjData
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackRef ¶
type BackRef interface { FileStructure() map[string]*FSDirectory CmdMatch() map[string]*Exec Up() BackRef }
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Destination ¶
func (Config) RegisterCmd ¶
type DataBranch ¶
type DataBranch interface { Files() map[string]*FSDirectory SetFile(*FSFile) File() *FSFile }
type Entity ¶
type Entity struct { Name string `json:"name"` Directories map[string]*FSDirectory `json:"directories"` Execs map[string]*Exec `json:"execs"` Branch DataBranch `json:"-"` Parent BackRef `json:"-"` // contains filtered or unexported fields }
func (*Entity) CalculateHash ¶
func (cd *Entity) CalculateHash(m interface{}) error
func (Entity) FileStructure ¶
func (m Entity) FileStructure() map[string]*FSDirectory
type FSDirectory ¶
type FSDirectory struct { Source string `json:"from"` Destination string `json:"dest"` Files map[string]*FSFile `json:"files"` Copy bool `json:"copyfiles"` Update string `json:"update"` Template *utils.Templax `json:"-"` SourcePath string `json:"-"` DestinationPath string `json:"-"` Entity }
func (*FSDirectory) CalculateHash ¶
func (dir *FSDirectory) CalculateHash() error
func (*FSDirectory) SetBranch ¶
func (fs *FSDirectory) SetBranch(branch ...DataBranch) DataBranch
type FSFile ¶
type FSFile struct { Name string `json:"name"` Copy bool `json:"copy"` Update string `json:"update"` Source string `json:"source"` Templates map[string]string `json:"templates"` Parent BackRef `json:"-"` // contains filtered or unexported fields }
func (*FSFile) CalculateHash ¶
type FSTemplate ¶
type Project ¶
type Project struct { Description string `json:"description"` Mode string `json:"-"` Secrets []string `json:"-"` Entity Error *error `json:"-"` }
func NewProject ¶
func (*Project) CalculateHash ¶
func (*Project) LoadSecrets ¶
Click to show internal directories.
Click to hide internal directories.