sync

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL