proposal

package
v0.0.1-dev.20260520 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorReset   = "\033[0m"
	ColorRed     = "\033[31m"
	ColorGreen   = "\033[32m"
	ColorYellow  = "\033[33m"
	ColorBlue    = "\033[34m"
	ColorMagenta = "\033[35m"
	ColorCyan    = "\033[36m"
)
View Source
const (
	OutputJSON = "json"
	OutputYAML = "yaml"
	OutputWide = "wide"
)

Variables

This section is empty.

Functions

func ColoredPhase

func ColoredPhase(phase agenticv1alpha1.ProposalPhase) string

func HumanDuration

func HumanDuration(t time.Time) string

func IsTerminalPhase

func IsTerminalPhase(phase agenticv1alpha1.ProposalPhase) bool

func IsValidPhase

func IsValidPhase(phase string) bool

func IsValidStep

func IsValidStep(step string) bool

func MarshalOutput

func MarshalOutput(w io.Writer, obj interface{}, format string) error

func NewApproveCmd

func NewApproveCmd(streams genericclioptions.IOStreams) *cobra.Command

func NewClientFromConfig

func NewClientFromConfig(cfg *rest.Config) (client.Client, error)

func NewCreateCmd

func NewCreateCmd(streams genericclioptions.IOStreams) *cobra.Command

func NewDeleteCmd

func NewDeleteCmd(streams genericclioptions.IOStreams) *cobra.Command

func NewDenyCmd

func NewDenyCmd(streams genericclioptions.IOStreams) *cobra.Command

func NewGetCmd

func NewGetCmd(streams genericclioptions.IOStreams) *cobra.Command

func NewListCmd

func NewListCmd(streams genericclioptions.IOStreams) *cobra.Command

func NewLogsCmd

func NewLogsCmd(streams genericclioptions.IOStreams) *cobra.Command

func NewProposalCmd

func NewProposalCmd(streams genericclioptions.IOStreams) *cobra.Command

func NewWatchCmd

func NewWatchCmd(streams genericclioptions.IOStreams) *cobra.Command

func NormalizeStep

func NormalizeStep(step string) agenticv1alpha1.SandboxStep

func PhaseColor

func PhaseColor(phase agenticv1alpha1.ProposalPhase) string

func PrintTable

func PrintTable(w io.Writer, headers []string, rows [][]string)

func ResolveNamespace

func ResolveNamespace(f *genericclioptions.ConfigFlags) (string, error)

func SortProposalsByAge

func SortProposalsByAge(items []agenticv1alpha1.Proposal)

func ValidateOutputFormat

func ValidateOutputFormat(format string, allowWide bool) error

Types

type ApproveOptions

type ApproveOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func (*ApproveOptions) Complete

func (o *ApproveOptions) Complete(cmd *cobra.Command, args []string) error

func (*ApproveOptions) Run

func (o *ApproveOptions) Run(ctx context.Context) error

func (*ApproveOptions) Validate

func (o *ApproveOptions) Validate() error

type CreateOptions

type CreateOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func (*CreateOptions) Complete

func (o *CreateOptions) Complete(cmd *cobra.Command, args []string) error

func (*CreateOptions) Run

func (o *CreateOptions) Run(ctx context.Context) error

func (*CreateOptions) Validate

func (o *CreateOptions) Validate() error

type DeleteOptions

type DeleteOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func (*DeleteOptions) Complete

func (o *DeleteOptions) Complete(cmd *cobra.Command, args []string) error

func (*DeleteOptions) Run

func (o *DeleteOptions) Run(ctx context.Context) error

type DenyOptions

type DenyOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func (*DenyOptions) Complete

func (o *DenyOptions) Complete(cmd *cobra.Command, args []string) error

func (*DenyOptions) Run

func (o *DenyOptions) Run(ctx context.Context) error

type GetOptions

type GetOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func (*GetOptions) Complete

func (o *GetOptions) Complete(cmd *cobra.Command, args []string) error

func (*GetOptions) Run

func (o *GetOptions) Run(ctx context.Context) error

func (*GetOptions) Validate

func (o *GetOptions) Validate() error

type ListOptions

type ListOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func (*ListOptions) Complete

func (o *ListOptions) Complete(cmd *cobra.Command, args []string) error

func (*ListOptions) Run

func (o *ListOptions) Run(ctx context.Context) error

func (*ListOptions) Validate

func (o *ListOptions) Validate() error

type LogsOptions

type LogsOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func (*LogsOptions) Complete

func (o *LogsOptions) Complete(cmd *cobra.Command, args []string) error

func (*LogsOptions) Run

func (o *LogsOptions) Run(ctx context.Context) error

func (*LogsOptions) Validate

func (o *LogsOptions) Validate() error

type WatchOptions

type WatchOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func (*WatchOptions) Complete

func (o *WatchOptions) Complete(cmd *cobra.Command, args []string) error

func (*WatchOptions) Run

func (o *WatchOptions) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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