Documentation ¶
Index ¶
- Constants
- func EnsureID(ptr interface{}) error
- func New(connstr string) (toggler.Storage, error)
- func NewFromEnv() (toggler.Storage, error)
- type InMemory
- func (s *InMemory) BeginTx(ctx context.Context) (context.Context, error)
- func (s *InMemory) Close() error
- func (s *InMemory) CommitTx(ctx context.Context) error
- func (s *InMemory) ReleaseEnvironment(ctx context.Context) release.EnvironmentStorage
- func (s *InMemory) ReleaseFlag(ctx context.Context) release.FlagStorage
- func (s *InMemory) ReleasePilot(ctx context.Context) release.PilotStorage
- func (s *InMemory) ReleaseRollout(ctx context.Context) release.RolloutStorage
- func (s *InMemory) RollbackTx(ctx context.Context) error
- func (s *InMemory) SecurityToken(ctx context.Context) security.TokenStorage
- type MemoryReleaseEnvironmentStorage
- type MemoryReleaseFlagStorage
- type MemoryReleasePilotStorage
- func (s *MemoryReleasePilotStorage) FindByFlag(ctx context.Context, flag release.Flag) release.PilotEntries
- func (s *MemoryReleasePilotStorage) FindByFlagEnvPublicID(ctx context.Context, flagID, envID interface{}, pilotExtID string) (*release.Pilot, error)
- func (s *MemoryReleasePilotStorage) FindByPublicID(ctx context.Context, pilotPublicID string) release.PilotEntries
- type MemoryReleaseRolloutStorage
- type MemorySecurityTokenStorage
- type Postgres
- func (p *Postgres) Close() error
- func (p *Postgres) Init() (rErr error)
- func (p *Postgres) ReleaseEnvironment(ctx context.Context) release.EnvironmentStorage
- func (p *Postgres) ReleaseFlag(ctx context.Context) release.FlagStorage
- func (p *Postgres) ReleasePilot(ctx context.Context) release.PilotStorage
- func (p *Postgres) ReleaseRollout(ctx context.Context) release.RolloutStorage
- func (p *Postgres) SecurityToken(ctx context.Context) security.TokenStorage
- type ReleaseEnvironmentPgStorage
- type ReleaseFlagPgStorage
- type ReleasePilotPgStorage
- func (s ReleasePilotPgStorage) FindByFlag(ctx context.Context, flag release.Flag) release.PilotEntries
- func (s ReleasePilotPgStorage) FindByFlagEnvPublicID(ctx context.Context, flagID, envID interface{}, pilotExtID string) (*release.Pilot, error)
- func (s ReleasePilotPgStorage) FindByPublicID(ctx context.Context, externalID string) release.PilotEntries
- type ReleaseRolloutPgStorage
- type SecurityTokenPgStorage
Constants ¶
View Source
const ErrNewFromErrNotPossible frameless.Error = `` /* 221-byte string literal not displayed */
View Source
const ErrRDSEngineNotSet frameless.Error = `` /* 141-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func NewFromEnv ¶
Types ¶
type InMemory ¶
type InMemory struct { EventLog *inmemory.EventLog Namespace string // contains filtered or unexported fields }
func NewInMemory ¶
func NewInMemory() *InMemory
func (*InMemory) ReleaseEnvironment ¶
func (s *InMemory) ReleaseEnvironment(ctx context.Context) release.EnvironmentStorage
func (*InMemory) ReleaseFlag ¶
func (s *InMemory) ReleaseFlag(ctx context.Context) release.FlagStorage
func (*InMemory) ReleasePilot ¶
func (s *InMemory) ReleasePilot(ctx context.Context) release.PilotStorage
func (*InMemory) ReleaseRollout ¶
func (s *InMemory) ReleaseRollout(ctx context.Context) release.RolloutStorage
func (*InMemory) SecurityToken ¶
func (s *InMemory) SecurityToken(ctx context.Context) security.TokenStorage
type MemoryReleaseEnvironmentStorage ¶
type MemoryReleaseEnvironmentStorage struct {
*inmemory.EventLogStorage
}
func (*MemoryReleaseEnvironmentStorage) FindByAlias ¶
func (s *MemoryReleaseEnvironmentStorage) FindByAlias(ctx context.Context, idOrName string, env *release.Environment) (bool, error)
type MemoryReleaseFlagStorage ¶
type MemoryReleaseFlagStorage struct {
*inmemory.EventLogStorage
}
func (*MemoryReleaseFlagStorage) FindByName ¶
func (*MemoryReleaseFlagStorage) FindByNames ¶
func (s *MemoryReleaseFlagStorage) FindByNames(ctx context.Context, names ...string) release.FlagEntries
type MemoryReleasePilotStorage ¶
type MemoryReleasePilotStorage struct {
*inmemory.EventLogStorage
}
func (*MemoryReleasePilotStorage) FindByFlag ¶
func (s *MemoryReleasePilotStorage) FindByFlag(ctx context.Context, flag release.Flag) release.PilotEntries
func (*MemoryReleasePilotStorage) FindByFlagEnvPublicID ¶
func (*MemoryReleasePilotStorage) FindByPublicID ¶
func (s *MemoryReleasePilotStorage) FindByPublicID(ctx context.Context, pilotPublicID string) release.PilotEntries
type MemoryReleaseRolloutStorage ¶
type MemoryReleaseRolloutStorage struct {
*inmemory.EventLogStorage
}
func (*MemoryReleaseRolloutStorage) FindByFlagEnvironment ¶
type MemorySecurityTokenStorage ¶
type MemorySecurityTokenStorage struct {
*inmemory.EventLogStorage
}
func (*MemorySecurityTokenStorage) FindTokenBySHA512Hex ¶
type Postgres ¶
type Postgres struct { DSN string postgresql.ConnectionManager // contains filtered or unexported fields }
func NewPostgres ¶
func (*Postgres) ReleaseEnvironment ¶
func (p *Postgres) ReleaseEnvironment(ctx context.Context) release.EnvironmentStorage
func (*Postgres) ReleaseFlag ¶
func (p *Postgres) ReleaseFlag(ctx context.Context) release.FlagStorage
func (*Postgres) ReleasePilot ¶
func (p *Postgres) ReleasePilot(ctx context.Context) release.PilotStorage
func (*Postgres) ReleaseRollout ¶
func (p *Postgres) ReleaseRollout(ctx context.Context) release.RolloutStorage
func (*Postgres) SecurityToken ¶
func (p *Postgres) SecurityToken(ctx context.Context) security.TokenStorage
type ReleaseEnvironmentPgStorage ¶
type ReleaseEnvironmentPgStorage struct {
*postgresql.Storage
}
func (ReleaseEnvironmentPgStorage) FindByAlias ¶
func (s ReleaseEnvironmentPgStorage) FindByAlias(ctx context.Context, idOrName string, env *release.Environment) (bool, error)
type ReleaseFlagPgStorage ¶
type ReleaseFlagPgStorage struct {
*postgresql.Storage
}
func (ReleaseFlagPgStorage) FindByName ¶
func (ReleaseFlagPgStorage) FindByNames ¶
func (s ReleaseFlagPgStorage) FindByNames(ctx context.Context, names ...string) release.FlagEntries
type ReleasePilotPgStorage ¶
type ReleasePilotPgStorage struct {
*postgresql.Storage
}
func (ReleasePilotPgStorage) FindByFlag ¶
func (s ReleasePilotPgStorage) FindByFlag(ctx context.Context, flag release.Flag) release.PilotEntries
func (ReleasePilotPgStorage) FindByFlagEnvPublicID ¶
func (ReleasePilotPgStorage) FindByPublicID ¶
func (s ReleasePilotPgStorage) FindByPublicID(ctx context.Context, externalID string) release.PilotEntries
type ReleaseRolloutPgStorage ¶
type ReleaseRolloutPgStorage struct {
*postgresql.Storage
}
func (ReleaseRolloutPgStorage) FindByFlagEnvironment ¶
type SecurityTokenPgStorage ¶
type SecurityTokenPgStorage struct {
*postgresql.Storage
}
func (SecurityTokenPgStorage) FindTokenBySHA512Hex ¶
Click to show internal directories.
Click to hide internal directories.