apply

package
v0.1.0-alpha11 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package apply provides the Terraform apply functionality for Guardian.

Index

Constants

View Source
const (
	CommentPrefix = "**`🔱 Guardian 🔱 APPLY`** -"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyRunCommand

type ApplyRunCommand struct {
	cli.BaseCommand

	flags.GitHubFlags
	flags.RetryFlags
	// contains filtered or unexported fields
}

ApplyRunCommand is a subcommand of apply and implements the cli.Command interface. It performs terraform apply on the given working directory.

func (*ApplyRunCommand) Desc

func (c *ApplyRunCommand) Desc() string

Desc provides a short, one-line description of the command.

func (*ApplyRunCommand) Flags

func (c *ApplyRunCommand) Flags() *cli.FlagSet

func (*ApplyRunCommand) Help

func (c *ApplyRunCommand) Help() string

Help is the long-form help output to include usage instructions and flag information.

func (*ApplyRunCommand) Process

func (c *ApplyRunCommand) Process(ctx context.Context) (merr error)

Process handles the main logic for the Guardian apply run process.

func (*ApplyRunCommand) Run

func (c *ApplyRunCommand) Run(ctx context.Context, args []string) error

type Config

type Config struct {
	// GitHub context values
	ServerURL  string // this value is used to generate URLs for creating links in pull request comments
	RunID      int64
	RunAttempt int64
}

Config defines the of configuration required for running the apply action.

func (*Config) MapGitHubContext

func (c *Config) MapGitHubContext(context *githubactions.GitHubContext) error

MapGitHubContext maps values from the GitHub context.

type RunResult

type RunResult struct {
	// contains filtered or unexported fields
}

RunResult is the result of a apply operation.

Jump to

Keyboard shortcuts

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