builder

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 21 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSources

func ParseSources(sourcesFlag string) ([]sync.SourceConfig, error)

ParseSources parse a json formatted SourceConfig array string and performs validations on the content

func ParseSyncProviderURIs

func ParseSyncProviderURIs(uris []string) ([]sync.SourceConfig, error)

ParseSyncProviderURIs uri flag based sync sources to SourceConfig array. Replaces uri prefixes where necessary to derive SourceConfig

Types

type IK8sClientBuilder

type IK8sClientBuilder interface {
	GetK8sClient() (dynamic.Interface, error)
}

type ISyncBuilder

type ISyncBuilder interface {
	SyncFromURI(uri string, logger *logger.Logger) (sync.ISync, error)
	SyncsFromConfig(sourceConfig []sync.SourceConfig, logger *logger.Logger) ([]sync.ISync, error)
}

type KubernetesClientBuilder

type KubernetesClientBuilder struct{}

func (KubernetesClientBuilder) GetK8sClient

func (kcb KubernetesClientBuilder) GetK8sClient() (dynamic.Interface, error)

type SyncBuilder

type SyncBuilder struct {
	// contains filtered or unexported fields
}

func NewSyncBuilder

func NewSyncBuilder() *SyncBuilder

func (*SyncBuilder) SyncFromURI

func (sb *SyncBuilder) SyncFromURI(uri string, logger *logger.Logger) (sync.ISync, error)

func (*SyncBuilder) SyncsFromConfig

func (sb *SyncBuilder) SyncsFromConfig(sourceConfigs []sync.SourceConfig, logger *logger.Logger) ([]sync.ISync, error)

Directories

Path Synopsis
Package middlewaremocksyncbuildermock is a generated GoMock package.
Package middlewaremocksyncbuildermock is a generated GoMock package.

Jump to

Keyboard shortcuts

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