Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildSourceArgs ¶
type BuildSourceArgs struct { Options *shareoptions.ShareOptions Location *shares.ExportLocation Clientset clientset.Interface AccessRight *shares.AccessRight }
BuildSourceArgs contains arguments for ShareBackend.BuildSource()
type CSICephFS ¶
type CSICephFS struct {
}CSICephFS struct, implements ShareBackend interface for CSI CephFS
func (CSICephFS) BuildSource ¶
func (CSICephFS) BuildSource(args *BuildSourceArgs) (*v1.PersistentVolumeSource, error)
BuildSource builds PersistentVolumeSource for CSI CephFS driver
func (CSICephFS) GrantAccess ¶
func (CSICephFS) GrantAccess(args *GrantAccessArgs) (*shares.AccessRight, error)
GrantAccess to Ceph share and creates a k8s Secret
func (CSICephFS) RevokeAccess ¶
func (CSICephFS) RevokeAccess(args *RevokeAccessArgs) error
RevokeAccess to k8s secret created by GrantAccess()
type CephFS ¶
type CephFS struct {
}CephFS struct, implements ShareBackend interface for k8s CephFS
func (CephFS) BuildSource ¶
func (CephFS) BuildSource(args *BuildSourceArgs) (*v1.PersistentVolumeSource, error)
BuildSource builds PersistentVolumeSource for k8s CephFS
func (CephFS) GrantAccess ¶
func (CephFS) GrantAccess(args *GrantAccessArgs) (*shares.AccessRight, error)
GrantAccess to Ceph share
func (CephFS) RevokeAccess ¶
func (CephFS) RevokeAccess(args *RevokeAccessArgs) error
RevokeAccess to k8s secret created by GrantAccess()
type GrantAccessArgs ¶
type GrantAccessArgs struct { Options *shareoptions.ShareOptions Clientset clientset.Interface Client *gophercloud.ServiceClient }
GrantAccessArgs contains arguments for ShareBackend.GrantAccess()
type NFS ¶
type NFS struct {
}NFS struct, implements ShareBackend interface for k8s NFS
func (NFS) BuildSource ¶
func (NFS) BuildSource(args *BuildSourceArgs) (*v1.PersistentVolumeSource, error)
BuildSource builds PersistentVolumeSource for k8s NFS
func (NFS) GrantAccess ¶
func (NFS) GrantAccess(args *GrantAccessArgs) (*shares.AccessRight, error)
GrantAccess to NFS share. Allows read-write access to everyone!
func (NFS) RevokeAccess ¶
func (NFS) RevokeAccess(*RevokeAccessArgs) error
RevokeAccess does nothing - nothing to release
type RevokeAccessArgs ¶
type RevokeAccessArgs struct { Clientset clientset.Interface Client *gophercloud.ServiceClient }
RevokeAccessArgs contains arguments for ShareBaceknd.RevokeAccess()
type ShareBackend ¶
type ShareBackend interface { string BuildSource(*BuildSourceArgs) (*v1.PersistentVolumeSource, error) GrantAccess(*GrantAccessArgs) (*shares.AccessRight, error) RevokeAccess(*RevokeAccessArgs) error }Name()
ShareBackend takes care of granting access to the share and building PersistentVolumeSource used in the final PersistentVolume object.