Documentation ¶
Index ¶
- type Configuration
- func (config *Configuration) DeleteListOfCredentials(target targets.Target) error
- func (config *Configuration) SetSources(sources credentials.SourceCollection)
- func (config *Configuration) SetTargets(targets targets.TargetCollection)
- func (config *Configuration) Sync() error
- func (config *Configuration) UpdateListOfCredentials(target targets.Target, listOfCredentials []credentials.Credentials) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { CredentialsToDelete []string `mapstructure:"credentials_to_delete"` Sources credentials.SourceCollection `mapstructure:"-"` StopOnError bool `mapstructure:"stop_on_error"` TargetParallelism int `mapstructure:"target_parallelism"` Targets targets.TargetCollection `mapstructure:"-"` }
Configuration represents the parsed configuration file given to the application
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration creates a new configuration with default values
func (*Configuration) DeleteListOfCredentials ¶ added in v0.2.0
func (config *Configuration) DeleteListOfCredentials(target targets.Target) error
DeleteListOfCredentials deletes the configured list of credentials from the given target
func (*Configuration) SetSources ¶ added in v0.2.0
func (config *Configuration) SetSources(sources credentials.SourceCollection)
SetSources sets the source configuration on synchronization configuration
func (*Configuration) SetTargets ¶ added in v0.2.0
func (config *Configuration) SetTargets(targets targets.TargetCollection)
SetTargets sets the target configuration on synchronization configuration
func (*Configuration) Sync ¶
func (config *Configuration) Sync() error
Sync syncs credentials from the configured sources to the configured targets
func (*Configuration) UpdateListOfCredentials ¶ added in v0.2.0
func (config *Configuration) UpdateListOfCredentials(target targets.Target, listOfCredentials []credentials.Credentials) error
UpdateListOfCredentials syncs the given list of credentials to the given target
Click to show internal directories.
Click to hide internal directories.