petitions

package
v0.10.13 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package petitions offer subcommands for performing actions with Petitions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdApprove

func NewCmdApprove(f cliutil.Factory) *cobra.Command

NewCmdApprove returns a command allowing users to approve a Petition.

func NewCmdClose

func NewCmdClose(f cliutil.Factory) *cobra.Command

NewCmdClose returns a command allowing users to close a Petition.

func NewCmdCreate

func NewCmdCreate(f cliutil.Factory) *cobra.Command

NewCmdCreate returns a command allowing users to create a Petition.

func NewCmdDeny

func NewCmdDeny(f cliutil.Factory) *cobra.Command

NewCmdDeny returns a command allowing users to deny a Petition.

func NewCmdList

func NewCmdList(f cliutil.Factory) *cobra.Command

NewCmdList returns a command allowing users to list Petitions.

func NewCmdPetitions

func NewCmdPetitions(f cliutil.Factory) *cobra.Command

NewCmdPetitions returns a set of commands allowing users manage Petitions.

func NewCmdRevoke

func NewCmdRevoke(f cliutil.Factory) *cobra.Command

NewCmdRevoke returns a command allowing users to revoke a Petition.

Types

type ApproveOptions

type ApproveOptions struct {
	Duration   time.Duration
	Indefinite bool
}

ApproveOptions specify the details of approving a Petition.

func NewApproveOptions

func NewApproveOptions() *ApproveOptions

NewApproveOptions returns a ApproveOptions with the defaults set.

type CreateOptions

type CreateOptions struct {
	*indentv1.CreatePetitionRequest
	ResourceNames []string
	Interactive   bool
	Output        string
}

CreateOptions specify the Petition being created.

func NewCreateOptions

func NewCreateOptions() *CreateOptions

NewCreateOptions returns CreateOptions with the defaults set.

type ListOptions added in v0.10.10

type ListOptions struct {
	Output string
}

ListOptions are the options for listing Petitions.

func NewListOptions added in v0.10.10

func NewListOptions() *ListOptions

NewListOptions returns a new ListOptions.

Jump to

Keyboard shortcuts

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