Documentation
¶
Index ¶
- Variables
- func NewRemotestore(endpoint *url.URL, allowInsecure bool, token string) (s store.Store)
- type Bobfile
- func (b *Bobfile) BobfileSave(dir, name string) (err error)
- func (b *Bobfile) Bobfiles() []*Bobfile
- func (b *Bobfile) Dir() string
- func (b *Bobfile) Playbook(taskName string, opts ...playbook.Option) (*playbook.Playbook, error)
- func (b *Bobfile) Remotestore() store.Store
- func (b *Bobfile) SetBobfiles(bobs []*Bobfile)
- func (b *Bobfile) SetRemotestore(remote store.Store)
- func (b *Bobfile) Validate() (err error)
- func (b *Bobfile) Vars() []string
- func (b *Bobfile) Verify() error
- func (b *Bobfile) VerifyAfter() error
- func (b *Bobfile) VerifyBefore() error
- type VariableMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotImplemented = fmt.Errorf("Not implemented") ErrBobfileNotFound = fmt.Errorf("Could not find a bob.yaml") ErrHashesFileDoesNotExist = fmt.Errorf("Hashes file does not exist") ErrTaskHashDoesNotExist = fmt.Errorf("Task hash does not exist") ErrBobfileExists = fmt.Errorf("Bobfile exists") ErrDuplicateTaskName = fmt.Errorf("duplicate task name") ErrInvalidProjectName = fmt.Errorf("invalid project name") ErrSelfReference = fmt.Errorf("self reference") ErrInvalidRunType = fmt.Errorf("Invalid run type") ProjectNameFormatHint = "project name should be in the form 'project' or 'registry.com/user/project'" )
Functions ¶
Types ¶
type Bobfile ¶
type Bobfile struct { // Version is optional, and can be used to Version string `yaml:"version,omitempty"` // Project uniquely identifies the current project (optional). If supplied, // aggregation makes sure the project does not depend on another instance // of itself. If not provided, then the project name is set after the path // of its bobfile. Project string `yaml:"project,omitempty"` Imports []string `yaml:"import,omitempty"` // Variables is a map of variables that can be used in the tasks. Variables VariableMap // BTasks build tasks BTasks bobtask.Map `yaml:"build"` // RTasks run tasks RTasks bobrun.RunMap `yaml:"run"` Dependencies []string `yaml:"dependencies"` // Nixpkgs specifies an optional nixpkgs source. Nixpkgs string `yaml:"nixpkgs"` RemoteStoreHost string // contains filtered or unexported fields }
func BobfileRead ¶
BobfileRead read from a bobfile. Calls sanitize on the result.
func BobfileReadPlain ¶
BobfileReadPlain reads a bobfile. For performance reasons sanitize is not called.
func NewBobfile ¶
func NewBobfile() *Bobfile
func (*Bobfile) BobfileSave ¶
func (*Bobfile) Remotestore ¶
func (*Bobfile) SetBobfiles ¶
func (*Bobfile) SetRemotestore ¶
func (*Bobfile) Validate ¶
Validate makes sure no task depends on itself (self-reference) or has the same name as another task
func (*Bobfile) Vars ¶
Vars returns the bobfile variables in the form "key=value" based on its Variables
func (*Bobfile) VerifyAfter ¶
VerifyAfter a bobfile after task runner.
func (*Bobfile) VerifyBefore ¶
VerifyBefore a bobfile before task runner.
type VariableMap ¶
Click to show internal directories.
Click to hide internal directories.