Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + var ErrNotFound = errors.New("certificate not found") + var Group = endpoint.Register(endpoint.Define("pki", ...)) + type Agents interface + ListAgents func(ctx context.Context) ([]job.AgentInfo, error) + type Cert struct + Component string + DaysLeft *int + Expires time.Time + FIPS *bool + File string + Fingerprint string + Hostname string + Key string + Name string + Names []string + Signature string + Source string + State string + func Get(ctx context.Context, d Deps, in GetInput) (Cert, error) + type CertList struct + Items []Cert + Total int + func List(ctx context.Context, d Deps, in ListInput) (CertList, error) + type CertRotateInput struct + type CertRotation struct + Agents []CertRotationAgent + Current string + Next string + StartedAt time.Time + SwitchBy time.Time + func NATSCertRotation(ctx context.Context, d Deps, _ CertRotationInput) (CertRotation, error) + func RotateNATSCert(ctx context.Context, d Deps, _ CertRotateInput) (CertRotation, error) + type CertRotationAgent struct + HasNext bool + Hostname string + MachineID string + type CertRotationInput struct + type CertRotator interface + Start func(ctx context.Context) (certrotation.Status, error) + Status func(ctx context.Context) (certrotation.Status, error) + type Deps struct + Agents Agents + CertRotation CertRotator + Hostname string + Local func() []pki.Cert + Rotation Rotator + type GetInput struct + Hostname string + Name string + type ListInput struct + Hostname string + type RotateInput struct + type Rotation struct + Agents []RotationAgent + Current string + Next string + StartedAt time.Time + SwitchBy time.Time + func KeyRotation(ctx context.Context, d Deps, _ RotationInput) (Rotation, error) + func RotateKey(ctx context.Context, d Deps, _ RotateInput) (Rotation, error) + type RotationAgent struct + HasNext bool + Hostname string + MachineID string + type RotationInput struct + type Rotator interface + Start func(ctx context.Context) (keyrotation.Status, error) + Status func(ctx context.Context) (keyrotation.Status, error)