Documentation ¶
Index ¶
- Variables
- type Run
- func (r *Run) Command(ctx context.Context) (rc ctl.Command, err error)
- func (r *Run) Dependencies() []nix.Dependency
- func (r *Run) Dir() string
- func (r *Run) Env() []string
- func (r *Run) Init() []string
- func (r *Run) InitOnce() []string
- func (r *Run) Name() string
- func (r *Run) SetDependencies(dependencies []nix.Dependency)
- func (r *Run) SetDir(dir string)
- func (r *Run) SetEnv(env []string)
- func (r *Run) SetName(name string)
- func (r *Run) SetNixpkgs(nixpkgs string)
- func (r *Run) UnmarshalYAML(value *yaml.Node) (err error)
- func (r *Run) WrapWithInit(ctx context.Context, rc ctl.Command) (_ ctl.Command, err error)
- type RunMap
- type RunType
- type WithInit
- func (rw *WithInit) Done() <-chan struct{}
- func (rw *WithInit) Name() string
- func (rw *WithInit) Restart() (err error)
- func (rw *WithInit) Running() bool
- func (rw *WithInit) Shutdown() (err error)
- func (rw *WithInit) Start() (err error)
- func (rw *WithInit) Stderr() io.Reader
- func (rw *WithInit) Stdin() io.Writer
- func (rw *WithInit) Stdout() io.Reader
- func (rw *WithInit) Stop() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidRunType = fmt.Errorf("invalid run type")
Functions ¶
This section is empty.
Types ¶
type Run ¶
type Run struct { Type RunType // ComposePath is the path to a docker-compose file or binary // Default filename is used when empty. Path string // DependsOn run or build tasks DependsOn []string `yaml:"dependsOn"` // InitDirty runs run after this task has started and `initOnce`conpleted. InitDirty string `yaml:"init"` // InitOnceDirty runs once during the lifetime of a run // after the actual task has started. InitOnceDirty string `yaml:"initOnce"` // DependenciesDirty read from the bobfile DependenciesDirty []string `yaml:"dependencies"` // contains filtered or unexported fields }
func (*Run) Command ¶
Command creates a run cmd and returns a Command interface to control it. To shutdown a Command() use a cancelable context.
func (*Run) Dependencies ¶
func (r *Run) Dependencies() []nix.Dependency
func (*Run) SetDependencies ¶
func (r *Run) SetDependencies(dependencies []nix.Dependency)
func (*Run) SetNixpkgs ¶
func (*Run) UnmarshalYAML ¶
type RunMap ¶
func (RunMap) CollectNixDependenciesForTasks ¶
func (rm RunMap) CollectNixDependenciesForTasks(whitelist []string) ([]nix.Dependency, error)
CollectNixDependenciesForTasks will collect all nix dependencies for task taskName in nixDependencies slice
Source Files ¶
Click to show internal directories.
Click to hide internal directories.