certmanager

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClient

func WithClient(ctx server.Cmd, fn func(*certmanager.Client, string) error) error

WithClient returns auth client configured from the global HTTP flags.

Types

type CACommands

type CACommands struct {
	CreateCA CreateCACommand `cmd:"" name:"ca-create" help:"Create certificate authority." group:"CERTIFICATE MANAGER"`
	RenewCA  RenewCACommand  `cmd:"" name:"ca-renew" help:"Renew certificate authority." group:"CERTIFICATE MANAGER"`
}

type CertCommands

type CertCommands struct {
	Cert       GetCertCommand    `cmd:"" name:"cert" help:"Get certificate." group:"CERTIFICATE MANAGER"`
	Certs      ListCertsCommand  `cmd:"" name:"certs" help:"List certificates." group:"CERTIFICATE MANAGER"`
	CreateCert CreateCertCommand `cmd:"" name:"cert-create" help:"Create certificate." group:"CERTIFICATE MANAGER"`
	RenewCert  RenewCertCommand  `cmd:"" name:"cert-renew" help:"Renew certificate." group:"CERTIFICATE MANAGER"`
	UpdateCert UpdateCertCommand `cmd:"" name:"cert-update" help:"Update certificate." group:"CERTIFICATE MANAGER"`
}

type CertManagerCommands

type CertManagerCommands struct {
	CertCommands
	CACommands
}

type CmdTokenStore

type CmdTokenStore struct {
	// contains filtered or unexported fields
}

func NewCmdTokenStore

func NewCmdTokenStore(ctx server.Cmd) *CmdTokenStore

func (*CmdTokenStore) StoreToken

func (s *CmdTokenStore) StoreToken(endpoint, issuer string, token *oauth2.Token) error

func (*CmdTokenStore) Token

func (s *CmdTokenStore) Token(endpoint string) (*oauth2.Token, string, error)

type CreateCACommand

type CreateCACommand struct {
	Name   string        `arg:"" name:"name" help:"Certificate authority name"`
	Expiry time.Duration `name:"expiry" help:"Certificate lifetime. Zero uses the server default."`
	Tags   []string      `name:"tag" help:"Tag to apply to the certificate authority. Repeat to set multiple tags."`
	// contains filtered or unexported fields
}

func (*CreateCACommand) Run

func (cmd *CreateCACommand) Run(ctx server.Cmd) error

type CreateCertCommand

type CreateCertCommand struct {
	Name     string        `arg:"" name:"name" help:"Certificate name"`
	CAName   string        `arg:"" name:"ca" help:"Certificate authority name"`
	CASerial string        `arg:"" optional:"" name:"serial" help:"Certificate authority serial number. Omit to use the latest CA version."`
	Expiry   time.Duration `name:"expiry" help:"Certificate lifetime. Zero uses the server default."`
	SAN      []string      `name:"san" help:"Subject alternative name entry. Repeat to set multiple DNS names, wildcard DNS names, or IP addresses."`
	Tags     []string      `name:"tag" help:"Tag to apply to the certificate. Repeat to set multiple tags."`
	// contains filtered or unexported fields
}

func (*CreateCertCommand) Run

func (cmd *CreateCertCommand) Run(ctx server.Cmd) error

type GetCertCommand

type GetCertCommand struct {
	Name     string `arg:"" name:"name" help:"Certificate name"`
	Serial   string `arg:"" optional:"" name:"serial" help:"Certificate serial number. Omit to use the latest certificate version."`
	Chain    bool   `name:"chain" help:"Include the issuer chain in the output."`
	Private  bool   `name:"private" help:"Include the private key in the output."`
	Comments bool   `name:"comments" help:"Include certificate metadata comments before each PEM block." default:"true" negatable:""`
}

func (*GetCertCommand) Run

func (cmd *GetCertCommand) Run(ctx server.Cmd) error

type ListCertsCommand

type ListCertsCommand schema.CertListRequest

func (*ListCertsCommand) Run

func (cmd *ListCertsCommand) Run(ctx server.Cmd) error

type RenewCACommand

type RenewCACommand struct {
	Name   string        `arg:"" name:"name" help:"Certificate authority name"`
	Serial string        `arg:"" optional:"" name:"serial" help:"Certificate authority serial number. Omit to use the latest certificate version."`
	Expiry time.Duration `name:"expiry" help:"Certificate lifetime. Zero preserves the current lifetime, capped by the root validity."`
	// contains filtered or unexported fields
}

func (*RenewCACommand) Run

func (cmd *RenewCACommand) Run(ctx server.Cmd) error

type RenewCertCommand

type RenewCertCommand struct {
	Name   string        `arg:"" name:"name" help:"Certificate name"`
	Serial string        `arg:"" optional:"" name:"serial" help:"Certificate serial number. Omit to use the latest certificate version."`
	Expiry time.Duration `name:"expiry" help:"Certificate lifetime. Zero preserves the current lifetime, capped by the signer validity."`
	// contains filtered or unexported fields
}

func (*RenewCertCommand) Run

func (cmd *RenewCertCommand) Run(ctx server.Cmd) error

type UpdateCertCommand

type UpdateCertCommand struct {
	Name      string   `arg:"" name:"name" help:"Certificate name"`
	Serial    string   `arg:"" optional:"" name:"serial" help:"Certificate serial number. Omit to use the latest certificate version."`
	Enable    bool     `name:"enable" help:"Enable the certificate."`
	Disable   bool     `name:"disable" help:"Disable the certificate."`
	Tags      []string `name:"tags" help:"Replace certificate tags with the provided list. Repeat to set multiple tags."`
	ClearTags bool     `name:"clear-tags" help:"Clear all certificate tags."`
}

func (*UpdateCertCommand) Run

func (cmd *UpdateCertCommand) Run(ctx server.Cmd) error

Jump to

Keyboard shortcuts

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