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
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
Types ¶
type FakeQuota ¶ added in v1.5.0
type FakeQuota struct{}
func (*FakeQuota) CreateProjectQuota ¶ added in v1.5.0
func (*FakeQuota) RemoveProjectQuota ¶ added in v1.5.0
func (*FakeQuota) RestoreProjectQuota ¶ added in v1.5.0
type NFSServerReconciler ¶ added in v1.4.0
type NFSServerReconciler struct { client.Client Context *clusterd.Context Scheme *runtime.Scheme Log *capnslog.PackageLogger Recorder record.EventRecorder }
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator type for managing NFS Server.
type Provisioner ¶ added in v1.5.0
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.5.0
func (p *Provisioner) Delete(volume *v1.PersistentVolume) error
func (*Provisioner) Provision ¶ added in v1.5.0
func (p *Provisioner) Provision(options controller.ProvisionOptions) (*v1.PersistentVolume, error)
type Quota ¶ added in v1.5.0
type Quota struct {
// contains filtered or unexported fields
}
func (*Quota) CreateProjectQuota ¶ added in v1.5.0
func (*Quota) RemoveProjectQuota ¶ added in v1.5.0
func (*Quota) RestoreProjectQuota ¶ added in v1.5.0
type Quotaer ¶ added in v1.5.0
type Quotaer interface { CreateProjectQuota(projectsFile, directory, limit string) (string, error) RemoveProjectQuota(projectID uint16, projectsFile, block string) error RestoreProjectQuota() error }
func NewFakeProjectQuota ¶ added in v1.5.0
func NewProjectQuota ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.