Documentation
¶
Index ¶
- func Scope(env, ws string) string
- type Config
- type Format
- type Manager
- func (m *Manager) Cached(env string, cfg Config) (Result, bool, error)
- func (m *Manager) CachedPrepared(prep Prepared) (Result, bool, error)
- func (m *Manager) Prepare(env string, cfg Config) (Prepared, error)
- func (m *Manager) Resolve(ctx context.Context, env string, cfg Config) (Result, error)
- func (m *Manager) ResolvePrepared(ctx context.Context, prep Prepared) (Result, error)
- func (m *Manager) Restore(entries []SnapshotEntry)
- func (m *Manager) SetExecFunc(fn func(context.Context, Config) ([]byte, error))
- func (m *Manager) Snapshot() []SnapshotEntry
- type Prepared
- type Result
- type SnapshotEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Argv []string
Dir string
Format Format
Header string
Scheme string
TokenPath string
TypePath string
ExpiryPath string
ExpiresInPath string
CacheKey string
TTL time.Duration
Timeout time.Duration
}
func (Config) HeaderName ¶ added in v0.25.2
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) CachedPrepared ¶ added in v0.25.2
func (*Manager) ResolvePrepared ¶ added in v0.25.2
func (*Manager) Restore ¶ added in v0.27.1
func (m *Manager) Restore(entries []SnapshotEntry)
func (*Manager) SetExecFunc ¶
func (*Manager) Snapshot ¶ added in v0.27.1
func (m *Manager) Snapshot() []SnapshotEntry
type Prepared ¶ added in v0.25.2
type Prepared struct {
// contains filtered or unexported fields
}
func (Prepared) HeaderName ¶ added in v0.26.1
Click to show internal directories.
Click to hide internal directories.