Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + var ErrMismatch = errors.New("fingerprint does not match the request") + var ErrNotFound = errors.New("admission record not found") + var Group = endpoint.Register(...) + func Admit(ctx context.Context, d Deps, in AdmitInput) (struct{}, error) + func Delete(ctx context.Context, d Deps, in MachineInput) (struct{}, error) + func Reject(ctx context.Context, d Deps, in RejectInput) (struct{}, error) + func Revoke(ctx context.Context, d Deps, in MachineInput) (struct{}, error) + type Admission struct + AdmittedAt *time.Time + DecidedAt *time.Time + EncryptionKey string + Fingerprint string + Hostname string + JoinToken string + LastSeen *time.Time + MachineID string + Online bool + Previous types.AdmissionState + PreviousFingerprint string + Reason string + RequestedAt *time.Time + State types.AdmissionState + func Get(ctx context.Context, d Deps, in MachineInput) (Admission, error) + type AdmitInput struct + Body AdmitRequest + MachineID string + type AdmitRequest struct + Fingerprint string + type Deps struct + Jobs Jobs + Store Store + type Jobs interface + AgentsLastSeen func(ctx context.Context) (map[string]time.Time, error) + ListAgents func(ctx context.Context) ([]job.AgentInfo, error) + type ListAdmissionResponse struct + Items []Admission + TotalItems int + func List(ctx context.Context, d Deps, in ListInput) (ListAdmissionResponse, error) + type ListInput struct + State types.AdmissionState + type MachineInput struct + MachineID string + type RejectInput struct + Body RejectRequest + MachineID string + type RejectRequest struct + Reason string + type Store interface + Admit func(ctx context.Context, machineID string, fingerprint string) error + Delete func(ctx context.Context, machineID string) error + Get func(ctx context.Context, machineID string) (admission.Record, error) + List func(ctx context.Context) ([]admission.Record, error) + Reject func(ctx context.Context, machineID string, reason string) error + Revoke func(ctx context.Context, machineID string) error