Documentation
¶
Index ¶
- Constants
- func ColoredPhase(phase agenticv1alpha1.ProposalPhase) string
- func HumanDuration(t time.Time) string
- func IsTerminalPhase(phase agenticv1alpha1.ProposalPhase) bool
- func IsValidPhase(phase string) bool
- func IsValidStep(step string) bool
- func MarshalOutput(w io.Writer, obj interface{}, format string) error
- func NewApproveCmd(streams genericclioptions.IOStreams) *cobra.Command
- func NewClient(f *genericclioptions.ConfigFlags) (client.Client, error)
- func NewClientFromConfig(cfg *rest.Config) (client.Client, error)
- func NewCreateCmd(streams genericclioptions.IOStreams) *cobra.Command
- func NewDeleteCmd(streams genericclioptions.IOStreams) *cobra.Command
- func NewDenyCmd(streams genericclioptions.IOStreams) *cobra.Command
- func NewGetCmd(streams genericclioptions.IOStreams) *cobra.Command
- func NewListCmd(streams genericclioptions.IOStreams) *cobra.Command
- func NewLogsCmd(streams genericclioptions.IOStreams) *cobra.Command
- func NewProposalCmd(streams genericclioptions.IOStreams) *cobra.Command
- func NewWatchCmd(streams genericclioptions.IOStreams) *cobra.Command
- func NormalizeStep(step string) agenticv1alpha1.SandboxStep
- func PhaseColor(phase agenticv1alpha1.ProposalPhase) string
- func PrintTable(w io.Writer, headers []string, rows [][]string)
- func ResolveNamespace(f *genericclioptions.ConfigFlags) (string, error)
- func SortProposalsByAge(items []agenticv1alpha1.Proposal)
- func ValidateOutputFormat(format string, allowWide bool) error
- type ApproveOptions
- type CreateOptions
- type DeleteOptions
- type DenyOptions
- type GetOptions
- type ListOptions
- type LogsOptions
- type WatchOptions
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 IsTerminalPhase ¶
func IsTerminalPhase(phase agenticv1alpha1.ProposalPhase) bool
func IsValidPhase ¶
func IsValidStep ¶
func NewApproveCmd ¶
func NewApproveCmd(streams genericclioptions.IOStreams) *cobra.Command
func NewClient ¶
func NewClient(f *genericclioptions.ConfigFlags) (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 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 ResolveNamespace ¶
func ResolveNamespace(f *genericclioptions.ConfigFlags) (string, error)
func SortProposalsByAge ¶
func SortProposalsByAge(items []agenticv1alpha1.Proposal)
func ValidateOutputFormat ¶
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) 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) Validate ¶
func (o *CreateOptions) Validate() error
type DeleteOptions ¶
type DeleteOptions struct {
genericclioptions.IOStreams
// contains filtered or unexported fields
}
type DenyOptions ¶
type DenyOptions struct {
genericclioptions.IOStreams
// contains filtered or unexported fields
}
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) 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) 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) Validate ¶
func (o *LogsOptions) Validate() error
type WatchOptions ¶
type WatchOptions struct {
genericclioptions.IOStreams
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.