apply

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 19 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 ApplyCommand

type ApplyCommand struct {
	actions.GitHubActionCommand

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

ApplyCommand performs terraform apply on the given working directory.

func (*ApplyCommand) Desc

func (c *ApplyCommand) Desc() string

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

func (*ApplyCommand) Flags

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

func (*ApplyCommand) Help

func (c *ApplyCommand) Help() string

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

func (*ApplyCommand) Process

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

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

func (*ApplyCommand) Run

func (c *ApplyCommand) 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