provisioner

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHatchetRunnerEnv

func GetHatchetRunnerEnv(opts *GetEnvOpts, currEnv []string) ([]string, error)

func GetRunnerToken

func GetRunnerToken(opts *GetEnvOpts) (string, error)

Types

type GetEnvOpts

type GetEnvOpts struct {
	Team      *models.Team
	Module    *models.Module
	ModuleRun *models.ModuleRun
	EnvVars   map[string]string

	TokenOpts            token.TokenOpts
	Repository           repository.Repository
	ServerURL            string
	BroadcastGRPCAddress string
}

type ProvisionOpts

type ProvisionOpts struct {
	Env []string

	WaitForRunFinished bool
}

type Provisioner

type Provisioner interface {
	RunPlan(opts *ProvisionOpts) error
	RunApply(opts *ProvisionOpts) error
	RunDestroy(opts *ProvisionOpts) error

	RunStateMonitor(opts *ProvisionOpts, monitorID string, policy []byte) error
	RunPlanMonitor(opts *ProvisionOpts, monitorID string, policy []byte) error
	RunBeforePlanMonitor(opts *ProvisionOpts, monitorID string, policy []byte) error
	RunAfterPlanMonitor(opts *ProvisionOpts, monitorID string, policy []byte) error
	RunBeforeApplyMonitor(opts *ProvisionOpts, monitorID string, policy []byte) error
	RunAfterApplyMonitor(opts *ProvisionOpts, monitorID string, policy []byte) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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