cmd

package
v1.5.13 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertCommands

type CertCommands struct {
	Cert       CertGetCommand    `cmd:"" group:"CERTIFICATES" help:"Get a certificate"`
	CreateCert CertCreateCommand `cmd:"" group:"CERTIFICATES" help:"Create a new signed certificate"`
	DeleteCert CertDeleteCommand `cmd:"" group:"CERTIFICATES" help:"Delete a certificate"`
}

type CertCreateCommand

type CertCreateCommand struct {
	Name         string        `arg:"" name:"name" help:"Certificate name"`
	Domain       string        `arg:"" name:"domain" help:"Domain the certificate is for"`
	Signer       string        `name:"signer" help:"Signer name, if certificate is to be signed by a CA"`
	Subject      string        `name:"subject" help:"Subject name"`
	SerialNumber *big.Int      `name:"serial" help:"Serial number"`
	Expiry       time.Duration `name:"expiry" help:"Expiry duration"`
	IsCA         bool          `name:"ca" help:"Certificate is a CA"`
	KeyType      string        `name:"type" help:"Key type"`
	Hosts        []string      `name:"host" help:"Comma-separated list of host names"`
	IP           []string      `name:"ip" help:"Comma-separated list of IP addresses"`
}

Certificate Metadata for creating a new certificate

func (CertCreateCommand) Run

func (cmd CertCreateCommand) Run(ctx server.Cmd) error

type CertDeleteCommand

type CertDeleteCommand struct {
	CertGetCommand
}

func (CertDeleteCommand) Run

func (cmd CertDeleteCommand) Run(ctx server.Cmd) error

type CertGetCommand

type CertGetCommand struct {
	Name string `arg:"" name:"name" help:"Certificate Name"`
}

func (CertGetCommand) Run

func (cmd CertGetCommand) Run(ctx server.Cmd) error

type NameCommands

type NameCommands struct {
	Names      NameListCommand   `cmd:"" group:"CERTIFICATES" help:"List names"`
	Name       NameGetCommand    `cmd:"get" group:"CERTIFICATES" help:"Get a name"`
	CreateName NameCreateCommand `cmd:"create" group:"CERTIFICATES" help:"Create a new name"`
	DeleteName NameDeleteCommand `cmd:"delete" group:"CERTIFICATES" help:"Delete a name"`
	UpdateName NameUpdateCommand `cmd:"update" group:"CERTIFICATES" help:"Update a name"`
}

type NameCreateCommand

type NameCreateCommand struct {
	NameMeta
}

func (NameCreateCommand) Run

func (cmd NameCreateCommand) Run(ctx server.Cmd) error

type NameDeleteCommand

type NameDeleteCommand struct {
	NameGetCommand
}

func (NameDeleteCommand) Run

func (cmd NameDeleteCommand) Run(ctx server.Cmd) error

type NameGetCommand

type NameGetCommand struct {
	Id uint64 `arg:"" name:"id" description:"Name ID"`
}

func (NameGetCommand) Run

func (cmd NameGetCommand) Run(ctx server.Cmd) error

type NameListCommand

type NameListCommand struct {
	schema.NameListRequest
}

func (NameListCommand) Run

func (cmd NameListCommand) Run(ctx server.Cmd) error

type NameMeta

type NameMeta struct {
	Org           *string `name:"org" description:"Organization name"`
	Unit          *string `name:"unit" description:"Organization unit"`
	Country       *string `name:"country" description:"Country name"`
	City          *string `name:"city" description:"City name"`
	State         *string `name:"state" description:"State name"`
	StreetAddress *string `name:"address" description:"Street address"`
	PostalCode    *string `name:"zip" description:"Postal code"`
}

type NameUpdateCommand

type NameUpdateCommand struct {
	NameGetCommand
	NameMeta
}

func (NameUpdateCommand) Run

func (cmd NameUpdateCommand) Run(ctx server.Cmd) error

Jump to

Keyboard shortcuts

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