dgraphcluster

package
v0.0.0-...-4c0bbbd Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller is the controller to manage the DgraphCluster custom resource created in the Kubernetes cluster.

Controller type uses bits and pieces from here: https://github.com/kubernetes/sample-controller/

func NewController

func NewController(k8sClient kubernetes.Interface,
	dgraphClient versioned.Interface,
	dgraphClusterInformer dgraphinformer.DgraphClusterInformer,
	k8sInformerFactory k8sinformers.SharedInformerFactory) *Controller

NewController returns a new DgraphCluster controller.

func (*Controller) Run

func (dc *Controller) Run(ctx context.Context)

Run runs the actual underlying DgraphCluster controller.

func (*Controller) UpdateDgraphCluster

func (dc *Controller) UpdateDgraphCluster(dcObj *dgraphio.DgraphCluster) error

UpdateDgraphCluster function handles an udpate event on dgraph cluster object.

func (*Controller) UpdateDgraphClusterStatus

func (dc *Controller) UpdateDgraphClusterStatus(
	dcObj *dgraphio.DgraphCluster,
	dcStatus *dgraphio.DgraphClusterStatus) error

UpdateDgraphClusterStatus updates the status of the DgraphCluster object represented by dcObj with the status represented in dcStatus.

Jump to

Keyboard shortcuts

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