Versions in this module Expand all Collapse all v3 v3.6.1 Nov 1, 2026 Changes in this version + const ContentSecurityPolicy + const DefaultPort + const DefaultPortAttempts + const ExportFlat + const ExportTermius + const SessionCookie + var ErrNotFound = errors.New("not found") + func AllowedHosts(bindHost string, port int, extra []string) []string + func IsAddrInUse(err error) bool + func IsLoopback(host string) bool + func Listen(listen ListenFunc, host string, port int, pinned bool, attempts int) (net.Listener, error) + func NewToken() string + type AppEngine struct + P paths.Paths + Retain int + func (e AppEngine) Apply(ch change.Change, hash string) (change.Plan, change.Result, error) + func (e AppEngine) Audit(now time.Time) (AuditView, error) + func (e AppEngine) Bundles() ([]BundleView, error) + func (e AppEngine) Doctor() (doctor.Report, error) + func (e AppEngine) Export(name string, includeGit bool) (string, error) + func (e AppEngine) History(f history.Filter) ([]history.Op, error) + func (e AppEngine) Home() paths.Paths + func (e AppEngine) Host(alias string) (HostView, error) + func (e AppEngine) Hosts() ([]query.ProfileGroup, error) + func (e AppEngine) Key(ref string) (KeyView, error) + func (e AppEngine) Keys() ([]keysvc.Row, error) + func (e AppEngine) Op(id string) (OpView, error) + func (e AppEngine) Overview(now time.Time) (Overview, error) + func (e AppEngine) Preview(ch change.Change) (change.Plan, error) + func (e AppEngine) Profiles() ([]ProfileView, error) + func (e AppEngine) SnapshotDiff(id, against string) (SnapshotDiff, error) + func (e AppEngine) Snapshots() ([]SnapshotView, error) + func (e AppEngine) Tokens() (TokensView, error) + type AuditKey struct + Deployments []inventory.Deployment + Fingerprint string + Path string + Status string + type AuditView struct + Expiry []expiry.Status + Keys []AuditKey + Recent []history.Op + type BundleView struct + Name string + Size int64 + Written time.Time + type Engine interface + Apply func(ch change.Change, hash string) (change.Plan, change.Result, error) + Audit func(now time.Time) (AuditView, error) + Bundles func() ([]BundleView, error) + Doctor func() (doctor.Report, error) + Export func(name string, includeGit bool) (string, error) + History func(f history.Filter) ([]history.Op, error) + Home func() paths.Paths + Host func(alias string) (HostView, error) + Hosts func() ([]query.ProfileGroup, error) + Key func(ref string) (KeyView, error) + Keys func() ([]keysvc.Row, error) + Op func(id string) (OpView, error) + Overview func(now time.Time) (Overview, error) + Preview func(ch change.Change) (change.Plan, error) + Profiles func() ([]ProfileView, error) + SnapshotDiff func(id, against string) (SnapshotDiff, error) + Snapshots func() ([]SnapshotView, error) + Tokens func() (TokensView, error) + type FileDiff struct + Lines []history.DiffLine + Path string + State string + type HostView struct + Block string + Detail *query.HostDetail + Pins []knownhosts.Entry + Token string + VM bool + type KeyView struct + Detail keysvc.Detail + Expiry *expiry.Status + Ops []history.Op + type ListenFunc func(network, address string) (net.Listener, error) + type OpView struct + Diff []history.DiffLine + DiffNote string + Op history.Op + type Options struct + AllowRemote bool + AllowedHosts []string + BindAddr string + Engine Engine + Now func() time.Time + ReadOnly bool + Retain int + Token string + Version string + type Overview struct + DevRoot string + Expiry []expiry.Status + Hosts int + Keys int + Problems int + Profiles int + Recent []history.Op + Rows []overview.Row + type ProfileView struct + Category string + Hosts int + KeyScope string + KeyStore string + Keys int + Name string + type Server struct + func New(opts Options) (*Server, error) + func (s *Server) Handler() http.Handler + func (s *Server) Serve(ctx context.Context, ln net.Listener) error + type SnapshotDiff struct + Against string + Files []FileDiff + ID string + Refused string + type SnapshotView struct + ID string + KeyBearing bool + Size int64 + Taken time.Time + type TokensView struct + Config string + Failed bool + Findings []tokensvc.Finding + Items []tokens.Installed + Legacy bool Other modules containing this package github.com/simtabi/authama/src