Documentation ¶
Index ¶
- Constants
- func NewCmdCreatePDB(streams genericclioptions.IOStreams, conf genericclioptions.RESTClientGetter) *cobra.Command
- func NewCmdEvictPod(streams genericclioptions.IOStreams, ...) *cobra.Command
- func NewCmdPdb(streams genericclioptions.IOStreams, conf genericclioptions.RESTClientGetter) *cobra.Command
- func NewCmdPods(streams genericclioptions.IOStreams, conf *genericclioptions.ConfigFlags) *cobra.Command
- type CreatePDBOptions
- type EvictPodOptions
- type PDBOptions
- type PodPDBEntry
- type PodPDBList
- type PodsOptions
Constants ¶
View Source
const ( SortByNameKey = "name" SortByCountKey = "count" )
Variables ¶
This section is empty.
Functions ¶
func NewCmdCreatePDB ¶
func NewCmdCreatePDB(streams genericclioptions.IOStreams, conf genericclioptions.RESTClientGetter) *cobra.Command
func NewCmdEvictPod ¶
func NewCmdEvictPod(streams genericclioptions.IOStreams, configFlags *genericclioptions.ConfigFlags) *cobra.Command
func NewCmdPdb ¶
func NewCmdPdb(streams genericclioptions.IOStreams, conf genericclioptions.RESTClientGetter) *cobra.Command
func NewCmdPods ¶
func NewCmdPods(streams genericclioptions.IOStreams, conf *genericclioptions.ConfigFlags) *cobra.Command
Types ¶
type CreatePDBOptions ¶
type CreatePDBOptions struct { genericclioptions.IOStreams // contains filtered or unexported fields }
func NewCreatePDBOptions ¶
func NewCreatePDBOptions(streams genericclioptions.IOStreams, conf genericclioptions.RESTClientGetter) *CreatePDBOptions
func (*CreatePDBOptions) Complete ¶
func (o *CreatePDBOptions) Complete(cmd *cobra.Command, args []string) error
func (*CreatePDBOptions) GetPrinter ¶
func (o *CreatePDBOptions) GetPrinter() (printers.ResourcePrinter, error)
func (*CreatePDBOptions) Run ¶
func (o *CreatePDBOptions) Run() error
func (*CreatePDBOptions) Validate ¶
func (o *CreatePDBOptions) Validate() error
type EvictPodOptions ¶
type EvictPodOptions struct { genericclioptions.IOStreams Namespace string PodName string DryRun bool Output string GracePeriodSeconds int64 // contains filtered or unexported fields }
func NewEvictPodOptions ¶
func NewEvictPodOptions(streams genericclioptions.IOStreams, configFlags *genericclioptions.ConfigFlags) *EvictPodOptions
func (*EvictPodOptions) Complete ¶
func (o *EvictPodOptions) Complete(cmd *cobra.Command, args []string) error
func (*EvictPodOptions) GetPrinter ¶
func (o *EvictPodOptions) GetPrinter() (printers.ResourcePrinter, error)
func (*EvictPodOptions) Run ¶
func (o *EvictPodOptions) Run() error
func (*EvictPodOptions) Validate ¶
func (o *EvictPodOptions) Validate() error
type PDBOptions ¶
type PDBOptions struct { genericclioptions.IOStreams AllNamespaces bool Namespace string PodName string Output string Template string SortBy string // contains filtered or unexported fields }
func NewPDBOptions ¶
func NewPDBOptions(streams genericclioptions.IOStreams, conf genericclioptions.RESTClientGetter) *PDBOptions
func (*PDBOptions) Complete ¶
func (o *PDBOptions) Complete(cmd *cobra.Command, args []string) error
func (*PDBOptions) GetNamespace ¶
func (o *PDBOptions) GetNamespace() string
func (*PDBOptions) GetPrinter ¶
func (o *PDBOptions) GetPrinter() (printers.ResourcePrinter, error)
func (*PDBOptions) Run ¶
func (o *PDBOptions) Run() error
func (*PDBOptions) Validate ¶
func (o *PDBOptions) Validate() error
type PodPDBEntry ¶
type PodPDBEntry struct { Pod corev1.Pod Pdbs []policyv1.PodDisruptionBudget }
func (*PodPDBEntry) OwnerName ¶
func (e *PodPDBEntry) OwnerName() string
type PodPDBList ¶
type PodPDBList struct {
Items []PodPDBEntry
}
type PodsOptions ¶
type PodsOptions struct { genericclioptions.IOStreams Namespace string PDBName string Output string Template string OutputWide bool // contains filtered or unexported fields }
TODO: add sort-by argument
func NewPodsOptions ¶
func NewPodsOptions(streams genericclioptions.IOStreams, conf *genericclioptions.ConfigFlags) *PodsOptions
func (*PodsOptions) Complete ¶
func (o *PodsOptions) Complete(cmd *cobra.Command, args []string) error
func (*PodsOptions) GetPrinter ¶
func (o *PodsOptions) GetPrinter() (printers.ResourcePrinter, error)
func (*PodsOptions) Run ¶
func (o *PodsOptions) Run() error
func (*PodsOptions) Validate ¶
func (o *PodsOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.