Documentation ¶
Index ¶
- func CopyIsiVolume(ctx context.Context, client api.Client, sourceName, destinationName string) (resp *getIsiVolumesResp, err error)
- func CreateIsiQuota(ctx context.Context, client api.Client, path string, container bool, ...) (err error)
- func CreateIsiVolume(ctx context.Context, client api.Client, name string) (resp *getIsiVolumesResp, err error)
- func CreateIsiVolumeWithACL(ctx context.Context, client api.Client, name, ACL string) (resp *getIsiVolumesResp, err error)
- func DeleteIsiQuota(ctx context.Context, client api.Client, path string) (err error)
- func DeleteIsiVolume(ctx context.Context, client api.Client, name string) (resp *getIsiVolumesResp, err error)
- func Export(ctx context.Context, client api.Client, path string) (err error)
- func GetIsiExports(ctx context.Context, client api.Client) (resp *getIsiExportsResp, err error)
- func GetIsiSnapshots(ctx context.Context, client api.Client) (resp *getIsiSnapshotsResp, err error)
- func GetIsiVolume(ctx context.Context, client api.Client, name string) (resp *getIsiVolumeAttributesResp, err error)
- func GetIsiVolumes(ctx context.Context, client api.Client) (resp *getIsiVolumesResp, err error)
- func RemoveIsiSnapshot(ctx context.Context, client api.Client, id int64) error
- func SetExportClients(ctx context.Context, client api.Client, Id int, clients []string) (err error)
- func SetIsiQuotaHardThreshold(ctx context.Context, client api.Client, path string, size int64) (err error)
- func Unexport(ctx context.Context, client api.Client, Id int) (err error)
- func UpdateIsiQuotaHardThreshold(ctx context.Context, client api.Client, path string, size int64) (err error)
- type AclRequest
- type ExportClientList
- type ExportPathList
- type IsiExport
- type IsiQuota
- type IsiQuotaReq
- type IsiSnapshot
- type IsiUpdateQuotaReq
- type IsiVolume
- type Ownership
- type SnapshotPath
- type VolumeName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyIsiVolume ¶ added in v1.1.0
func CopyIsiVolume( ctx context.Context, client api.Client, sourceName, destinationName string) (resp *getIsiVolumesResp, err error)
CopyIsiVolume creates a new volume on the cluster based on an existing volume
func CreateIsiQuota ¶ added in v1.7.3
func CreateIsiQuota( ctx context.Context, client api.Client, path string, container bool, size int64) (err error)
CreateIsiQuota creates a hard directory quota on given path
func CreateIsiVolume ¶ added in v1.1.0
func CreateIsiVolume( ctx context.Context, client api.Client, name string) (resp *getIsiVolumesResp, err error)
CreateIsiVolume makes a new volume on the cluster
func CreateIsiVolumeWithACL ¶ added in v1.7.5
func CreateIsiVolumeWithACL( ctx context.Context, client api.Client, name, ACL string) (resp *getIsiVolumesResp, err error)
CreateIsiVolumeWithACL makes a new volume on the cluster with the specified permissions
func DeleteIsiQuota ¶ added in v1.1.0
DeleteIsiQuota removes the quota for a directory
func DeleteIsiVolume ¶ added in v1.1.0
func DeleteIsiVolume( ctx context.Context, client api.Client, name string) (resp *getIsiVolumesResp, err error)
DeleteIsiVolume removes a volume from the cluster
func Export ¶ added in v1.1.0
Export enables an NFS export on the cluster to access the volumes. Return the path to the export so other processes can mount the volume directory
func GetIsiExports ¶ added in v1.1.0
GetIsiExports queries a list of all exports on the cluster
func GetIsiSnapshots ¶ added in v1.1.0
func GetIsiSnapshots( ctx context.Context, client api.Client) (resp *getIsiSnapshotsResp, err error)
GetIsiSnapshots queries a list of all snapshots on the cluster
func GetIsiVolume ¶ added in v1.1.0
func GetIsiVolume( ctx context.Context, client api.Client, name string) (resp *getIsiVolumeAttributesResp, err error)
GetIsiVolume queries the attributes of a volume on the cluster
func GetIsiVolumes ¶ added in v1.1.0
GetIsiVolumes queries a list of all volumes on the cluster
func RemoveIsiSnapshot ¶ added in v1.1.0
RemoveIsiSnapshot deletes a snapshot from the cluster
func SetExportClients ¶ added in v1.1.0
func SetExportClients( ctx context.Context, client api.Client, Id int, clients []string) (err error)
SetExportClients limits access to an NFS export on the cluster to a specific client address.
func SetIsiQuotaHardThreshold ¶ added in v1.1.0
func SetIsiQuotaHardThreshold( ctx context.Context, client api.Client, path string, size int64) (err error)
SetIsiQuotaHardThreshold sets the hard threshold of a quota for a directory This is really just CreateIsiQuota() with container set to false
Types ¶
type AclRequest ¶
type ExportClientList ¶
type ExportClientList struct {
Clients []string `json:"clients"`
}
Isi PAPI export clients JSON struct
type ExportPathList ¶
type ExportPathList struct { Paths []string `json:"paths"` MapAll struct { User string `json:"user"` Groups []string `json:"groups,omitempty"` } `json:"map_all"` }
Isi PAPI export path JSON struct
type IsiExport ¶
type IsiExport struct { Id int `json:"id"` Paths []string `json:"paths"` Clients []string `json:"clients"` }
Isi PAPI export attributes JSON structs
type IsiQuota ¶
type IsiQuota struct { Container bool `json:"container"` Enforced bool `json:"enforced"` Id string `json:"id"` IncludeSnapshots bool `json:"include_snapshots"` Linked interface{} `json:"linked"` Notifications string `json:"notifications"` Path string `json:"path"` Persona interface{} `json:"persona"` Ready bool `json:"ready"` Thresholds isiThresholds `json:"thresholds"` ThresholdsIncludeOverhead bool `json:"thresholds_include_overhead"` Type string `json:"type"` Usage struct { Inodes int64 `json:"inodes"` Logical int64 `json:"logical"` Physical int64 `json:"physical"` } `json:"usage"` }
type IsiQuotaReq ¶
type IsiQuotaReq struct { Enforced bool `json:"enforced"` IncludeSnapshots bool `json:"include_snapshots"` Path string `json:"path"` Thresholds isiThresholdsReq `json:"thresholds"` ThresholdsIncludeOverhead bool `json:"thresholds_include_overhead"` Type string `json:"type"` Container bool `json:"container"` }
type IsiSnapshot ¶
type IsiSnapshot struct { Created int64 `json:"created"` Expires int64 `json:"expires"` HasLocks bool `json:"has_locks"` Id int64 `json:"id"` Name string `json:"name"` Path string `json:"path"` PctFilesystem float64 `json:"pct_filesystem"` PctReserve float64 `json:"pct_reserve"` Schedule string `json:"schedule"` ShadowBytes int64 `json:"shadow_bytes"` Size int64 `json:"size"` State string `json:"state"` TargetId int64 `json:"target_it"` TargetName string `json:"target_name"` }
Isi PAPI snapshot JSON struct
func CreateIsiSnapshot ¶ added in v1.1.0
func CreateIsiSnapshot( ctx context.Context, client api.Client, path, name string) (resp *IsiSnapshot, err error)
CreateIsiSnapshot makes a new snapshot on the cluster
func GetIsiSnapshot ¶ added in v1.1.0
GetIsiSnapshot queries an individual snapshot on the cluster
type IsiUpdateQuotaReq ¶
type IsiVolume ¶
type SnapshotPath ¶
Isi PAPI snapshot path JSON struct