flags

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSProfile

type AWSProfile string

AWSProfile is an optional AWS profile name.

func (*AWSProfile) Add

func (f *AWSProfile) Add(cmd *cobra.Command, description string)

Add binds the AWS profile flag.

type Cluster

type Cluster string

Cluster is an HCP cluster identifier shared by HCP commands.

func (*Cluster) Add

func (f *Cluster) Add(flags *pflag.FlagSet)

Add binds the cluster identifier flag.

func (*Cluster) AddRequired

func (f *Cluster) AddRequired(cmd *cobra.Command)

AddRequired binds the required cluster identifier flag.

func (*Cluster) MarkRequired

func (f *Cluster) MarkRequired(cmd *cobra.Command)

MarkRequired marks the cluster identifier flag as required.

type Destination

type Destination string

Destination is the target management cluster for recovery operations.

func (*Destination) Add

func (f *Destination) Add(cmd *cobra.Command, description string)

Add binds the target management-cluster flag and its deprecated alias.

func (Destination) Validate

func (f Destination) Validate() error

Validate reports a missing target management cluster.

type Reason

type Reason string

Reason is the justification for elevated access.

func (*Reason) Add

func (f *Reason) Add(flags *pflag.FlagSet, description string)

Add binds the elevated-access reason flag.

func (*Reason) AddRequired

func (f *Reason) AddRequired(cmd *cobra.Command, description string)

AddRequired binds the required elevated-access reason flag.

func (*Reason) MarkRequired

func (f *Reason) MarkRequired(cmd *cobra.Command)

MarkRequired marks the elevated-access reason flag as required.

type Source

type Source string

Source is an optional source management-cluster identifier.

func (*Source) Add

func (f *Source) Add(cmd *cobra.Command, description string)

Add binds the source management-cluster flag.

Jump to

Keyboard shortcuts

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