Documentation ¶
Index ¶
- Constants
- type Basic
- func (e *Basic) AddPosibleMapping(m Mapping)
- func (b Basic) ContainsFilter(filter string) bool
- func (e Basic) ControlMappings() []*Mapping
- func (b Basic) Derived() (string, string)
- func (e Basic) Filters() filters
- func (b Basic) Identifier() string
- func (e *Basic) Load(f io.Reader) error
- func (e Basic) Options() string
- func (b Basic) Output() string
- func (Basic) Perform(refmap.Grapher, context.Context) error
- func (e *Basic) Process(bb BranchBuilder, rm refmap.Mutator, ctx context.Context) error
- func (e *Basic) ProcessState(s ...string) error
- func (e Basic) Variables() map[string]string
- type Branch
- type BranchBuilder
- type CLE
- type ConfigReader
- type Directory
- func (d Directory) BehaviourOptionsContain(o string) bool
- func (d Directory) ContainsFilter(filter string) bool
- func (d Directory) Derived() (string, string)
- func (d Directory) Identifier() string
- func (d Directory) Output() string
- func (e *Directory) Process(bb BranchBuilder, rm refmap.Mutator, ctx context.Context) error
- func (e *Directory) ProcessState() error
- type File
- func (e File) ContainsFilter(filter string) bool
- func (file File) Identifier() string
- func (f File) Output() string
- func (file *File) Perform(rm refmap.Grapher, ctx context.Context) error
- func (e *File) Process(bb BranchBuilder, rm refmap.Mutator, ctx context.Context) error
- func (e File) ProcessState() error
- type Mapping
- type Project
- type ProjectBranch
- type Regexp
- type Repository
- type TemplateMethods
Constants ¶
View Source
const ( NormalBehaviour = "" CopyBehaviour = "copy" OutputBehaviour = "output" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct { Name string `json:"name"` SrcDerived string `json:"-"` DstDerived string `json:"-"` Vars map[string]string `json:"vars"` Directories map[string]*Directory `json:"dirs"` Files map[string]*File `json:"files"` Execs map[string]*CLE `json:"execs"` Import bool `json:"import"` Opts string `json:"options"` Flts filters `json:"filters"` Mpns []*Mapping `json:"mappings"` This ConfigReader `json:"-"` Parent ConfigReader `json:"-"` *state.Detect // contains filtered or unexported fields }
func (*Basic) AddPosibleMapping ¶ added in v0.0.15
func (Basic) ContainsFilter ¶ added in v0.0.15
func (Basic) ControlMappings ¶ added in v0.0.15
func (Basic) Identifier ¶ added in v0.0.2
func (*Basic) ProcessState ¶ added in v0.0.15
type Branch ¶
type Branch struct { Directories []string Filename string Vars map[string]string TemplateMethods }
func (*Branch) Clone ¶ added in v0.0.15
func (b *Branch) Clone() BranchBuilder
type BranchBuilder ¶ added in v0.0.15
type BranchBuilder interface { Build(interface{}) (interface{}, error) Clone() BranchBuilder }
type CLE ¶ added in v0.0.15
type CLE struct { Name string Cmd []string `json:"cmd"` Timeout uint `json:"timeout"` Env map[string]string `json:"env"` Dir string `json:"dir"` STDOut *bytes.Buffer STDErr *bytes.Buffer Parent ConfigReader `json:"-"` *state.Detect }
func (CLE) Identifier ¶ added in v0.0.15
func (*CLE) ProcessState ¶ added in v0.0.15
type ConfigReader ¶ added in v0.0.15
type Directory ¶
type Directory struct { OrigOverride string `json:"orig"` DestOverride string `json:"dest"` // Import *configImport `json:"import"` Basic }
func (Directory) BehaviourOptionsContain ¶ added in v0.0.15
func (Directory) ContainsFilter ¶ added in v0.0.15
func (Directory) Identifier ¶ added in v0.0.15
func (*Directory) ProcessState ¶ added in v0.0.17
type File ¶ added in v0.0.15
type File struct { Name string `json:"name"` Source string `json:"source"` Vars map[string]string `json:"vars"` Opts string `json:"options"` Flts filters `json:"filters"` Mpns []*Mapping `json:"mappings"` Template *template.Template `json:"-"` Parent ConfigReader `json:"-"` Branch BranchBuilder `json:"-"` *state.Detect }
func (File) ContainsFilter ¶ added in v0.0.15
func (File) Identifier ¶ added in v0.0.15
func (File) ProcessState ¶ added in v0.0.15
type Project ¶ added in v0.0.13
type Project struct { Testing bool `json:"testing"` Environment string `json:"environment"` Repository Repository `json:"repo"` OrigLocation string `json:"orig"` DestLocation string `json:"dest"` Basic // contains filtered or unexported fields }
func NewProject ¶ added in v0.0.15
func NewProject() *Project
func (Project) Identifier ¶ added in v0.0.15
type ProjectBranch ¶ added in v0.0.13
func (*ProjectBranch) Build ¶ added in v0.0.15
func (pb *ProjectBranch) Build(e interface{}) (interface{}, error)
func (*ProjectBranch) Clone ¶ added in v0.0.15
func (b *ProjectBranch) Clone() BranchBuilder
type Regexp ¶ added in v0.0.15
func (*Regexp) UnmarshalText ¶ added in v0.0.15
type Repository ¶ added in v0.0.13
type Repository struct { }
type TemplateMethods ¶
type TemplateMethods struct { }
func (TemplateMethods) Clean ¶
func (TemplateMethods) Clean(s string) string
func (TemplateMethods) CleanUpper ¶
func (TemplateMethods) CleanUpper(s string) string
func (TemplateMethods) Env ¶ added in v0.0.15
func (TemplateMethods) Env(s string) string
func (TemplateMethods) Plural ¶
func (TemplateMethods) Plural(s string) string
func (TemplateMethods) Title ¶
func (TemplateMethods) Title(s string) string
func (TemplateMethods) Upper ¶
func (TemplateMethods) Upper(s string) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.