service

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReplicator

func NewReplicator(ctx context.Context, client kubernetes.Interface, resyncPeriod time.Duration) common.Replicator

NewReplicator creates a new service replicator

Types

type Replicator

type Replicator struct {
	*common.GenericReplicator
}

func (*Replicator) DeleteReplicatedResource

func (r *Replicator) DeleteReplicatedResource(targetResource interface{}) error

DeleteReplicatedResource deletes a resource replicated by ReplicateTo annotation

func (*Replicator) ReplicateDataFrom

func (r *Replicator) ReplicateDataFrom(sourceObj interface{}, targetObj interface{}) error

ReplicateDataFrom takes a source object and copies over data to target object

func (*Replicator) ReplicateObjectTo

func (r *Replicator) ReplicateObjectTo(sourceObj interface{}, targetNamespace *v1.Namespace) error

ReplicateObjectTo copies the whole object to target namespace

Jump to

Keyboard shortcuts

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