Documentation
¶
Index ¶
- type Client
- func (c *Client) AddExportClients(ctx context.Context, name string, clients ...string) error
- func (c *Client) AddExportClientsByID(ctx context.Context, id int, clients ...string) error
- func (c *Client) AddExportRootClients(ctx context.Context, name string, clients ...string) error
- func (c *Client) AddExportRootClientsByID(ctx context.Context, id int, clients ...string) error
- func (c *Client) ClearExportClients(ctx context.Context, name string) error
- func (c *Client) ClearExportClientsByID(ctx context.Context, id int) error
- func (c *Client) ClearExportRootClients(ctx context.Context, name string) error
- func (c *Client) ClearExportRootClientsByID(ctx context.Context, id int) error
- func (c *Client) ClearQuota(ctx context.Context, name string) error
- func (c *Client) CopySnapshot(ctx context.Context, sourceId int64, sourceName, destinationName string) (Volume, error)
- func (c *Client) CopyVolume(ctx context.Context, src, dest string) (Volume, error)
- func (c *Client) CreateSnapshot(ctx context.Context, path, name string) (Snapshot, error)
- func (c *Client) CreateVolume(ctx context.Context, name string) (Volume, error)
- func (c *Client) DeleteVolume(ctx context.Context, name string) error
- func (c *Client) DisableRootMapping(ctx context.Context, name string) error
- func (c *Client) DisableRootMappingByID(ctx context.Context, id int) error
- func (c *Client) EnableRootMapping(ctx context.Context, name, user string) error
- func (c *Client) EnableRootMappingByID(ctx context.Context, id int, user string) error
- func (c *Client) Export(ctx context.Context, name string) (int, error)
- func (c *Client) ExportVolume(ctx context.Context, name string) (int, error)
- func (c *Client) GetExportByID(ctx context.Context, id int) (Export, error)
- func (c *Client) GetExportByName(ctx context.Context, name string) (Export, error)
- func (c *Client) GetExportClients(ctx context.Context, name string) ([]string, error)
- func (c *Client) GetExportClientsByID(ctx context.Context, id int) ([]string, error)
- func (c *Client) GetExportRootClients(ctx context.Context, name string) ([]string, error)
- func (c *Client) GetExportRootClientsByID(ctx context.Context, id int) ([]string, error)
- func (c *Client) GetExports(ctx context.Context) (ExportList, error)
- func (c *Client) GetQuota(ctx context.Context, name string) (Quota, error)
- func (c *Client) GetRootMapping(ctx context.Context, name string) (UserMapping, error)
- func (c *Client) GetRootMappingByID(ctx context.Context, id int) (UserMapping, error)
- func (c *Client) GetSnapshot(ctx context.Context, id int64, name string) (Snapshot, error)
- func (c *Client) GetSnapshots(ctx context.Context) (SnapshotList, error)
- func (c *Client) GetSnapshotsByPath(ctx context.Context, path string) (SnapshotList, error)
- func (c *Client) GetVolume(ctx context.Context, id, name string) (Volume, error)
- func (c *Client) GetVolumeExports(ctx context.Context) ([]*VolumeExport, error)
- func (c *Client) GetVolumes(ctx context.Context) ([]Volume, error)
- func (c *Client) IsExported(ctx context.Context, name string) (bool, int, error)
- func (c *Client) RemoveSnapshot(ctx context.Context, id int64, name string) error
- func (c *Client) SetExportClients(ctx context.Context, name string, clients ...string) error
- func (c *Client) SetExportClientsByID(ctx context.Context, id int, clients ...string) error
- func (c *Client) SetExportRootClients(ctx context.Context, name string, clients ...string) error
- func (c *Client) SetExportRootClientsByID(ctx context.Context, id int, clients ...string) error
- func (c *Client) SetQuotaSize(ctx context.Context, name string, size int64) error
- func (c *Client) Unexport(ctx context.Context, name string) error
- func (c *Client) UnexportByID(ctx context.Context, id int) error
- func (c *Client) UnexportVolume(ctx context.Context, name string) error
- func (c *Client) UpdateQuotaSize(ctx context.Context, name string, size int64) error
- type Export
- type ExportList
- type Quota
- type Snapshot
- type SnapshotList
- type UserMapping
- type Volume
- type VolumeExport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an Isilon client.
func NewClientWithArgs ¶
func (*Client) AddExportClients ¶ added in v1.1.0
AddExportClients adds to the Export's clients property.
func (*Client) AddExportClientsByID ¶ added in v1.1.0
AddExportClientsByID adds to the Export's clients property.
func (*Client) AddExportRootClients ¶ added in v1.1.0
AddExportRootClients adds to the Export's root_clients property.
func (*Client) AddExportRootClientsByID ¶ added in v1.1.0
AddExportRootClientsByID adds to the Export's root_clients property.
func (*Client) ClearExportClients ¶
ClearExportClients sets the Export's clients property to nil.
func (*Client) ClearExportClientsByID ¶ added in v1.1.0
ClearExportClientsByID sets the Export's clients property to nil.
func (*Client) ClearExportRootClients ¶ added in v1.1.0
ClearExportRootClients sets the Export's root_clients property to nil.
func (*Client) ClearExportRootClientsByID ¶ added in v1.1.0
ClearExportRootClientsByID sets the Export's clients property to nil.
func (*Client) ClearQuota ¶
ClearQuota removes the quota from a volume
func (*Client) CopySnapshot ¶
func (*Client) CopyVolume ¶
CopyVolume creates a volume based on an existing volume
func (*Client) CreateSnapshot ¶
func (*Client) CreateVolume ¶
CreateVolume creates a volume
func (*Client) DeleteVolume ¶
DeleteVolume deletes a volume
func (*Client) DisableRootMapping ¶ added in v1.1.0
DisableRootMapping disables the root mapping for an Export.
func (*Client) DisableRootMappingByID ¶ added in v1.1.0
DisableRootMappingbyID disables the root mapping for an Export.
func (*Client) EnableRootMapping ¶ added in v1.1.0
EnableRootMapping enables the root mapping for an Export.
func (*Client) EnableRootMappingByID ¶ added in v1.1.0
EnableRootMappingByID enables the root mapping for an Export.
func (*Client) ExportVolume ¶
ExportVolume exports a volume
func (*Client) GetExportByID ¶ added in v1.1.0
GetExportByID returns an export with the provided ID.
func (*Client) GetExportByName ¶ added in v1.1.0
GetExportByName returns the first export with a path for the provided volume name.
func (*Client) GetExportClients ¶
GetExportClients returns an Export's clients property.
func (*Client) GetExportClientsByID ¶ added in v1.1.0
GetExportClientsByID returns an Export's clients property.
func (*Client) GetExportRootClients ¶ added in v1.1.0
GetExportRootClients returns an Export's root_clients property.
func (*Client) GetExportRootClientsByID ¶ added in v1.1.0
GetExportRootClientsByID returns an Export's clients property.
func (*Client) GetExports ¶ added in v1.1.0
func (c *Client) GetExports(ctx context.Context) (ExportList, error)
GetExports returns a list of all exports on the cluster
func (*Client) GetRootMapping ¶ added in v1.1.0
GetRootMapping returns the root mapping for an Export.
func (*Client) GetRootMappingByID ¶ added in v1.1.0
GetRootMappingByID returns the root mapping for an Export.
func (*Client) GetSnapshot ¶
func (*Client) GetSnapshots ¶
func (c *Client) GetSnapshots(ctx context.Context) (SnapshotList, error)
func (*Client) GetSnapshotsByPath ¶
func (*Client) GetVolumeExports ¶
func (c *Client) GetVolumeExports( ctx context.Context) ([]*VolumeExport, error)
GetVolumeExports return a list of volume exports
func (*Client) GetVolumes ¶
GetVolumes returns a list of volumes
func (*Client) IsExported ¶ added in v1.1.0
IsExported returns a flag and export ID if the provided volume name is already exported.
func (*Client) RemoveSnapshot ¶
func (*Client) SetExportClients ¶
SetExportClients sets the Export's clients property.
func (*Client) SetExportClientsByID ¶ added in v1.1.0
SetExportClientsByID sets the Export's clients property.
func (*Client) SetExportRootClients ¶ added in v1.1.0
SetExportRootClients sets the Export's root_clients property.
func (*Client) SetExportRootClientsByID ¶ added in v1.1.0
SetExportRootClientsByID sets the Export's clients property.
func (*Client) SetQuotaSize ¶
SetQuota sets the max size (hard threshold) of a quota for a volume
func (*Client) UnexportByID ¶ added in v1.1.0
UnexportByID unexports an Export by its ID.
func (*Client) UnexportVolume ¶
UnexportVolume stops exporting a volume
type ExportList ¶
type Snapshot ¶
type Snapshot *api.IsiSnapshot
type SnapshotList ¶
type SnapshotList []*api.IsiSnapshot
type UserMapping ¶ added in v1.1.0
type UserMapping *api.UserMapping