plan

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 19 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 PlanCommand

type PlanCommand struct {
	actions.GitHubActionCommand

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

func (*PlanCommand) Desc

func (c *PlanCommand) Desc() string

func (*PlanCommand) Flags

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

func (*PlanCommand) Help

func (c *PlanCommand) Help() string

func (*PlanCommand) Process

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

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

func (*PlanCommand) Run

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