MCPcopy Index your code
hub / github.com/smallstep/cli / WithCertsOnly

Function WithCertsOnly

internal/sshutil/agent.go:55–62  ·  view source on GitHub ↗

WithCertsOnly filters only those keys accompanied by a certificate.

()

Source from the content-addressed store, hash-verified

53
54// WithCertsOnly filters only those keys accompanied by a certificate.
55func WithCertsOnly() AgentOption {
56 return func(o *options) {
57 o.filterBySignatureKey = func(k *agent.Key) bool {
58 _, err := ParseCertificate(k.Marshal())
59 return err == nil
60 }
61 }
62}
63
64// WithRemoveExpiredCerts will remove the expired certificates automatically.
65func WithRemoveExpiredCerts(t time.Time) AgentOption {

Callers 1

logoutActionFunction · 0.92

Calls 1

ParseCertificateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…