linux

package
v0.22.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package linux provides the ability for Vela to integrate with a Linux as an operating system.

Usage:

import "github.com/go-vela/worker/executor/linux"

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnrecognizedSecretType defines the error type when the
	// SecretType provided to the client is unsupported.
	ErrUnrecognizedSecretType = errors.New("unrecognized secret type")

	// ErrUnableToRetrieve defines the error type when the
	// secret is not able to be retrieved from the server.
	ErrUnableToRetrieve = errors.New("unable to retrieve secret")
)

Functions

func Equal added in v0.14.0

func Equal(a, b *client) bool

Equal returns true if the other client is the equivalent.

func New

func New(opts ...Opt) (*client, error)

New returns an Executor implementation that integrates with a Linux instance.

Types

type Opt added in v0.11.0

type Opt func(*client) error

Opt represents a configuration option to initialize the executor client for Linux.

func WithBuild added in v0.11.0

func WithBuild(b *library.Build) Opt

WithBuild sets the library build in the executor client for Linux.

func WithEnforceTrustedRepos added in v0.16.0

func WithEnforceTrustedRepos(enforce bool) Opt

WithEnforceTrustedRepos configures trusted repo restrictions in the executor client for Linux.

func WithHostname added in v0.11.0

func WithHostname(hostname string) Opt

WithHostname sets the hostname in the executor client for Linux.

func WithLogStreamingTimeout added in v0.17.0

func WithLogStreamingTimeout(timeout time.Duration) Opt

WithLogStreamingTimeout sets the log streaming timeout in the executor client for Linux.

func WithLogger added in v0.12.0

func WithLogger(logger *logrus.Entry) Opt

WithLogger sets the logger in the executor client for Linux.

func WithMaxLogSize added in v0.12.0

func WithMaxLogSize(size uint) Opt

WithMaxLogSize sets the maximum log size (in bytes) in the executor client for Linux.

func WithPipeline added in v0.11.0

func WithPipeline(p *pipeline.Build) Opt

WithPipeline sets the pipeline build in the executor client for Linux.

func WithPrivilegedImages added in v0.16.0

func WithPrivilegedImages(images []string) Opt

WithPrivilegedImages sets the privileged images in the executor client for Linux.

func WithRepo added in v0.11.0

func WithRepo(r *library.Repo) Opt

WithRepo sets the library repo in the executor client for Linux.

func WithRuntime added in v0.11.0

func WithRuntime(r runtime.Engine) Opt

WithRuntime sets the runtime engine in the executor client for Linux.

func WithUser added in v0.11.0

func WithUser(u *library.User) Opt

WithUser sets the library user in the executor client for Linux.

func WithVelaClient added in v0.11.0

func WithVelaClient(cli *vela.Client) Opt

WithVelaClient sets the Vela client in the executor client for Linux.

func WithVersion added in v0.11.0

func WithVersion(version string) Opt

WithVersion sets the version in the executor client for Linux.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL