Documentation ¶
Overview ¶
Copyright (c) 2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2019 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2019 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func CopyIsiVolume(ctx context.Context, client api.Client, sourceName, destinationName string) (resp *getIsiVolumesResp, err error)
- func CopyIsiVolumeWithIsiPath(ctx context.Context, client api.Client, ...) (resp *getIsiVolumesResp, err error)
- func CreateIsiQuota(ctx context.Context, client api.Client, path string, container bool, ...) (string, 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 CreateIsiVolumeWithACLAndIsiPath(ctx context.Context, client api.Client, isiPath, name, ACL string) (resp *getIsiVolumesResp, err error)
- func CreateIsiVolumeWithACLAndIsiPathMetaData(ctx context.Context, client api.Client, isiPath, name, ACL string, ...) (resp *getIsiVolumesResp, err error)
- func CreateIsiVolumeWithIsiPath(ctx context.Context, client api.Client, ...) (resp *getIsiVolumesResp, err error)
- func CreateIsiVolumeWithIsiPathMetaData(ctx context.Context, client api.Client, ...) (resp *getIsiVolumesResp, err error)
- func DeleteIsiQuota(ctx context.Context, client api.Client, path string) (err error)
- func DeleteIsiQuotaByID(ctx context.Context, client api.Client, id string) (err error)
- func DeleteIsiQuotaByIDWithZone(ctx context.Context, client api.Client, id, zone string) (err error)
- func DeleteIsiVolume(ctx context.Context, client api.Client, name string) (resp *getIsiVolumesResp, err error)
- func DeleteIsiVolumeWithIsiPath(ctx context.Context, client api.Client, isiPath, name string) (resp *getIsiVolumesResp, err error)
- func Export(ctx context.Context, client api.Client, path string) (err error)
- func GetAbsoluteSnapshotPath(c api.Client, snapshotName, volumeName string) string
- func GetIsiExports(ctx context.Context, client api.Client) (resp *getIsiExportsResp, err error)
- func GetIsiSnapshotFolderWithSize(ctx context.Context, client api.Client, isiPath, name, volume string) (resp *getIsiVolumeSizeResp, 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 GetIsiVolumeWithIsiPath(ctx context.Context, client api.Client, isiPath, name string) (resp *getIsiVolumeAttributesResp, err error)
- func GetIsiVolumeWithSize(ctx context.Context, client api.Client, isiPath, name string) (resp *getIsiVolumeSizeResp, err error)
- func GetIsiVolumeWithoutMetadata(ctx context.Context, client api.Client, name string) (err error)
- func GetIsiVolumeWithoutMetadataWithIsiPath(ctx context.Context, client api.Client, isiPath, name string) (err error)
- func GetIsiVolumes(ctx context.Context, client api.Client) (resp *getIsiVolumesResp, err error)
- func GetRealNamespacePathWithIsiPath(isiPath string) string
- func GetRealVolumeSnapshotPathWithIsiPath(isiPath string, name string) string
- 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) (string, 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)
- func UpdateIsiQuotaHardThresholdByID(ctx context.Context, client api.Client, ID string, size int64) (err error)
- type AclRequest
- type ExportClientList
- type ExportPathList
- type IsiExport
- type IsiQuota
- type IsiQuotaListRespResume
- type IsiQuotaReq
- type IsiSnapshot
- func CreateIsiSnapshot(ctx context.Context, client api.Client, path, name string) (resp *IsiSnapshot, err error)
- func GetIsiSnapshot(ctx context.Context, client api.Client, id int64) (*IsiSnapshot, error)
- func GetIsiSnapshotByIdentity(ctx context.Context, client api.Client, identity string) (*IsiSnapshot, error)
- type IsiUpdateQuotaReq
- type IsiVolume
- type IsiZone
- 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 CopyIsiVolumeWithIsiPath ¶
func CopyIsiVolumeWithIsiPath( ctx context.Context, client api.Client, isiPath, sourceName, destinationName string) (resp *getIsiVolumesResp, err error)
CopyIsiVolumeWithIsiPath creates a new volume with isiPath on the cluster based on an existing volume
func CreateIsiQuota ¶
func CreateIsiQuota( ctx context.Context, client api.Client, path string, container bool, size int64) (string, error)
CreateIsiQuota creates a hard directory quota on given path
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 CreateIsiVolumeWithACL ¶
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 CreateIsiVolumeWithACLAndIsiPath ¶
func CreateIsiVolumeWithACLAndIsiPath( ctx context.Context, client api.Client, isiPath, name, ACL string) (resp *getIsiVolumesResp, err error)
CreateIsiVolumeWithACLAndIsiPath makes a new volume on the cluster with the specified permissions and isiPath
func CreateIsiVolumeWithACLAndIsiPathMetaData ¶ added in v1.4.0
func CreateIsiVolumeWithACLAndIsiPathMetaData( ctx context.Context, client api.Client, isiPath, name, ACL string, metadata map[string]string) (resp *getIsiVolumesResp, err error)
CreateIsiVolumeWithACLAndIsiPathMetadata makes a new volume on the cluster with the specified permissions and isiPath
func CreateIsiVolumeWithIsiPath ¶
func CreateIsiVolumeWithIsiPath( ctx context.Context, client api.Client, isiPath, name, isiVolumePathPermissions string) (resp *getIsiVolumesResp, err error)
CreateIsiVolumeWithIsiPath makes a new volume with isiPath on the cluster
func CreateIsiVolumeWithIsiPathMetaData ¶ added in v1.4.0
func CreateIsiVolumeWithIsiPathMetaData( ctx context.Context, client api.Client, isiPath, name, isiVolumePathPermissions string, metadata map[string]string) (resp *getIsiVolumesResp, err error)
CreateIsiVolumeWithIsiPathMetaData makes a new volume with isiPath on the cluster
func DeleteIsiQuota ¶
DeleteIsiQuota removes the quota for a directory
func DeleteIsiQuotaByID ¶
DeleteIsiQuotaByID removes the quota for a directory by quota id
func DeleteIsiQuotaByIDWithZone ¶
func DeleteIsiQuotaByIDWithZone( ctx context.Context, client api.Client, id, zone string) (err error)
DeleteIsiQuotaByIDWithZone removes the quota for a directory by quota id with access zone
func DeleteIsiVolume ¶
func DeleteIsiVolume( ctx context.Context, client api.Client, name string) (resp *getIsiVolumesResp, err error)
DeleteIsiVolume removes a volume from the cluster
func DeleteIsiVolumeWithIsiPath ¶
func DeleteIsiVolumeWithIsiPath( ctx context.Context, client api.Client, isiPath, name string) (resp *getIsiVolumesResp, err error)
DeleteIsiVolumeWithIsiPath removes a volume from the cluster with isiPath
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 GetAbsoluteSnapshotPath ¶
GetAbsoluteSnapshotPath get the absolute path of a snapshot
func GetIsiExports ¶
GetIsiExports queries a list of all exports on the cluster
func GetIsiSnapshotFolderWithSize ¶
func GetIsiSnapshotFolderWithSize( ctx context.Context, client api.Client, isiPath, name, volume string) (resp *getIsiVolumeSizeResp, err error)
GetIsiSnapshotFolderWithSize lists size of all the children files and subfolders in a sanpshot directory
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 GetIsiVolumeWithIsiPath ¶
func GetIsiVolumeWithIsiPath( ctx context.Context, client api.Client, isiPath, name string) (resp *getIsiVolumeAttributesResp, err error)
GetIsiVolumeWithIsiPath queries the attributes of a volume with isiPath on the cluster
func GetIsiVolumeWithSize ¶
func GetIsiVolumeWithSize( ctx context.Context, client api.Client, isiPath, name string) (resp *getIsiVolumeSizeResp, err error)
GetIsiVolumeWithSize lists size of all the children files and subfolders in a directory
func GetIsiVolumeWithoutMetadata ¶
GetIsiVolumeWithoutMetadata is used to check whether a volume exists thus the url does not append the metadata parameter.
func GetIsiVolumeWithoutMetadataWithIsiPath ¶
func GetIsiVolumeWithoutMetadataWithIsiPath( ctx context.Context, client api.Client, isiPath, name string) (err error)
GetIsiVolumeWithoutMetadataWithIsiPath is used to check whether a volume exists with isiPath thus the url does not append the metadata parameter.
func GetIsiVolumes ¶
GetIsiVolumes queries a list of all volumes on the cluster
func GetRealNamespacePathWithIsiPath ¶
GetRealNamespacePathWithIsiPath gets the real namespace path by the combination of namespace and isiPath
func GetRealVolumeSnapshotPathWithIsiPath ¶
GetRealVolumeSnapshotPathWithIsiPath gets the real volume snapshot path by using the isiPath in the parameter rather than use the default one in the client object
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) (string, error)
SetIsiQuotaHardThreshold sets the hard threshold of a quota for a directory This is really just CreateIsiQuota() with container set to false
func Unexport ¶
Unexport disables the NFS export on the cluster that points to the volumes 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,omitempty"` Enforced bool `json:"enforced,omitempty"` Id string `json:"id"` IncludeSnapshots bool `json:"include_snapshots,omitempty"` Linked interface{} `json:"linked,omitempty"` Notifications string `json:"notifications,omitempty"` Path string `json:"path,omitempty"` Persona interface{} `json:"persona,omitempty"` Ready bool `json:"ready,omitempty"` Thresholds isiThresholds `json:"thresholds,omitempty"` ThresholdsIncludeOverhead bool `json:"thresholds_include_overhead,omitempty"` Type string `json:"type,omitempty"` Usage struct { Inodes int64 `json:"inodes"` Logical int64 `json:"logical"` Physical int64 `json:"physical"` } `json:"usage"` }
func GetAllIsiQuota ¶ added in v1.9.0
GetAllIsiQuota queries all quotas on the cluster
func GetIsiQuota ¶
GetIsiQuota queries the quota for a directory
type IsiQuotaListRespResume ¶ added in v1.9.0
type IsiQuotaListRespResume struct { Quotas []*IsiQuota `json:"quotas,omitempty"` Resume string `json:"resume,omitempty"` }
func GetIsiQuotaWithResume ¶ added in v1.9.0
func GetIsiQuotaWithResume( ctx context.Context, client api.Client, resume string) (quotas *IsiQuotaListRespResume, err error)
GetIsiQuotaWithResume queries the next page quotas based on resume token
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 ¶
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
func GetIsiSnapshotByIdentity ¶
func GetIsiSnapshotByIdentity( ctx context.Context, client api.Client, identity string) (*IsiSnapshot, error)
GetIsiSnapshotByIdentity queries an individual snapshot on the cluster parm identity string: snapshot id or name
type IsiUpdateQuotaReq ¶
type IsiVolume ¶
type IsiVolume struct { Name string `json:"name"` AttributeMap []struct { Name string `json:"name"` Value interface{} `json:"value"` } `json:"attrs"` }
func CopyIsiSnapshot ¶
func CopyIsiSnapshot( ctx context.Context, client api.Client, sourceSnapshotName, sourceVolume, destinationName string) (resp *IsiVolume, err error)
CopyIsiSnapshot copies all files/directories in a snapshot to a new directory
func CopyIsiSnapshotWithIsiPath ¶
func CopyIsiSnapshotWithIsiPath( ctx context.Context, client api.Client, isiPath, snapshotSourceVolumeIsiPath, sourceSnapshotName, sourceVolume, destinationName string) (resp *IsiVolume, err error)
CopyIsiSnapshotWithIsiPath copies all files/directories in a snapshot in under the defined isiPath to a new directory
type SnapshotPath ¶
Isi PAPI snapshot path JSON struct