Documentation
¶
Index ¶
- func Decode(data []byte, m *Modules) error
- func Encode(m Modules) ([]byte, error)
- func NewModules(scope scope.Scope, modules Modules, input io.Reader, options Options) (cli.Modules, error)
- type Modules
- type Op
- type Options
- type Playbook
- type Playbooks
- func (pb *Playbooks) Add(op Op, source, cacheDir string)
- func (pb Playbooks) Empty() bool
- func (pb *Playbooks) Has(op Op) bool
- func (pb *Playbooks) Modules() map[Op]SourceURL
- func (pb *Playbooks) Remove(op Op)
- func (pb *Playbooks) Save() error
- func (pb Playbooks) Source(op Op) string
- func (pb *Playbooks) Visit(f func(Op, Playbook))
- type SourceURL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// ShowAllWarnings will print all warnings to the console.
ShowAllWarnings bool
template.Options `json:",inline" yaml:",inline"`
}
Options contains tuning params for the behavior of the templating engine and callables.
type Playbook ¶
type Playbook struct {
// Source is the original location
Source string
// Cache is the cached location, as a url of file:// format
Cache string
}
Playbook contains information about the source and a local cache.
type Playbooks ¶
Playbooks is a collection of playbooks indexed by operation
Click to show internal directories.
Click to hide internal directories.