Documentation ¶
Index ¶
- type Config
- type Dependencies
- type DeploymentReplication
- func (dr *DeploymentReplication) Delete()
- func (dr *DeploymentReplication) Destination() server.Endpoint
- func (dr *DeploymentReplication) Name() string
- func (dr *DeploymentReplication) Namespace() string
- func (dr *DeploymentReplication) Source() server.Endpoint
- func (dr *DeploymentReplication) StateColor() server.StateColor
- func (dr *DeploymentReplication) Update(apiObject *api.ArangoDeploymentReplication)
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 ¶
func New(config Config, deps Dependencies, apiObject *api.ArangoDeploymentReplication) (*DeploymentReplication, error)
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.