Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReplicator ¶
func NewReplicator(ctx context.Context, client kubernetes.Interface, traefik *versioned.Clientset, resyncPeriod time.Duration, defaultIngressHostname string) common.Replicator
NewReplicator creates a new ingress 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
Click to show internal directories.
Click to hide internal directories.