plan

package
v0.1.0-alpha12 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 plan provide the Terraform planning functionality for Guardian.

Index

Constants

View Source
const CommentPrefix = "**`🔱 Guardian 🔱 PLAN`** -"

Variables

This section is empty.

Functions

This section is empty.

Types

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 plan action.

func (*Config) MapGitHubContext

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

MapGitHubContext maps values from the GitHub context.

type PlanRunCommand

type PlanRunCommand struct {
	cli.BaseCommand

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

func (*PlanRunCommand) Desc

func (c *PlanRunCommand) Desc() string

func (*PlanRunCommand) Flags

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

func (*PlanRunCommand) Help

func (c *PlanRunCommand) Help() string

func (*PlanRunCommand) Process

func (c *PlanRunCommand) Process(ctx context.Context) error

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

func (*PlanRunCommand) Run

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

type RunResult

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

RunResult is the result of a plan operation.

Jump to

Keyboard shortcuts

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