file

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package mds to manage a rook file system.

Package mds for file systems.

Index

Constants

View Source
const (
	AppName = "rook-ceph-mds"
)

Variables

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

FilesystemResource represents the file system custom resource

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

Functions

func CreateFilesystem

func CreateFilesystem(context *clusterd.Context, fs cephv1beta1.Filesystem, version string, hostNetwork bool, ownerRefs []metav1.OwnerReference) error

Create the file system

func DeleteFilesystem

func DeleteFilesystem(context *clusterd.Context, fs cephv1beta1.Filesystem) error

Delete the file system

Types

type FilesystemController

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

FilesystemController represents a controller for file system custom resources

func NewFilesystemController

func NewFilesystemController(context *clusterd.Context, rookImage string, hostNetwork bool, ownerRef metav1.OwnerReference) *FilesystemController

NewFilesystemController create controller for watching file system custom resources created

func (*FilesystemController) StartWatch

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

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

Jump to

Keyboard shortcuts

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