dbsyncer

package
v0.0.0-...-5a0e1a0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageToDBSyncer

type StorageToDBSyncer interface {
	// SyncGitRepo operates on a local git repo to sync contained yaml files (depth 1). workPath is the relative
	// path to sync objects from (sets workdir = gitRepoPath/workPath). If left empty, the workdir is gitRepoPath.
	SyncGitRepo(ctx context.Context, base64UserIdentity string, base64UserGroup string, gitRepoPath string,
		workPath string, forceReconcile bool) bool
}

StorageToDBSyncer abstracts the functionality needed from a storage to DB syncer.

func NewManagedClusterSetStorageToDBSyncer

func NewManagedClusterSetStorageToDBSyncer(specDB db.SpecDB, k8sClient client.Client,
	rbacAuthorizer authorizer.Authorizer,
) StorageToDBSyncer

NewManagedClusterSetStorageToDBSyncer returns a new instance of ManagedClusterSetStorageToDBSyncer.

func NewManagedClustersGroupStorageToDBSyncer

func NewManagedClustersGroupStorageToDBSyncer(specDB db.SpecDB,
	rbacAuthorizer authorizer.Authorizer,
) StorageToDBSyncer

NewManagedClustersGroupStorageToDBSyncer returns a new instance of ManagedClustersGroupStorageToDBSyncer.

Jump to

Keyboard shortcuts

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