syncer

package
v0.0.0-...-a1c22f6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ToggleURL string
	Namespace string
}

Options syncer options

type Syncer

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

Syncer syncs configuration from remote to local ConfigMaps

func NewSyncer

func NewSyncer(
	kubeClient kubernetes.Interface,
	storageClient storage.Client,
	clusterName string,
	logger *logrus.Entry) *Syncer

NewSyncer returns a Syncer

func NewSyncerWithBlobClient

func NewSyncerWithBlobClient(
	kubeClient kubernetes.Interface,
	blobClient blobclient.Interface,
	storageAccountName string,
	storageEndpointSuffix string,
	clusterName string,
	logger *logrus.Entry) *Syncer

NewSyncerWithBlobClient returns a Syncer using BlobClient

func (*Syncer) Run

func (s *Syncer) Run()

Run runs the syncer routine

func (*Syncer) SetOptions

func (s *Syncer) SetOptions(opt Options)

SetOptions sets the options for syncer

Jump to

Keyboard shortcuts

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