Documentation ¶
Index ¶
- Variables
- func New(ctx context.Context, opts clients.CommonOpts) (pipeline.Client, error)
- type Client
- type StateWrapper
- func (w *StateWrapper) Exists(ctx context.Context, arg state.Argument) (bool, error)
- func (w *StateWrapper) GetBool(ctx context.Context, arg state.Argument) (bool, error)
- func (w *StateWrapper) GetDirectory(ctx context.Context, arg state.Argument) (fs.FS, error)
- func (w *StateWrapper) GetDirectoryString(ctx context.Context, arg state.Argument) (string, error)
- func (w *StateWrapper) GetFile(ctx context.Context, arg state.Argument) (*os.File, error)
- func (w *StateWrapper) GetFloat64(ctx context.Context, arg state.Argument) (float64, error)
- func (w *StateWrapper) GetInt64(ctx context.Context, arg state.Argument) (int64, error)
- func (w *StateWrapper) GetString(ctx context.Context, arg state.Argument) (string, error)
- func (w *StateWrapper) SetBool(ctx context.Context, key state.Argument, val bool) error
- func (w *StateWrapper) SetDirectory(ctx context.Context, key state.Argument, val string) error
- func (w *StateWrapper) SetFile(ctx context.Context, key state.Argument, val string) error
- func (w *StateWrapper) SetFileReader(ctx context.Context, key state.Argument, r io.Reader) (string, error)
- func (w *StateWrapper) SetFloat64(ctx context.Context, key state.Argument, val float64) error
- func (w *StateWrapper) SetInt64(ctx context.Context, key state.Argument, val int64) error
- func (w *StateWrapper) SetString(ctx context.Context, key state.Argument, val string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownValues = map[state.Argument]func(context.Context, 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) HandlePipeline ¶ added in v0.12.0
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) GetDirectory ¶ added in v0.11.0
func (*StateWrapper) GetDirectoryString ¶ added in v0.11.0
func (*StateWrapper) GetFloat64 ¶ added in v0.11.0
func (*StateWrapper) SetDirectory ¶ added in v0.11.0
func (*StateWrapper) SetFileReader ¶ added in v0.11.0
func (*StateWrapper) SetFloat64 ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.