Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "sync_kv"
Type is the string value of the Target type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Artifact *Artifact Target *Target KVStorage kv.Storage VaultClientFactory VaultClientFactory Logger logz.FieldLogger }
Action is the executor for implementing a KV Sync
func (*Action) UseKVStorage ¶
UseKVStorage inject the client
func (*Action) UseLogger ¶
func (a *Action) UseLogger(logger logz.FieldLogger)
UseLogger injects a logger into the target's action
type Artifact ¶
type Artifact struct {
ark.RawArtifact `mapstructure:",squash"`
}
Artifact the result of a successful actions.KVSync
func (Artifact) Cacheable ¶
Cacheable always returns false as state is not tracked between the local KV and a Vault cluster
func (Artifact) LocallyCached ¶
LocallyCached is an unused function as the target is not cacheable
type Target ¶
type Target struct { ark.RawTarget `mapstructure:",squash"` Engine string `json:"engine" mapstructure:"engine"` EngineURL string `json:"engineUrl" mapstructure:"engineUrl"` TimeoutSeconds int `json:"timeoutSeconds" mapstructure:"timeoutSeconds"` Token string `json:"token" mapstructure:"token"` MaxRetries int `json:"maxRetries" mapstructure:"maxRetries"` }
Target expresses the intention to implement a KV Sync target
Click to show internal directories.
Click to hide internal directories.