replication

package
v0.0.0-...-d3ccc4f Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace string
}

Config holds configuration settings for a DeploymentReplication

type Dependencies

type Dependencies struct {
	Log           zerolog.Logger
	KubeCli       kubernetes.Interface
	CRCli         versioned.Interface
	EventRecorder record.EventRecorder
}

Dependencies holds dependent services for a DeploymentReplication

type DeploymentReplication

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

DeploymentReplication is the in process state of an ArangoDeploymentReplication.

func New

New creates a new DeploymentReplication from the given API object.

func (*DeploymentReplication) Delete

func (dr *DeploymentReplication) Delete()

Delete the deployment replication. Called when the local storage was deleted by the user.

func (*DeploymentReplication) Destination

func (dr *DeploymentReplication) Destination() server.Endpoint

Destination provides info on the destination of the replication

func (*DeploymentReplication) Name

func (dr *DeploymentReplication) Name() string

Name returns the name of the deployment.

func (*DeploymentReplication) Namespace

func (dr *DeploymentReplication) Namespace() string

Namespace returns the namespace that contains the deployment.

func (*DeploymentReplication) Source

func (dr *DeploymentReplication) Source() server.Endpoint

Source provides info on the source of the replication

func (*DeploymentReplication) StateColor

func (dr *DeploymentReplication) StateColor() server.StateColor

StateColor determinates the state of the deployment in color codes.

func (*DeploymentReplication) Update

func (dr *DeploymentReplication) Update(apiObject *api.ArangoDeploymentReplication)

Update the deployment replication. This sends an update event in the event queue.

Jump to

Keyboard shortcuts

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