Documentation ¶
Overview ¶
scale-out, multi-cloud NFS
Package nfs for the Edgefs manager.
Index ¶
- Variables
- type NFSController
- func (c *NFSController) CreateOrUpdate(s edgefsv1beta1.NFS, update bool, ownerRefs []metav1.OwnerReference) error
- func (c *NFSController) CreateService(s edgefsv1beta1.NFS, ownerRefs []metav1.OwnerReference) error
- func (c *NFSController) DeleteService(s edgefsv1beta1.NFS) error
- func (c *NFSController) StartWatch(namespace string, stopCh chan struct{}) error
- func (c *NFSController) UpdateService(s edgefsv1beta1.NFS, ownerRefs []metav1.OwnerReference) error
Constants ¶
This section is empty.
Variables ¶
View Source
var NFSResource = opkit.CustomResource{ Name: customResourceName, Plural: customResourceNamePlural, Group: edgefsv1beta1.CustomResourceGroup, Version: edgefsv1beta1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(edgefsv1beta1.NFS{}).Name(), }
NFSResource represents the nfs custom resource
Functions ¶
This section is empty.
Types ¶
type NFSController ¶
type NFSController struct {
// contains filtered or unexported fields
}
NFSController represents a controller object for nfs custom resources
func NewNFSController ¶
func NewNFSController( context *clusterd.Context, rookImage string, hostNetwork bool, dataDirHostPath string, dataVolumeSize resource.Quantity, placement rookalpha.Placement, resources v1.ResourceRequirements, resourceProfile string, ownerRef metav1.OwnerReference, ) *NFSController
NewNFSController create controller for watching nfs custom resources created
func (*NFSController) CreateOrUpdate ¶
func (c *NFSController) CreateOrUpdate(s edgefsv1beta1.NFS, update bool, ownerRefs []metav1.OwnerReference) error
Start the nfs instance
func (*NFSController) CreateService ¶
func (c *NFSController) CreateService(s edgefsv1beta1.NFS, ownerRefs []metav1.OwnerReference) error
Start the rgw manager
func (*NFSController) DeleteService ¶
func (c *NFSController) DeleteService(s edgefsv1beta1.NFS) error
Delete NFS service and possibly some artifacts.
func (*NFSController) StartWatch ¶
func (c *NFSController) StartWatch(namespace string, stopCh chan struct{}) error
StartWatch watches for instances of NFS custom resources and acts on them
func (*NFSController) UpdateService ¶
func (c *NFSController) UpdateService(s edgefsv1beta1.NFS, ownerRefs []metav1.OwnerReference) error
Click to show internal directories.
Click to hide internal directories.