Documentation
¶
Overview ¶
Package pkilist is osapi pki list: each key and each certificate of osapi on this host, in one list.
Index ¶
Constants ¶
const ( // KindKey is a key, as osapi pki key list shows it. KindKey = "key" // KindCert is a certificate, as osapi pki cert list shows it. KindCert = "cert" )
The kinds of item.
Variables ¶
var Group = command.Register(command.Define( "pki", "List each key and each certificate of osapi on this host", command.Under(command.ParentPKI), command.Flat(), command.Uses[Deps](), command.Method[ListInput, ListOutput]("list"). Short("List each key and each certificate of osapi on this host"). Long("Run this on the host. It reads what osapi pki key list and osapi pki cert\n"+ "list read, in one list: the kind, the name, the component, the state, the\n"+ "algorithm, the fingerprint, or the ID of a secret key, and the expiry of a\n"+ "certificate."). Example(""). Prints(sampleList). Handle(List), ))
Group is the list group's definition. It adds no word: its method is osapi pki list.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
Deps is what list uses: the keys and the certificates of osapi on this host, as osapi pki key list and osapi pki cert list read them.
type Item ¶
type Item struct {
Kind string `json:"kind" doc:"key or cert."`
Name string `json:"name"`
Component string `json:"component" doc:"The component that uses it: controller, agent, nats or vault."`
State string `json:"state" doc:"ok; not made; off, for a JetStream store with no key; or unreadable, with the reason."`
File string `` /* 137-byte string literal not displayed */
Algorithm string `` /* 127-byte string literal not displayed */
Fingerprint string `` /* 137-byte string literal not displayed */
Expires *time.Time `json:"expires,omitempty" doc:"When a certificate expires."`
}
Item is a key or a certificate of osapi on this host.
type ListOutput ¶
type ListOutput struct {
Items []Item ` json:"items"`
// contains filtered or unexported fields
}
ListOutput is each key and each certificate.