Documentation ¶
Index ¶
- Variables
- func New(opts clients.CommonOpts) (pipeline.Client, error)
- type Client
- type StateWrapper
- func (w *StateWrapper) Exists(arg state.Argument) (bool, error)
- func (w *StateWrapper) GetBool(arg state.Argument) (bool, error)
- func (w *StateWrapper) GetDirectory(arg state.Argument) (fs.FS, error)
- func (w *StateWrapper) GetDirectoryString(arg state.Argument) (string, error)
- func (w *StateWrapper) GetFile(arg state.Argument) (*os.File, error)
- func (w *StateWrapper) GetFloat64(arg state.Argument) (float64, error)
- func (w *StateWrapper) GetInt64(arg state.Argument) (int64, error)
- func (w *StateWrapper) GetString(arg state.Argument) (string, error)
- func (w *StateWrapper) SetBool(key state.Argument, val bool) error
- func (w *StateWrapper) SetDirectory(key state.Argument, val string) error
- func (w *StateWrapper) SetFile(key state.Argument, val string) error
- func (w *StateWrapper) SetFileReader(key state.Argument, r io.Reader) (string, error)
- func (w *StateWrapper) SetFloat64(key state.Argument, val float64) error
- func (w *StateWrapper) SetInt64(key state.Argument, val int64) error
- func (w *StateWrapper) SetString(key state.Argument, val string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownValues = map[state.Argument]func(state.Writer) error{ pipeline.ArgumentRemoteURL: setCurrentRemote, pipeline.ArgumentCommitRef: setCurrentCommit, pipeline.ArgumentBranch: setCurrentBranch, pipeline.ArgumentWorkingDir: setWorkingDir, pipeline.ArgumentSourceFS: setSourceFS, pipeline.ArgumentBuildID: setBuildID, }
KnownValues are URL values that we know how to retrieve using the command line.
Functions ¶
Types ¶
type Client ¶
type Client struct { Opts clients.CommonOpts Log *logrus.Logger State *StateWrapper }
The Client is used when interacting with a scribe pipeline using the scribe CLI. It is used to run only one step. The CLI client simply runs the anonymous function defined in the step.
func (*Client) PipelineWalkFunc ¶
PipelineWalkFunc walks through the pipelines that the collection provides. Each pipeline is a pipeline of steps, so each will walk through the list of steps using the StepWalkFunc.
type StateWrapper ¶ added in v0.11.0
func NewStateWrapper ¶ added in v0.11.0
func NewStateWrapper(r state.Reader, w state.Writer) *StateWrapper
func (*StateWrapper) Exists ¶ added in v0.11.0
func (w *StateWrapper) Exists(arg state.Argument) (bool, error)
func (*StateWrapper) GetBool ¶ added in v0.11.0
func (w *StateWrapper) GetBool(arg state.Argument) (bool, error)
func (*StateWrapper) GetDirectory ¶ added in v0.11.0
func (*StateWrapper) GetDirectoryString ¶ added in v0.11.0
func (w *StateWrapper) GetDirectoryString(arg state.Argument) (string, error)
func (*StateWrapper) GetFloat64 ¶ added in v0.11.0
func (w *StateWrapper) GetFloat64(arg state.Argument) (float64, error)
func (*StateWrapper) GetInt64 ¶ added in v0.11.0
func (w *StateWrapper) GetInt64(arg state.Argument) (int64, error)
func (*StateWrapper) GetString ¶ added in v0.11.0
func (w *StateWrapper) GetString(arg state.Argument) (string, error)
func (*StateWrapper) SetBool ¶ added in v0.11.0
func (w *StateWrapper) SetBool(key state.Argument, val bool) error
func (*StateWrapper) SetDirectory ¶ added in v0.11.0
func (w *StateWrapper) SetDirectory(key state.Argument, val string) error
func (*StateWrapper) SetFile ¶ added in v0.11.0
func (w *StateWrapper) SetFile(key state.Argument, val string) error
func (*StateWrapper) SetFileReader ¶ added in v0.11.0
func (*StateWrapper) SetFloat64 ¶ added in v0.11.0
func (w *StateWrapper) SetFloat64(key state.Argument, val float64) error
Click to show internal directories.
Click to hide internal directories.