Documentation ¶
Index ¶
- func ProcessFS(bb func(BranchSetter), fs *FSDirectory, m *refmap.RefMap)
- type Action
- type BackRef
- type BranchSetter
- 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) Finish()
- func (c *Config) Force(f ...bool) bool
- func (c *Config) Load(p ProjectLoader, mf ...string)
- func (c Config) RegisterCmd(name string, cmd, deps []string, timeoutOpt ...uint)
- func (c *Config) Source(src ...string) string
- func (c Config) StopWatching()
- func (c *Config) Watch(throttling time.Duration)
- func (c Config) Watching() bool
- type DataBranch
- type Entity
- type FSDirectory
- type FSFile
- type FSTemplate
- type PrjData
- type Project
- type ProjectLoader
- type TemplateMethods
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessFS ¶ added in v1.0.4
func ProcessFS(bb func(BranchSetter), fs *FSDirectory, m *refmap.RefMap)
Types ¶
type BackRef ¶
type BackRef interface { FileStructure() map[string]*FSDirectory CmdMatch() map[string]*Action Up() BackRef }
type BranchSetter ¶ added in v1.0.4
type BranchSetter interface {
SetBranch(...DataBranch) DataBranch
}
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Destination ¶
func (*Config) Load ¶
func (c *Config) Load(p ProjectLoader, mf ...string)
func (Config) RegisterCmd ¶
func (Config) StopWatching ¶ added in v1.0.8
func (c Config) StopWatching()
type DataBranch ¶
type DataBranch interface { Files() map[string]*FSDirectory SetFile(*FSFile) File() *FSFile }
type Entity ¶
type Entity struct { Name string `json:"name"` Description string `json:"description"` Directories map[string]*FSDirectory `json:"directories"` Actions map[string]*Action `json:"actions"` Branch DataBranch `json:"-"` Parent BackRef `json:"-"` Error *error `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:"copy"` 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 PrjData ¶
type PrjData struct { TemplateMethods Prj *Project FSF *FSFile }
func (PrjData) Files ¶
func (d PrjData) Files() map[string]*FSDirectory
type Project ¶
type Project struct { Repo string `json:"repository"` Mode string `json:"-"` Secrets []string `json:"-"` Entity }
func NewProject ¶
func (*Project) CalculateHash ¶
func (p *Project) CalculateHash()
func (*Project) LoadSecrets ¶
type ProjectLoader ¶ added in v1.0.4
type TemplateMethods ¶ added in v1.0.5
type TemplateMethods struct { }
func (TemplateMethods) Clean ¶ added in v1.0.5
func (TemplateMethods) Clean(s string) string
func (TemplateMethods) CleanUpper ¶ added in v1.0.5
func (TemplateMethods) CleanUpper(s string) string
func (TemplateMethods) Plural ¶ added in v1.0.5
func (TemplateMethods) Plural(s string) string
func (TemplateMethods) Title ¶ added in v1.0.5
func (TemplateMethods) Title(s string) string
func (TemplateMethods) Upper ¶ added in v1.0.5
func (TemplateMethods) Upper(s string) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.