Versions in this module Expand all Collapse all v1 v1.2.5 Apr 3, 2024 Changes in this version + const BasePath + type HammerspaceClient struct + func NewHammerspaceClient(endpoint, username, password string, tlsVerify bool) (*HammerspaceClient, error) + func (client *HammerspaceClient) CheckIfShareCreateTaskIsRunning(shareName string) (bool, error) + func (client *HammerspaceClient) CreateShare(name string, exportPath string, size int64, objectives []string, ...) error + func (client *HammerspaceClient) CreateShareFromSnapshot(name string, exportPath string, size int64, objectives []string, ...) error + func (client *HammerspaceClient) DeleteFileSnapshot(filePath, snapshotName string) error + func (client *HammerspaceClient) DeleteShare(name string, deleteDelay int64) error + func (client *HammerspaceClient) DeleteShareSnapshot(shareName, snapshotName string) error + func (client *HammerspaceClient) DoesFileExist(path string) (bool, error) + func (client *HammerspaceClient) EnsureLogin() error + func (client *HammerspaceClient) GetAnvilPortal() (string, error) + func (client *HammerspaceClient) GetClusterAvailableCapacity() (int64, error) + func (client *HammerspaceClient) GetDataPortals(nodeID string) ([]common.DataPortal, error) + func (client *HammerspaceClient) GetFile(path string) (*common.File, error) + func (client *HammerspaceClient) GetFileSnapshots(filePath string) ([]common.FileSnapshot, error) + func (client *HammerspaceClient) GetPortalFloatingIp() (string, error) + func (client *HammerspaceClient) GetShare(name string) (*common.ShareResponse, error) + func (client *HammerspaceClient) GetShareRawFields(name string) (map[string]interface{}, error) + func (client *HammerspaceClient) GetShareSnapshots(shareName string) ([]string, error) + func (client *HammerspaceClient) ListObjectiveNames() ([]string, error) + func (client *HammerspaceClient) ListObjectives() ([]common.ClusterObjectiveResponse, error) + func (client *HammerspaceClient) ListShares() ([]common.ShareResponse, error) + func (client *HammerspaceClient) ListSnapshots() ([]common.SnapshotResponse, error) + func (client *HammerspaceClient) ListVolumes() ([]common.VolumeResponse, error) + func (client *HammerspaceClient) RestoreFileSnapToDestination(snapshotPath, filePath string) error + func (client *HammerspaceClient) SetObjectives(shareName string, path string, objectives []string, replaceExisting bool) error + func (client *HammerspaceClient) SnapshotFile(filepath string) (string, error) + func (client *HammerspaceClient) SnapshotShare(shareName string) (string, error) + func (client *HammerspaceClient) UpdateShareSize(name string, size int64) error + func (client *HammerspaceClient) WaitForTaskCompletion(taskLocation string) (bool, error)