syncer

package
v0.0.0-...-6b74ce7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Syncer

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

func NewSyncer

func NewSyncer(client client.Client, logger *logr.Logger) *Syncer

NewSyncer creates a new Syncer with the given client and logger.

func NewSyncerWithContext

func NewSyncerWithContext(client client.Client, logger *logr.Logger, ctx context.Context) *Syncer

NewSyncerWithContext creates a new Syncer with the given client, logger and context.

func (*Syncer) SetContext

func (s *Syncer) SetContext(ctx context.Context)

SetContext sets a new context for the Syncer.

func (*Syncer) SyncSnapshot

func (s *Syncer) SyncSnapshot(snapshot *applicationapiv1alpha1.Snapshot, namespace string) error

SyncSnapshot syncs a Snapshot into the given namespace. If an exiting one is found, no operations will be taken.

Jump to

Keyboard shortcuts

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