Documentation ¶
Index ¶
- func CopyIsiVolume(ctx context.Context, client api.Client, sourceName, destinationName string) (resp *getIsiVolumesResp, err error)
- func CreateIsiVolume(ctx context.Context, client api.Client, name 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 ¶
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 CreateIsiVolume ¶
func CreateIsiVolume( ctx context.Context, client api.Client, name string) (resp *getIsiVolumesResp, err error)
CreateIsiVolume makes a new volume on the cluster
func DeleteIsiQuota ¶
DeleteIsiQuota removes the quota for a directory
func DeleteIsiVolume ¶
func DeleteIsiVolume( ctx context.Context, client api.Client, name string) (resp *getIsiVolumesResp, err error)
DeleteIsiVolume removes a volume from the cluster
func Export ¶
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 ¶
GetIsiExports queries a list of all exports on the cluster
func GetIsiSnapshots ¶
func GetIsiSnapshots( ctx context.Context, client api.Client) (resp *getIsiSnapshotsResp, err error)
GetIsiSnapshots queries a list of all snapshots on the cluster
func GetIsiVolume ¶
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 ¶
GetIsiVolumes queries a list of all volumes on the cluster
func RemoveIsiSnapshot ¶
RemoveIsiSnapshot deletes a snapshot from the cluster
func SetExportClients ¶
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 ¶
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
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 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 ¶
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 ¶
GetIsiSnapshot queries an individual snapshot on the cluster
type IsiUpdateQuotaReq ¶
type IsiVolume ¶
type SnapshotPath ¶
Isi PAPI snapshot path JSON struct