Documentation
¶
Index ¶
- type Store
- func (s *Store) Close(ctx context.Context) error
- func (s *Store) CreateAPIKey(ctx context.Context, ...) (*core.APIKey, error)
- func (s *Store) CreateContext(ctx context.Context, c *core.ContextSchema) error
- func (s *Store) CreateEnvironment(ctx context.Context, env *core.Environment) error
- func (s *Store) CreateRule(ctx context.Context, environmentID, flagKey string, rule core.Rule) error
- func (s *Store) CreateSession(ctx context.Context, id, userID, tokenHash string, expiresAt time.Time) error
- func (s *Store) DeleteContext(ctx context.Context, id string) error
- func (s *Store) DeleteEnvironment(ctx context.Context, id string) error
- func (s *Store) DeleteExpiredSessions(ctx context.Context) error
- func (s *Store) DeleteFlag(ctx context.Context, environmentID, key string) error
- func (s *Store) DeleteRule(ctx context.Context, environmentID, flagKey, ruleID string) error
- func (s *Store) DeleteSessionByHash(ctx context.Context, tokenHash string) error
- func (s *Store) GetAPIKeyByHash(ctx context.Context, secretHash string) (*core.APIKey, error)
- func (s *Store) GetContext(ctx context.Context, id string) (*core.ContextSchema, error)
- func (s *Store) GetEnvironment(ctx context.Context, id string) (*core.Environment, error)
- func (s *Store) GetEnvironmentByKey(ctx context.Context, key string) (*core.Environment, error)
- func (s *Store) GetFlag(ctx context.Context, environmentID, key string) (*core.FlagConfig, error)
- func (s *Store) GetRule(ctx context.Context, environmentID, flagKey, ruleID string) (*core.Rule, error)
- func (s *Store) GetUserByEmail(ctx context.Context, email string) (*core.User, string, error)
- func (s *Store) GetUserBySessionHash(ctx context.Context, tokenHash string) (*core.User, error)
- func (s *Store) ListAPIKeys(ctx context.Context) ([]*core.APIKey, error)
- func (s *Store) ListContextReferences(ctx context.Context) ([]core.ContextReference, error)
- func (s *Store) ListContexts(ctx context.Context) ([]*core.ContextSchema, error)
- func (s *Store) ListEnvironmentUsageBuckets(ctx context.Context, query core.FlagUsageQuery) ([]*core.FlagUsageBucket, error)
- func (s *Store) ListEnvironmentUsageLatencyBuckets(ctx context.Context, query core.FlagUsageQuery) ([]*core.FlagUsageLatencyBucket, error)
- func (s *Store) ListEnvironments(ctx context.Context) ([]*core.Environment, error)
- func (s *Store) ListFlagAuditLog(ctx context.Context, environmentID, flagKey string) ([]*core.AuditEntry, error)
- func (s *Store) ListFlagEvaluationEvents(ctx context.Context, query core.FlagUsageQuery) ([]*core.FlagUsageEvent, error)
- func (s *Store) ListFlagUsageBuckets(ctx context.Context, query core.FlagUsageQuery) ([]*core.FlagUsageBucket, error)
- func (s *Store) ListFlagUsageLatencyBuckets(ctx context.Context, query core.FlagUsageQuery) ([]*core.FlagUsageLatencyBucket, error)
- func (s *Store) ListFlags(ctx context.Context, environmentID string) ([]*core.FlagConfig, error)
- func (s *Store) ListenAPIKeyCacheInvalidations(ctx context.Context, handle func(payload string)) error
- func (s *Store) NotifyAPIKeyCacheInvalidated(ctx context.Context, payload string) error
- func (s *Store) Ping(ctx context.Context) error
- func (s *Store) RecordFlagUsage(ctx context.Context, event core.FlagUsageEvent) error
- func (s *Store) ReorderRules(ctx context.Context, environmentID, flagKey string, ruleIDs []string) error
- func (s *Store) RevokeAPIKey(ctx context.Context, id string) error
- func (s *Store) SaveFlag(ctx context.Context, environmentID string, flag *core.FlagConfig) error
- func (s *Store) TouchAPIKey(ctx context.Context, id string) error
- func (s *Store) UpdateContext(ctx context.Context, c *core.ContextSchema) error
- func (s *Store) UpdateEnvironment(ctx context.Context, env *core.Environment) error
- func (s *Store) UpdateRule(ctx context.Context, environmentID, flagKey string, rule core.Rule) error
- func (s *Store) UpsertLocalAdmin(ctx context.Context, user *core.User, passwordHash string) (*core.User, error)
- func (s *Store) UpsertUserByOIDC(ctx context.Context, user *core.User) (*core.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CreateAPIKey ¶
func (*Store) CreateContext ¶
func (*Store) CreateEnvironment ¶
func (*Store) CreateRule ¶
func (*Store) CreateSession ¶
func (*Store) DeleteEnvironment ¶
func (*Store) DeleteExpiredSessions ¶
func (*Store) DeleteFlag ¶
func (*Store) DeleteRule ¶
func (*Store) DeleteSessionByHash ¶
func (*Store) GetAPIKeyByHash ¶
func (*Store) GetContext ¶
func (*Store) GetEnvironment ¶
func (*Store) GetEnvironmentByKey ¶
func (*Store) GetUserByEmail ¶
func (*Store) GetUserBySessionHash ¶
func (*Store) ListAPIKeys ¶
func (*Store) ListContextReferences ¶
func (*Store) ListContexts ¶
func (*Store) ListEnvironmentUsageBuckets ¶
func (s *Store) ListEnvironmentUsageBuckets(ctx context.Context, query core.FlagUsageQuery) ([]*core.FlagUsageBucket, error)
func (*Store) ListEnvironmentUsageLatencyBuckets ¶
func (s *Store) ListEnvironmentUsageLatencyBuckets(ctx context.Context, query core.FlagUsageQuery) ([]*core.FlagUsageLatencyBucket, error)
func (*Store) ListEnvironments ¶
func (*Store) ListFlagAuditLog ¶
func (*Store) ListFlagEvaluationEvents ¶
func (s *Store) ListFlagEvaluationEvents(ctx context.Context, query core.FlagUsageQuery) ([]*core.FlagUsageEvent, error)
func (*Store) ListFlagUsageBuckets ¶
func (s *Store) ListFlagUsageBuckets(ctx context.Context, query core.FlagUsageQuery) ([]*core.FlagUsageBucket, error)
func (*Store) ListFlagUsageLatencyBuckets ¶
func (s *Store) ListFlagUsageLatencyBuckets(ctx context.Context, query core.FlagUsageQuery) ([]*core.FlagUsageLatencyBucket, error)
func (*Store) ListenAPIKeyCacheInvalidations ¶
func (*Store) NotifyAPIKeyCacheInvalidated ¶
func (*Store) RecordFlagUsage ¶
func (*Store) ReorderRules ¶
func (*Store) UpdateContext ¶
func (*Store) UpdateEnvironment ¶
func (*Store) UpdateRule ¶
func (*Store) UpsertLocalAdmin ¶
Click to show internal directories.
Click to hide internal directories.