runner

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const PlanArtifact string = "/tmp/plan.out"

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Datastore   datastore.Client
	Client      client.Client
	GitProvider gitprovider.Provider
	Layer       *configv1alpha1.TerraformLayer
	Run         *configv1alpha1.TerraformRun
	Repository  *configv1alpha1.TerraformRepository
	// contains filtered or unexported fields
}

func New

func New(c *config.Config) *Runner

func (*Runner) EnableHermitcrab added in v0.5.0

func (r *Runner) EnableHermitcrab() error

Enable Hermitcrab network mirror configuration.

func (*Runner) Exec

func (r *Runner) Exec() error

Entrypoint function of the runner. Initializes the runner and executes its action.

func (*Runner) ExecAction added in v0.5.0

func (r *Runner) ExecAction() error

Execute the actions defined in the runner configuration. The runner must be initialized.

func (*Runner) ExecInit added in v0.5.0

func (r *Runner) ExecInit() error

Run the `init` command

func (*Runner) GetResources added in v0.5.0

func (r *Runner) GetResources() error

Retrieve linked resources (layer, run, repository) from the Kubernetes API.

func (*Runner) Init added in v0.5.0

func (r *Runner) Init() error

Initialize the runner: retrieve linked resources (layer, run, repository), fetch the repository content, install the binaries and configure Hermitcrab mirror.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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