gencert

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CertValidDays int = 999 * 365

Variables

This section is empty.

Functions

func NewCmdGenCert

func NewCmdGenCert(sailOption *models.SailOption) *cobra.Command

Types

type GenCertOptions

type GenCertOptions struct {
	TargetName string `json:"target_name"`
	ZoneName   string `json:"zone_name"`

	OutputDir string   `json:"output_dir"`
	CAName    string   `json:"ca_name"`
	Names     []string `json:"names"`
	// contains filtered or unexported fields
}

func NewGenCertOptions

func NewGenCertOptions(sailOption *models.SailOption) *GenCertOptions

func (*GenCertOptions) Complete

func (o *GenCertOptions) Complete(cmd *cobra.Command, args []string) error

func (*GenCertOptions) Run

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

func (*GenCertOptions) Validate

func (o *GenCertOptions) Validate() error

Jump to

Keyboard shortcuts

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