nfs

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package nfs operator to manage NFS Server.

Portion of this file is coming from https://github.com/kubernetes-incubator/external-storage/blob/master/nfs/pkg/server/server.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v1.0.0

func Run(ganeshaConfig string) error

Run : run the NFS server in the foreground until it exits Ideally, it should never exit when run in foreground mode We force foreground to allow the provisioner process to restart the server if it crashes - daemonization prevents us from using Wait() for this purpose

func Setup added in v1.0.0

func Setup(ganeshaConfig string) error

Setup sets up various prerequisites and settings for the server. If an error is encountered at any point it returns it instantly

func Stop added in v1.0.0

func Stop()

Stop stops the NFS server.

Types

type FakeQuota added in v1.7.3

type FakeQuota struct{}

func (*FakeQuota) CreateProjectQuota added in v1.7.3

func (q *FakeQuota) CreateProjectQuota(projectsFile, directory, limit string) (string, error)

func (*FakeQuota) RemoveProjectQuota added in v1.7.3

func (q *FakeQuota) RemoveProjectQuota(projectID uint16, projectsFile, block string) error

func (*FakeQuota) RestoreProjectQuota added in v1.7.3

func (q *FakeQuota) RestoreProjectQuota() error

type NFSServerReconciler added in v1.7.3

type NFSServerReconciler struct {
	client.Client
	Context  *clusterd.Context
	Scheme   *runtime.Scheme
	Log      *capnslog.PackageLogger
	Recorder record.EventRecorder
}

func (*NFSServerReconciler) Reconcile added in v1.7.3

func (r *NFSServerReconciler) Reconcile(context context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

type Operator

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

Operator type for managing NFS Server.

func New

func New(context *clusterd.Context) *Operator

New creates an operator instance.

func (*Operator) Run

func (o *Operator) Run() error

Run the operator instance.

type Provisioner added in v1.7.3

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

func NewNFSProvisioner added in v1.0.0

func NewNFSProvisioner(clientset kubernetes.Interface, rookClientset rookclient.Interface) (*Provisioner, error)

NewNFSProvisioner returns an instance of nfsProvisioner

func (*Provisioner) Delete added in v1.7.3

func (p *Provisioner) Delete(ctx context.Context, volume *v1.PersistentVolume) error

func (*Provisioner) Provision added in v1.7.3

Provision(context.Context, ProvisionOptions) (*v1.PersistentVolume, ProvisioningState, error)

type Quota added in v1.7.3

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

func (*Quota) CreateProjectQuota added in v1.7.3

func (q *Quota) CreateProjectQuota(projectsFile, directory, limit string) (string, error)

func (*Quota) RemoveProjectQuota added in v1.7.3

func (q *Quota) RemoveProjectQuota(projectID uint16, projectsFile, block string) error

func (*Quota) RestoreProjectQuota added in v1.7.3

func (q *Quota) RestoreProjectQuota() error

type Quotaer added in v1.7.3

type Quotaer interface {
	CreateProjectQuota(projectsFile, directory, limit string) (string, error)
	RemoveProjectQuota(projectID uint16, projectsFile, block string) error
	RestoreProjectQuota() error
}

func NewFakeProjectQuota added in v1.7.3

func NewFakeProjectQuota() (Quotaer, error)

func NewProjectQuota added in v1.7.3

func NewProjectQuota() (Quotaer, error)

type Webhook added in v1.7.3

type Webhook struct {
	Port    int
	CertDir string
}

func NewWebhook added in v1.7.3

func NewWebhook(port int, certDir string) *Webhook

func (*Webhook) Run added in v1.7.3

func (w *Webhook) Run() error

Jump to

Keyboard shortcuts

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