workflows

package
v0.1.0-beta2 Latest Latest
Warning

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

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

Documentation

Overview

Package provides worklow helper functionality for Guardian.

Package provides worklow helper functionality for Guardian.

Package provides worklow helper functionality for Guardian.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanStatusCommentCommand

type PlanStatusCommentCommand struct {
	cli.BaseCommand

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

func (*PlanStatusCommentCommand) Desc

func (c *PlanStatusCommentCommand) Desc() string

func (*PlanStatusCommentCommand) Flags

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

func (*PlanStatusCommentCommand) Help

func (c *PlanStatusCommentCommand) Help() string

func (*PlanStatusCommentCommand) Process

Process handles the main logic for the Guardian remove plan comments process.

func (*PlanStatusCommentCommand) Run

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

type PlanStatusCommentsConfig

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

PlanStatusCommentsConfig defines the of configuration required for running the plan status comments command for GitHub workflows.

func (*PlanStatusCommentsConfig) MapGitHubContext

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

MapGitHubContext maps values from the GitHub context.

type RemovePlanCommentsCommand

type RemovePlanCommentsCommand struct {
	cli.BaseCommand

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

func (*RemovePlanCommentsCommand) Desc

func (*RemovePlanCommentsCommand) Flags

func (*RemovePlanCommentsCommand) Help

func (*RemovePlanCommentsCommand) Process

Process handles the main logic for the Guardian remove plan comments process.

func (*RemovePlanCommentsCommand) Run

type ValidatePermissionsCommand

type ValidatePermissionsCommand struct {
	cli.BaseCommand

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

func (*ValidatePermissionsCommand) Desc

func (*ValidatePermissionsCommand) Flags

func (*ValidatePermissionsCommand) Help

func (*ValidatePermissionsCommand) Process

Process handles the main logic for the Guardian validate permissions process.

func (*ValidatePermissionsCommand) Run

type ValidatePermissionsConfig

type ValidatePermissionsConfig struct {
	// GitHub context values
	Actor string
}

ValidatePermissionsConfig defines the of configuration required for running the validate permissions command for GitHub workflows.

func (*ValidatePermissionsConfig) MapGitHubContext

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

MapGitHubContext maps values from the GitHub context.

Jump to

Keyboard shortcuts

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