client

package
v1.2.7 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

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