Documentation ¶
Index ¶
- Variables
- type Agent
- type Option
- func WithBasePath(path string) Option
- func WithClientConfig(namespace string, name string) Option
- func WithKubeConfig(masterURL string, kubeConfigPath string) Option
- func WithLogger(logger logr.Logger) Option
- func WithRestConfig(config *rest.Config) Option
- func WithTokenPath(path string) Option
- func WithVaultToken(token string) Option
- type Secret
- type StatusType
- type SyncStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotYetSynced is returned when the config hasn't been synced yet. ErrNotYetSynced = erx.New("Heist Agent", "Config is not synced yet"). WithDetails("config has not been synced to the agent yet, this may take up to a couple of seconds") // ErrAPIRequestFailed is returned when vault returned an unexpected response. ErrAPIRequestFailed = erx.New("Heist Agent", "REST requests to Vault could not be completed") // ErrNotFound is returned when a secret doesn't exist. ErrNotFound = erx.New("Heist Agent", "not found") )
View Source
var ErrInitAgentFailed = erx.New("Heist Agent", "failed to initialize new agent")
ErrInitAgentFailed is returned when the agent can't be initialized.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Option ¶
type Option func(a *agent) error
func WithBasePath ¶
func WithClientConfig ¶
func WithKubeConfig ¶
func WithLogger ¶
func WithRestConfig ¶
func WithTokenPath ¶
func WithVaultToken ¶
type StatusType ¶
type StatusType string
const ( // StatusNotYetSynced indicates that the agent hasn't yet fetched it's config. StatusNotYetSynced StatusType = "not_yet_synced" // StatusSynced indicates that the agent has successfully fetched the config // and all configured secrets. StatusSynced StatusType = "synced" // StatusStopped indicates that the agent has been stopped and will no longer sync secrets. StatusStopped StatusType = "stopped" // StatusError indicates that an error has occurred. StatusError StatusType = "error" )
type SyncStatus ¶
type SyncStatus struct { Status StatusType Reason string }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.