renew

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdRenew

func NewCmdRenew(ioStreams genericclioptions.IOStreams, factory cmdutil.Factory) *cobra.Command

NewCmdRenew returns a cobra command for renewing Certificates

Types

type Options

type Options struct {
	CMClient   cmclient.Interface
	RESTConfig *restclient.Config

	// The Namespace that the Certificate to be renewed resided in.
	// This flag registration is handled by cmdutil.Factory
	Namespace     string
	LabelSelector string
	All           bool
	AllNamespaces bool

	genericclioptions.IOStreams
}

Options is a struct to support renew command

func NewOptions

func NewOptions(ioStreams genericclioptions.IOStreams) *Options

NewOptions returns initialized Options

func (*Options) Complete

func (o *Options) Complete(f cmdutil.Factory) error

Complete takes the command arguments and factory and infers any remaining options.

func (*Options) Run

func (o *Options) Run(args []string) error

Run executes renew command

func (*Options) Validate

func (o *Options) Validate(cmd *cobra.Command, args []string) error

Validate validates the provided options

Jump to

Keyboard shortcuts

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