Documentation
¶
Index ¶
- func WithClient(ctx server.Cmd, fn func(*certmanager.Client, string) error) error
- type CACommands
- type CertCommands
- type CertManagerCommands
- type CmdTokenStore
- type CreateCACommand
- type CreateCertCommand
- type GetCertCommand
- type ListCertsCommand
- type RenewCACommand
- type RenewCertCommand
- type UpdateCertCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithClient ¶
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
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
}
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
}
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:""`
}
type ListCertsCommand ¶
type ListCertsCommand schema.CertListRequest
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
}
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
}
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."`
}
Click to show internal directories.
Click to hide internal directories.