Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdCreateCR ¶
NewCmdCreateCR returns a cobra command for create CertificateRequest
Types ¶
type Options ¶
type Options struct {
// Name of file that the generated private key will be stored in
// If not specified, the private key will be written to <NameOfCR>.key
KeyFilename string
// If true, will wait for CertificateRequest to be ready to store the x509 certificate in a file
// Command will block until CertificateRequest is ready or timeout as specified by Timeout happens
FetchCert bool
// Name of file that the generated x509 certificate will be stored in if --fetch-certificate flag is set
// If not specified, the private key will be written to <NameOfCR>.crt
CertFileName string
// Path to a file containing a Certificate resource used as a template
// when generating the CertificateRequest resource
// Required
InputFilename string
// Length of time the command blocks to wait on CertificateRequest to be ready if --fetch-certificate flag is set
// If not specified, default value is 5 minutes
Timeout time.Duration
genericclioptions.IOStreams
*factory.Factory
}
Options is a struct to support create certificaterequest command
func NewOptions ¶
func NewOptions(ioStreams genericclioptions.IOStreams) *Options
NewOptions returns initialized Options
Click to show internal directories.
Click to hide internal directories.