cert

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(clientGetter types.ClientGetter) *cobra.Command

Types

type CertOptions

type CertOptions struct {
	Organization   []string
	ValidityPeriod int64
	IPs            []string
	DNSNames       []string
}

func (*CertOptions) AddFlags

func (opts *CertOptions) AddFlags(fs *flag.FlagSet)

func (*CertOptions) AsConfig

func (opts *CertOptions) AsConfig(cn string, isCA bool, usages []x509.ExtKeyUsage) certutil.Config

func (*CertOptions) AsRequest

func (opts *CertOptions) AsRequest(cn string) certutil.Request

func (*CertOptions) GetIPs

func (opts *CertOptions) GetIPs() (ips []net.IP)

type CommonOptions

type CommonOptions struct {
	CASecret string

	APIServerAddress string
	Token            string
}

func (*CommonOptions) AddFlags

func (opts *CommonOptions) AddFlags(fs *flag.FlagSet)

func (*CommonOptions) Remote

func (opts *CommonOptions) Remote() bool

type SaveOptions

type SaveOptions struct {
	SecretName string
}

func (*SaveOptions) AddFlags

func (opts *SaveOptions) AddFlags(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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