Documentation
¶
Overview ¶
Package local provides the ability for Vela to integrate with the local system.
Usage:
import "github.com/go-vela/worker/executor/local"
Index ¶
- func New(opts ...Opt) (*client, error)
- type Opt
- func WithBuild(b *library.Build) Opt
- func WithHostname(hostname string) Opt
- func WithPipeline(p *pipeline.Build) Opt
- func WithRepo(r *library.Repo) Opt
- func WithRuntime(r runtime.Engine) Opt
- func WithUser(u *library.User) Opt
- func WithVelaClient(cli *vela.Client) Opt
- func WithVersion(version string) Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Opt ¶
type Opt func(*client) error
Opt represents a configuration option to initialize the client.
func WithHostname ¶
WithHostname sets the hostname in the client.
func WithPipeline ¶
WithPipeline sets the pipeline build in the client.
func WithRuntime ¶
WithRuntime sets the runtime engine in the client.
func WithVelaClient ¶
WithVelaClient sets the Vela client in the client.
Click to show internal directories.
Click to hide internal directories.