client

package
Version: v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package client to manage a rook client.

Index

Constants

View Source
const ClientSecretName = "-client-key"

Variables

View Source
var ClientResource = opkit.CustomResource{
	Name:    "cephclient",
	Plural:  "cephclients",
	Group:   cephv1.CustomResourceGroup,
	Version: cephv1.Version,
	Scope:   apiextensionsv1beta1.NamespaceScoped,
	Kind:    reflect.TypeOf(cephv1.CephClient{}).Name(),
}

ClientResource represents the Client custom resource object

Functions

func ValidateClient

func ValidateClient(context *clusterd.Context, p *cephv1.CephClient) error

Validate the client arguments

func ValidateClientSpec

func ValidateClientSpec(context *clusterd.Context, namespace string, p *cephv1.ClientSpec) error

ValidateClientSpec checks if caps were passed for new or updated client

Types

type ClientController

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

ClientController represents a controller object for client custom resources

func NewClientController

func NewClientController(context *clusterd.Context, namespace string) *ClientController

NewClientController create controller for watching client custom resources created

func (*ClientController) ParentClusterChanged

func (c *ClientController) ParentClusterChanged(cluster cephv1.ClusterSpec, clusterInfo *cephconfig.ClusterInfo)

func (*ClientController) StartWatch

func (c *ClientController) StartWatch(stopCh chan struct{}) error

Watch watches for instances of Client custom resources and acts on them

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL