Versions in this module Expand all Collapse all v0 v0.22.1 Nov 22, 2026 v0.22.0 Nov 21, 2026 v0.21.0 Nov 21, 2026 Changes in this version + const AIDirName + const AIDocumentsPurpose + const AIInstancePruneAfter + const AIMountPrefix + const AIToolPrefix + const AIUsageGroupAccount + const AIUsageGroupDay + const AIUsageGroupInstance + const AIUsageGroupModel + const APITokenAccountOwner + const APITokenAuthModeTag + const APITokenMaskedSecret + const APITokenOIDCClientAuthMethodTag + const APITokenOIDCInsecureSkipVerifyTag + const APITokenOIDCIssuerTag + const APITokenOIDCScopesTag + const APITokenOIDCSecretVersion + const APITokenOIDCTokenFieldTag + const APITokenOIDCUsernameTag + const AdminAssistantID + const AdminAssistantName + const AdminNATSService + const AllAssistantID + const AllAssistantInstance + const AllAssistantName + const AllDirName + const AllSystem + const AssistantServicesPath + const BrandTokensFile + const DefaultAIUsageRetention + const DefaultAssistantRelayTimeout + const DefaultLogLimit + const DefaultLogSummaryLimit + const DelegateToolPrefix + const DelegatedTitlePrefix + const MCPPath + const PROXY_CONFIG_KEY + const SubjectTenantCreated + const SubjectTenantDeleted + const SubjectTenantUpdated + var AccountIDFromContext = client.AccountIDFromContext + var AccountPublicKeyFromContext = client.AccountPublicKeyFromContext + var ClaimsFromContext = client.ClaimsFromContext + var ENDPOINT_KINDS = client.ENDPOINT_KINDS + var EndpointKinds = client.EndpointKinds + var ErrInvalidAPITokenName = errors.New("invalid api token name") + var ErrInvalidAPITokenScope = errors.New("invalid api token scope") + var ErrInvalidAPITokenType = errors.New("invalid api token type") + var ErrOAuthCodeExchange = errors.New("failed to exchange authorization code") + var ErrOAuthInvalidIDToken = errors.New("invalid id token") + var ErrOAuthInvalidState = errors.New("invalid oauth state") + var ErrOAuthNotEnabled = errors.New("oauth is not enabled") + var ErrOAuthStateExpired = errors.New("oauth state has expired") + var ErrOAuthUserInfo = errors.New("failed to get user info from provider") + var ErrOIDCIDTokenVerify = errors.New("id_token verification failed") + var ErrOIDCNoIDToken = errors.New("oidc token response did not contain an id_token") + var ErrOIDCNonceMismatch = errors.New("id_token nonce does not match") + var ErrOIDCStateExpired = errors.New("oidc state has expired") + var ErrOIDCStateInvalid = errors.New("invalid oidc state") + var ErrReservedAPITokenUser = errors.New("api token owner is reserved") + var InKind = client.InKind + var LogSummaryFields = []string + var NewAuth = client.NewAuth + var NewID = client.NewID + var NewServiceEndpoint = client.NewServiceEndpoint + var NoAuthFromContext = client.NoAuthFromContext + var UserIDFromContext = client.UserIDFromContext + var ValidBasicAuthFromContext = client.ValidBasicAuthFromContext + var ValidTokenFromContext = client.ValidTokenFromContext + func UIFS() fs.FS + func ValidateAPITokenName(name string) bool + func ValidateAPITokenScope(s string) bool + func ValidateAPITokenType(t string) bool + type AICredentialResolver struct + func NewAICredentialResolver(store *Store) *AICredentialResolver + func (r *AICredentialResolver) Embedding(ctx context.Context, accountID, userID, name string) (ai.Credential, error) + func (r *AICredentialResolver) MCPServers(ctx context.Context, accountID, userID string) ([]ai.Credential, error) + func (r *AICredentialResolver) Model(ctx context.Context, accountID, userID, name string) (ai.Credential, error) + func (r *AICredentialResolver) Models(ctx context.Context, accountID, userID string) ([]ai.Credential, error) + type AIInstanceSummary struct + Host string + ID string + Instance string + IntervalSeconds int + LastRunAt time.Time + LastSeen time.Time + Model string + Online bool + Provider string + Service string + SourceAccount string + StartedAt time.Time + Totals usage.Totals + Version string + type AIOptions struct + AllowWrites bool + Charts bool + Dir string + Effort string + MaxTurns int + Providers map[string]ai.ProviderFactory + System string + Version string + type AIRunQuery struct + AccountID string + Host string + Instance string + Limit int + Model string + Offset int + type AIUsageGroup struct + Key string + Totals usage.Totals + type AIUsageStore struct + func NewAIUsageStore(location string, retention time.Duration, l *logger.Logger) (*AIUsageStore, error) + func (s *AIUsageStore) Instances() ([]AIInstanceSummary, error) + func (s *AIUsageStore) PruneInstances() (int, error) + func (s *AIUsageStore) PutHeartbeat(h usage.Heartbeat) error + func (s *AIUsageStore) PutRecord(r usage.Record) error + func (s *AIUsageStore) Runs(q AIRunQuery) ([]usage.Record, int, error) + func (s *AIUsageStore) StartGC(stop <-chan struct{}) + func (s *AIUsageStore) Summary(since time.Time, group string) ([]AIUsageGroup, error) + type APIToken struct + CreatedAt time.Time + ID string + Metadata APITokenMetadata + Name string + Scope APITokenScope + Token string + Type APITokenType + UpdatedAt time.Time + UserID string + func NewAPIToken(req APIToken, userID string) *APIToken + func (t *APIToken) AuthMode() APITokenAuthMode + func (t *APIToken) Normalize() + func (t *APIToken) OIDCSource() (oidctoken.Source, APITokenOIDCSecret, error) + func (t *APIToken) Validate() error + func (t *APIToken) View() APITokenView + type APITokenAuthMode string + const APITokenAuthModeClientCredentials + const APITokenAuthModePassword + const APITokenAuthModeRefreshToken + const APITokenAuthModeStatic + type APITokenMetadata struct + Endpoint string + ResourceID string + ResourceName string + ResourceType string + Tags map[string]string + func (m APITokenMetadata) Flag(key string) bool + func (m APITokenMetadata) IsZero() bool + type APITokenOIDCSecret struct + ClientSecret string + Password string + RefreshToken string + Version int + func DecodeAPITokenOIDCSecret(raw string) (APITokenOIDCSecret, error) + func (s APITokenOIDCSecret) Encode() (string, error) + type APITokenResolver struct + func NewAPITokenResolver(store *Store) *APITokenResolver + func (r *APITokenResolver) Bearer(ctx context.Context, accountID string, token *APIToken) (string, error) + func (r *APITokenResolver) Forget(token *APIToken) + type APITokenScope string + const APITokenScopeAccount + const APITokenScopeUser + type APITokenType string + const APITokenTypeBearer + const APITokenTypeCloudflare + const APITokenTypeCustom + const APITokenTypeNavionics + const APITokenTypeOpenStreetMap + const APITokenTypeThunderforest + type APITokenView struct + CreatedAt time.Time + HasToken bool + ID string + Metadata APITokenMetadata + Name string + Scope APITokenScope + Type APITokenType + UpdatedAt time.Time + UserID string + func APITokenViews(tokens []APIToken) []APITokenView + type AccountStats struct + AccountID string + ActiveCount int + UserCount int + type AdminServer struct + func NewAdminServer(options *server.ServerOptions) (*AdminServer, error) + func (adminServer *AdminServer) AI() *ai.Service + func (adminServer *AdminServer) AIAllStore() *store.Store + func (adminServer *AdminServer) AIInstance() *instance.Instance + func (adminServer *AdminServer) AIStore() *store.Store + func (adminServer *AdminServer) AIUsageStore() *AIUsageStore + func (adminServer *AdminServer) AcceptInvitation(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) AddHandlers() + func (adminServer *AdminServer) AddTrustedAccount(id string) + func (adminServer *AdminServer) AdminAccountID() string + func (adminServer *AdminServer) AgentConfiguration(aco *user.AgentConfigurationOptions) (*user.AgentConfiguration, error) + func (adminServer *AdminServer) AssistantGateway() *AssistantGateway + func (adminServer *AdminServer) ChangeUserPassword(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) Close() + func (adminServer *AdminServer) Collectors() *Collectors + func (adminServer *AdminServer) CreateAPIToken(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) CreateAccountAPIToken(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) CreateInvitation(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) CreateToken(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) DeleteAPIToken(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) DeleteAccount(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) DeleteAccountAPIToken(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) DeleteAgent(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) DeleteOIDCConnection(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) DeletePreference(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) DeleteProfilePhoto(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) DeleteService(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) DeleteServiceEndpoint(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) DeleteUser(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAIUsageInstances(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAIUsageRuns(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAIUsageSummary(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAPIToken(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAPITokens(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAccount(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAccountAPIToken(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAccountAPITokens(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAccountByName(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAccountStats(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAccounts(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetActivities(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetAgents(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetBaseStore() *store.Store + func (adminServer *AdminServer) GetInvitationByToken(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetInvitations(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetLogLevel(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetLogMaxEntries(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetLogs(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetLogsCount(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetLogsSummary(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetMyAccount(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetOAuthConfig(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetOIDCConnection(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetOIDCPublicConfig(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetOperatorJWT() (string, error) + func (adminServer *AdminServer) GetOperators(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetPKICertificates(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetPKISettings(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetPKIStatus(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetPreferences(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetProxyConfig(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetProxyStatus(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetQueueJob(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetQueueJobs(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetRoles(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetServerVarz(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetServiceCredentials(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetServiceEndpoints(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetServiceEndpointsByKind(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetServices(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetServicesStatus(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetStoreMetrics(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetStoreMetricsHistory(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetStoreMetricsHistoryCount(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetSysAccountID() (string, error) + func (adminServer *AdminServer) GetUser(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) GetUserIDByEmail(email string) (string, string, error) + func (adminServer *AdminServer) GetUsers(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) InitAIUsageStore(location string, retention time.Duration) error + func (adminServer *AdminServer) InitLogStore(location string, maxEntries int) error + func (adminServer *AdminServer) InitMetricsStore(location string, maxEntries int) error + func (adminServer *AdminServer) LogStore() *LogStore + func (adminServer *AdminServer) Login(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) Logout(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) MetricsStore() *MetricsStore + func (adminServer *AdminServer) MountAssistantGateway(o AssistantGatewayOptions) *AssistantGateway + func (adminServer *AdminServer) NATSAPI() *natsapi.Service + func (adminServer *AdminServer) NewAccount(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) NewAgent(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) NewAgentConfiguration(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) NewService(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) NewServiceEndpoint(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) NewUser(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) Noop(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) OAuthCreateAccount(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) OAuthGoogleAuthorize(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) OAuthGoogleCallback(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) OIDCAuthorize(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) OIDCCallback(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) OperatorID() string + func (adminServer *AdminServer) Ping(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) PutAccount(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) PutOIDCConnection(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) PutServiceEndpointsMap(serviceEndpoints map[string]ServiceEndpoint) error + func (adminServer *AdminServer) Ready() bool + func (adminServer *AdminServer) Register(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) RevokeInvitation(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) ServeUI(fsys fs.FS) + func (adminServer *AdminServer) ServiceCredentials(accountName string, serviceName string) (*user.Credentials, error) + func (adminServer *AdminServer) SetAdminAccountID(accountID string) + func (adminServer *AdminServer) SetConfigPersister(fn func(key string, value interface{})) + func (adminServer *AdminServer) SetLogLevel(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) SetLogMaxEntries(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) SetMonitoringPort(port int) + func (adminServer *AdminServer) SetOperatorID(operatorID string) + func (adminServer *AdminServer) SetPreference(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) SetReady() + func (adminServer *AdminServer) Start() + func (adminServer *AdminServer) StartAI(opts AIOptions) error + func (adminServer *AdminServer) StartCollectors(opts CollectorOptions) (*Collectors, error) + func (adminServer *AdminServer) StartNATSAPI(opts NATSAPIOptions) error + func (adminServer *AdminServer) Store() *Store + func (adminServer *AdminServer) UnlockUser(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) UpdateAPIToken(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) UpdateAccountAPIToken(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) UpdateProxyConfig(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) UpdateThemePreference(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) UploadProfilePhoto(w http.ResponseWriter, r *http.Request) + func (adminServer *AdminServer) ValidateAccountJWT(w http.ResponseWriter, r *http.Request) + type AdminStoreOptions struct + Application string + Component string + Location string + SecretsKey []byte + SecretsKeyFile string + type AssistantGateway struct + func (g *AssistantGateway) AllStore() *store.Store + func (g *AssistantGateway) Close() + func (g *AssistantGateway) Register(s AssistantService) error + func (g *AssistantGateway) RemoveAccount(accountID string) + func (g *AssistantGateway) Services() []AssistantServiceInfo + func (g *AssistantGateway) Unregister(id string) + type AssistantGatewayOptions struct + Connect func(accountID string) (nc *nats.Conn, release func(), err error) + Timeout time.Duration + type AssistantService struct + ID string + Name string + Serve func(accountID string, nc *nats.Conn) error + Service string + Stop func(accountID string) + type AssistantServiceInfo struct + ID string + Name string + type Auth = client.Auth + type AuthConfig = client.AuthConfig + type AuthContextKey = client.AuthContextKey + type BackendHealth struct + Address string + Error string + Healthy bool + LastCheck time.Time + type Branding struct + Brand string + CSS string + LogoURL string + Name string + type CertificateInfo struct + DNSNames []string + DaysRemaining int + FilePath string + ID string + IPAddresses []string + IsCA bool + Issuer string + NotAfter time.Time + NotBefore time.Time + SerialNumber string + Status string + Subject string + Type string + type CollectorOptions struct + Application string + CA []byte + Certificate []byte + ControllerURL string + PrivateKey []byte + type Collectors struct + func (col *Collectors) Accounts() []string + func (col *Collectors) AddAccount(accountID, accountName string) + func (col *Collectors) Close() + func (col *Collectors) Conn(accountID string) *nats.Conn + func (col *Collectors) RemoveAccount(accountID string) + type EndpointHealth = client.EndpointHealth + type GoogleOAuth struct + func NewGoogleOAuth(config *OAuthConfig, store *Store) *GoogleOAuth + func (g *GoogleOAuth) ExchangeCode(ctx context.Context, code, state string) (*GoogleUserInfo, *user.OAuthState, error) + func (g *GoogleOAuth) GetAuthorizationURL(inviteToken string) (string, string, error) + func (g *GoogleOAuth) GetPublicConfig() map[string]interface{} + type GoogleUserInfo struct + Email string + EmailVerified bool + FamilyName string + GivenName string + Name string + Picture string + Subject string + type HostBranding struct + Brand string + CSS string + LogoSVG []byte + LogoURL string + Name string + UI fs.FS + func (b HostBranding) Metadata() map[string]interface{} + type ID = client.ID + type IDConfig = client.IDConfig + type IDContextKey = client.IDContextKey + type IdentityStore = client.IdentityStore + type InitializerData struct + AdminAccountID string + OperatorID string + type InternalPKIStatus struct + CAFile string + CertFile string + HasCA bool + HasCert bool + HasKey bool + KeyFile string + type InvitationIndex struct + AccountID string + type LetsEncryptStatus struct + CertCachePath string + ChallengeType string + Domains []string + Email string + Enabled bool + Provider string + type ListPage struct + Items []T + type LogBucket struct + Count int + Key string + type LogQuery struct + Host string + Level string + Limit int + Offset int + Search string + Service string + Since time.Time + SortDir string + Until time.Time + type LogStore struct + func NewLogStore(location string, maxEntries int, log *logger.Logger) (*LogStore, error) + func (ls *LogStore) GetLogEntries(query *LogQuery) ([]logentry.LogEntry, int, error) + func (ls *LogStore) GetLogEntriesCount(query *LogQuery) (int, error) + func (ls *LogStore) GetLogSummary(query *LogQuery, by string, limit int) ([]LogBucket, error) + func (ls *LogStore) MaxEntries() int + func (ls *LogStore) Prune() error + func (ls *LogStore) PutLogEntry(entry *logentry.LogEntry) error + func (ls *LogStore) SetMaxEntries(maxEntries int) + func (ls *LogStore) StartGC(stop <-chan struct{}) + type MetricsQuery struct + Limit int + Offset int + Service string + SortDir string + StoreName string + type MetricsStore struct + func NewMetricsStore(location string, maxEntries int, log *logger.Logger) (*MetricsStore, error) + func (ms *MetricsStore) GetLatestSnapshots() ([]storemetrics.StoreMetricsEntry, error) + func (ms *MetricsStore) GetMetricsEntries(query *MetricsQuery) ([]storemetrics.StoreMetricsEntry, int, error) + func (ms *MetricsStore) GetMetricsEntriesCount(query *MetricsQuery) (int, error) + func (ms *MetricsStore) Prune() error + func (ms *MetricsStore) PutMetricsEntry(entry *storemetrics.StoreMetricsEntry) error + func (ms *MetricsStore) StartGC(stop <-chan struct{}) + type NATSAPIOptions struct + Description string + Version string + type OAuthConfig struct + AllowSelfServiceAccounts bool + Enabled bool + GoogleClientID string + GoogleClientSecret string + RedirectURI string + StateTTL time.Duration + type OAuthIndex struct + AccountID string + UserID string + type OIDCClaims struct + Email string + EmailVerified bool + Groups []string + Name string + Picture string + Subject string + type OIDCProvider struct + func NewOIDCProvider(st *Store, stateTTL time.Duration) *OIDCProvider + func (p *OIDCProvider) AuthorizationURL(ctx context.Context, conn *user.OIDCConnection, inviteToken, returnTo string) (string, string, error) + func (p *OIDCProvider) ExchangeAndVerify(ctx context.Context, conn *user.OIDCConnection, code, state string) (*OIDCClaims, *user.OAuthState, error) + type OIDCSlugIndex struct + AccountID string + type PKISettings struct + LetsEncrypt struct{ ... } + type PKIStatus struct + Certificates []CertificateInfo + Enabled bool + InternalPKI *InternalPKIStatus + LetsEncryptConfig *LetsEncryptStatus + type ProxyConfig struct + Enabled bool + HealthCheck ProxyHealthCheck + ListenAddr string + Routes map[string]ProxyRoute + TLS ProxyTLSConfig + type ProxyHealthCheck struct + Enabled bool + Interval time.Duration + Timeout time.Duration + type ProxyRoute struct + Backends []string + SNIHost string + TLSPassthrough bool + type ProxyStatus struct + Backends map[string]*BackendHealth + ListenAddr string + RouteCount int + Running bool + type ProxyTLSConfig struct + CAFile string + CertFile string + KeyFile string + type ServiceEndpoint = client.ServiceEndpoint + type ServiceEndpoints = client.ServiceEndpoints + type SessionResponse struct + Activity user.Activity + InviteToken string + IsNewUser bool + IsSuperAdmin bool + ServiceEndpoints map[string]ServiceEndpoint + Token string + User *user.User + type Store struct + func NewStore(options *AdminStoreOptions) (*Store, error) + func (s *Store) DeleteAPIToken(accountID, userID, name string) error + func (s *Store) DeleteAccount(accountID string) error + func (s *Store) DeleteAccountAPIToken(accountID, name string) error + func (s *Store) DeleteAccountData(accountID string) error + func (s *Store) DeleteAgent(accountID, hostID string) error + func (s *Store) DeleteInvitation(token string) error + func (s *Store) DeleteOAuthIdentity(accountID, provider, subject string) error + func (s *Store) DeleteOAuthState(state string) error + func (s *Store) DeleteOIDCConnection(accountID string) error + func (s *Store) DeleteProxyConfig() error + func (s *Store) DeleteService(accountID, id string) error + func (s *Store) DeleteServiceEndpoint(serviceEndpoint ServiceEndpoint) error + func (s *Store) DeleteUser(accountID, userID string) error + func (s *Store) GetAPIToken(accountID, userID, name string) (*APIToken, error) + func (s *Store) GetAPITokenVisibleTo(accountID, userID, name string) (*APIToken, error) + func (s *Store) GetAPITokensByResource(accountID, userID, resourceType, resourceID string) ([]APIToken, error) + func (s *Store) GetAPITokensByType(accountID, userID string, tokenType APITokenType) ([]APIToken, error) + func (s *Store) GetAPITokensByUser(accountID, userID string) ([]APIToken, error) + func (s *Store) GetAPITokensVisibleTo(accountID, userID string) ([]APIToken, error) + func (s *Store) GetAPITokensVisibleToByType(accountID, userID string, tokenType APITokenType) ([]APIToken, error) + func (s *Store) GetAccountAPIToken(accountID, name string) (*APIToken, error) + func (s *Store) GetAccountAPITokens(accountID string) ([]APIToken, error) + func (s *Store) GetAccountByID(id string) (user.Account, error) + func (s *Store) GetAccountByName(name string) (user.Account, error) + func (s *Store) GetAccountKeyPair(id string) (nkeys.KeyPair, error) + func (s *Store) GetAccountPublicKey(id string) (string, error) + func (s *Store) GetAccounts() (*[]user.Account, error) + func (s *Store) GetAccountsStream(w io.Writer, wg *sync.WaitGroup) + func (s *Store) GetActivities(accountID string) (*[]user.Activity, error) + func (s *Store) GetActivity(accountID, activityID string) (user.Activity, error) + func (s *Store) GetActivityStream(w io.Writer, wg *sync.WaitGroup, accountID string) + func (s *Store) GetAgentByHostID(accountID, hostID string) (*user.Agent, error) + func (s *Store) GetAgents(accountID string) (*[]user.Agent, error) + func (s *Store) GetAgentsStream(w io.Writer, wg *sync.WaitGroup, accountID string) + func (s *Store) GetInitialized() (bool, error) + func (s *Store) GetInitializerData() (InitializerData, error) + func (s *Store) GetInvitationByToken(token string) (*user.Invitation, error) + func (s *Store) GetInvitationsByAccount(accountID string) ([]*user.Invitation, error) + func (s *Store) GetOAuthIdentityBySubject(provider, subject string) (*user.OAuthIdentity, string, error) + func (s *Store) GetOAuthIdentityByUserID(accountID, userID string) (*user.OAuthIdentity, error) + func (s *Store) GetOAuthState(state string) (*user.OAuthState, error) + func (s *Store) GetOIDCConnectionByAccount(accountID string) (*user.OIDCConnection, error) + func (s *Store) GetOIDCConnectionBySlug(slug string) (*user.OIDCConnection, error) + func (s *Store) GetOperatorByID(id string) (user.Operator, error) + func (s *Store) GetOperatorByName(name string) (user.Operator, error) + func (s *Store) GetOperatorKeyPair(id string) (nkeys.KeyPair, error) + func (s *Store) GetOperatorPublicKey(id string) (string, error) + func (s *Store) GetOperators() (*[]user.Operator, error) + func (s *Store) GetOperatorsStream(w io.Writer, wg *sync.WaitGroup) + func (s *Store) GetProxyConfig() (*ProxyConfig, error) + func (s *Store) GetServiceByID(accountID, serviceID string) (*user.Service, error) + func (s *Store) GetServiceByName(accountID, name string) (*user.Service, error) + func (s *Store) GetServiceEndpoints() (map[string]ServiceEndpoint, error) + func (s *Store) GetServiceEndpointsByKind(kind string) (*[]ServiceEndpoint, error) + func (s *Store) GetServiceEndpointsByKindStream(w io.Writer, wg *sync.WaitGroup, kind string) + func (s *Store) GetServiceEndpointsStream(w io.Writer, wg *sync.WaitGroup) + func (s *Store) GetServices(accountID string) (*[]user.Service, error) + func (s *Store) GetServicesStream(w io.Writer, wg *sync.WaitGroup, accountID string) + func (s *Store) GetUserByEmail(email string) (*user.User, string, error) + func (s *Store) GetUserByID(accountID, userID string) (*user.User, error) + func (s *Store) GetUserByName(accountID, name string) (*user.User, error) + func (s *Store) GetUserByPublicKey(accountID, publicKey string) (*user.User, error) + func (s *Store) GetUserPassword(accountID, userID string) (user.UserPassword, error) + func (s *Store) GetUsers(accountID string) (*[]user.User, error) + func (s *Store) GetUsersStream(w io.Writer, wg *sync.WaitGroup, accountID string) + func (s *Store) NewAccount(accountConfig user.AccountConfig) (user.Account, error) + func (s *Store) NewAgent(userConfig *user.UserConfig) (*user.Agent, error) + func (s *Store) NewOAuthUser(config *user.OAuthUserConfig) (*user.User, error) + func (s *Store) NewOperator(operatorConfig user.OperatorConfig) (user.Operator, error) + func (s *Store) NewService(userConfig *user.UserConfig) (*user.Service, error) + func (s *Store) NewUser(userConfig *user.UserConfig) (*user.User, error) + func (s *Store) PutAPIToken(accountID string, token *APIToken) error + func (s *Store) PutAccount(account user.Account) error + func (s *Store) PutActivity(accountID string, activity user.Activity) error + func (s *Store) PutAgent(accountID string, agent *user.Agent) error + func (s *Store) PutInitialized() error + func (s *Store) PutInitializerData(initializerData InitializerData) error + func (s *Store) PutInvitation(inv *user.Invitation) error + func (s *Store) PutOAuthIdentity(accountID string, identity *user.OAuthIdentity) error + func (s *Store) PutOAuthState(state *user.OAuthState) error + func (s *Store) PutOIDCConnection(accountID string, conn *user.OIDCConnection) error + func (s *Store) PutOperator(operator user.Operator) error + func (s *Store) PutProxyConfig(config ProxyConfig) error + func (s *Store) PutService(accountID string, service *user.Service) error + func (s *Store) PutServiceEndpoint(serviceEndpoint ServiceEndpoint) error + func (s *Store) PutServiceEndpointsMap(serviceEndpoints map[string]ServiceEndpoint) error + func (s *Store) PutUser(accountID string, u *user.User) error + func (s *Store) PutUserPassword(accountID string, userPassword *user.UserPassword) error + func (s *Store) ResolveFederatedIdentity(issuerURL, subject string) (*user.OAuthIdentity, string, string, error) + func (s *Store) ResolveFederatedIdentityScoped(accountID, issuerURL, subject string) (*user.OAuthIdentity, string, error) + func (s *Store) UpdateActivity(accountID string, a user.Activity) error + func (s *Store) UpdateInvitation(inv *user.Invitation) error + func (s *Store) ValidateUserPassword(accountID, userID, password string) (bool, error) + type TenantCreatedNotification = client.TenantCreatedNotification + type TenantDeletedNotification = client.TenantDeletedNotification + type TenantUpdatedNotification = client.TenantUpdatedNotification + type UserEmailIndex struct + AccountID string + UserID string