Documentation ¶
Index ¶
- Constants
- type IsiClient
- func (c *IsiClient) CreateDirectory(path string, headers map[string]string, recursive bool) error
- func (c *IsiClient) CreateSnapshot(req types.SnapshotCreateReq) (int, error)
- func (c *IsiClient) DeleteDirectory(path string, recursive bool) error
- func (c *IsiClient) DeleteSnapshot(name string) error
- func (c *IsiClient) DirectoryExists(parentDir, dirName string) (bool, error)
- func (c *IsiClient) GetSnapshots(name string) (types.SnapshotList, error)
- func (c *IsiClient) UpdateDirAcl(path string, body types.AclUpdateReq) error
Constants ¶
View Source
const ( TestEndpoint = "https://10.28.104.191:8080" TestUsername = "root" TestPassword = "test_pass" TestInsecure = true )
View Source
const ( SnapshotsApi = "/platform/1/snapshot/snapshots" SnapshotSummaryApi = "/platform/1/snapshot/snapshots-summary" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsiClient ¶
var TestClient *IsiClient
func NewApiClient ¶
func (*IsiClient) CreateDirectory ¶
Path arguemnt must start with /ifs/
func (*IsiClient) CreateSnapshot ¶
func (c *IsiClient) CreateSnapshot(req types.SnapshotCreateReq) (int, error)
func (*IsiClient) DeleteDirectory ¶
Path arguemnt must start with /ifs/
func (*IsiClient) DeleteSnapshot ¶
func (*IsiClient) DirectoryExists ¶
parentDir arguemnt must start with /ifs/
func (*IsiClient) GetSnapshots ¶
func (c *IsiClient) GetSnapshots(name string) (types.SnapshotList, error)
func (*IsiClient) UpdateDirAcl ¶
func (c *IsiClient) UpdateDirAcl(path string, body types.AclUpdateReq) error
Click to show internal directories.
Click to hide internal directories.