nfs

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package nfs to manage an NFS export.

Package nfs operator to manage NFS Server.

Index

Constants

This section is empty.

Variables

View Source
var NFSResource = opkit.CustomResource{
	Name:    customResourceName,
	Plural:  customResourceNamePlural,
	Group:   nfsv1alpha1.CustomResourceGroup,
	Version: nfsv1alpha1.Version,
	Scope:   apiextensionsv1beta1.NamespaceScoped,
	Kind:    reflect.TypeOf(nfsv1alpha1.NFSServer{}).Name(),
}

NFSResource represents the nfs export custom resource

Functions

This section is empty.

Types

type Controller

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

Controller represents a controller object for nfs server custom resources

func NewController

func NewController(context *clusterd.Context, containerImage string) *Controller

NewController create controller for watching nfsserver custom resources created

func (*Controller) StartWatch

func (c *Controller) StartWatch(namespace string, stopCh chan struct{}) error

StartWatch watches for instances of nfsserver custom resources and acts on them

type Operator

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

Operator type for managing NFS Server.

func New

func New(context *clusterd.Context, containerImage string) *Operator

New creates an operator instance.

func (*Operator) Run

func (o *Operator) Run() error

Run the operator instance.

Jump to

Keyboard shortcuts

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