Documentation ¶
Overview ¶
Package secret fetches and caches development secrets for Encore apps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { // Synced is when the values were last synced, // or the zero value if no sync has taken place. Synced time.Time // Values is a key-value map of defined secrets. Values map[string]string }
Data is a snapshot of an Encore app's development secret values.
type LoadResult ¶ added in v1.13.2
type LoadResult struct {
// contains filtered or unexported fields
}
func (*LoadResult) Get ¶ added in v1.13.2
func (lr *LoadResult) Get(ctx context.Context, expSet *experiments.Set) (data *Data, err error)
Get returns the result of the prefetch. It blocks until the initial fetch is ready or until ctx is cancelled. For subsequent calls to Get (such as during live reload), it returns any more recent data that has been subsequently cached.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the secrets cache for running Encore apps.
Click to show internal directories.
Click to hide internal directories.