goisilon

package
v0.0.0-...-931270c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

type IsiClient struct {
	HttpClient *rest.Client
}
var TestClient *IsiClient

func NewApiClient

func NewApiClient(endpoint, username, password string, insecure bool) *IsiClient

func (*IsiClient) CreateDirectory

func (c *IsiClient) CreateDirectory(path string, headers map[string]string, recursive bool) error

Path arguemnt must start with /ifs/

func (*IsiClient) CreateSnapshot

func (c *IsiClient) CreateSnapshot(req types.SnapshotCreateReq) (int, error)

func (*IsiClient) DeleteDirectory

func (c *IsiClient) DeleteDirectory(path string, recursive bool) error

Path arguemnt must start with /ifs/

func (*IsiClient) DeleteSnapshot

func (c *IsiClient) DeleteSnapshot(name string) error

func (*IsiClient) DirectoryExists

func (c *IsiClient) DirectoryExists(parentDir, dirName string) (bool, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL