Documentation ¶
Index ¶
- Variables
- type ACL
- 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) CreateVolumeDir(ctx context.Context, volumeName, dirPath string, fileMode os.FileMode, ...) error
- func (c *Client) DeleteVolume(ctx context.Context, name string) error
- func (c *Client) DisableFailureMapping(ctx context.Context, name string) error
- func (c *Client) DisableFailureMappingByID(ctx context.Context, id int) error
- func (c *Client) DisableNonRootMapping(ctx context.Context, name string) error
- func (c *Client) DisableNonRootMappingByID(ctx context.Context, id int) error
- func (c *Client) DisableRootMapping(ctx context.Context, name string) error
- func (c *Client) DisableRootMappingByID(ctx context.Context, id int) error
- func (c *Client) EnableFailureMapping(ctx context.Context, name, user string) error
- func (c *Client) EnableFailureMappingByID(ctx context.Context, id int, user string) error
- func (c *Client) EnableNonRootMapping(ctx context.Context, name, user string) error
- func (c *Client) EnableNonRootMappingByID(ctx context.Context, id int, user string) 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) ForceDeleteVolume(ctx context.Context, name string) 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) GetFailureMapping(ctx context.Context, name string) (UserMapping, error)
- func (c *Client) GetFailureMappingByID(ctx context.Context, id int) (UserMapping, error)
- func (c *Client) GetNonRootMapping(ctx context.Context, name string) (UserMapping, error)
- func (c *Client) GetNonRootMappingByID(ctx context.Context, id int) (UserMapping, 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) GetVolumeACL(ctx context.Context, volumeName string) (ACL, error)
- func (c *Client) GetVolumeExportMap(ctx context.Context, includeRootClients bool) (map[Volume]Export, 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) QueryVolumeChildren(ctx context.Context, name string) (VolumeChildrenMap, 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) SetVolumeOwner(ctx context.Context, volumeName, userName string) error
- func (c *Client) SetVolumeOwnerToCurrentUser(ctx context.Context, volumeName string) 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 VolumeChildren
- type VolumeChildrenMap
Constants ¶
This section is empty.
Variables ¶
var ConcurrentHTTPConnections = 2
ConcurrentHTTPConnections is the number of allowed concurrent HTTP connections for API functions that attempt to send multiple API calls at once.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an Isilon client.
func NewClientWithArgs ¶
func (*Client) AddExportClients ¶
AddExportClients adds to the Export's clients property.
func (*Client) AddExportClientsByID ¶
AddExportClientsByID adds to the Export's clients property.
func (*Client) AddExportRootClients ¶
AddExportRootClients adds to the Export's root_clients property.
func (*Client) AddExportRootClientsByID ¶
AddExportRootClientsByID adds to the Export's root_clients property.
func (*Client) ClearExportClients ¶
ClearExportClients sets the Export's clients property to nil.
func (*Client) ClearExportClientsByID ¶
ClearExportClientsByID sets the Export's clients property to nil.
func (*Client) ClearExportRootClients ¶
ClearExportRootClients sets the Export's root_clients property to nil.
func (*Client) ClearExportRootClientsByID ¶
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) CreateVolumeDir ¶
func (c *Client) CreateVolumeDir( ctx context.Context, volumeName, dirPath string, fileMode os.FileMode, overwrite, recursive bool) error
CreateVolumeDir creates a directory inside a volume.
func (*Client) DeleteVolume ¶
DeleteVolume deletes a volume
func (*Client) DisableFailureMapping ¶
DisableFailureMapping disables the map_failure mapping for an Export.
func (*Client) DisableFailureMappingByID ¶
DisableFailureMappingByID disables the map_failure mapping for an Export.
func (*Client) DisableNonRootMapping ¶
DisableNonRootMapping disables the map_non_root mapping for an Export.
func (*Client) DisableNonRootMappingByID ¶
DisableNonRootMappingByID disables the map_non_root mapping for an Export.
func (*Client) DisableRootMapping ¶
DisableRootMapping disables the root mapping for an Export.
func (*Client) DisableRootMappingByID ¶
DisableRootMappingbyID disables the root mapping for an Export.
func (*Client) EnableFailureMapping ¶
EnableFailureMapping enables the map_failure mapping for an Export.
func (*Client) EnableFailureMappingByID ¶
EnableFailureMappingByID enables the map_failure mapping for an Export.
func (*Client) EnableNonRootMapping ¶
EnableNonRootMapping enables the map_non_root mapping for an Export.
func (*Client) EnableNonRootMappingByID ¶
EnableNonRootMappingByID enables the map_non_root mapping for an Export.
func (*Client) EnableRootMapping ¶
EnableRootMapping enables the root mapping for an Export.
func (*Client) EnableRootMappingByID ¶
EnableRootMappingByID enables the root mapping for an Export.
func (*Client) ExportVolume ¶
ExportVolume exports a volume
func (*Client) ForceDeleteVolume ¶
ForceDeleteVolume force deletes a volume by resetting the ownership of all descendent directories to the current user prior to issuing a delete call.
func (*Client) GetExportByID ¶
GetExportByID returns an export with the provided ID.
func (*Client) GetExportByName ¶
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 ¶
GetExportClientsByID returns an Export's clients property.
func (*Client) GetExportRootClients ¶
GetExportRootClients returns an Export's root_clients property.
func (*Client) GetExportRootClientsByID ¶
GetExportRootClientsByID returns an Export's clients property.
func (*Client) GetExports ¶
func (c *Client) GetExports(ctx context.Context) (ExportList, error)
GetExports returns a list of all exports on the cluster
func (*Client) GetFailureMapping ¶
GetFailureMapping returns the map_failure mapping for an Export.
func (*Client) GetFailureMappingByID ¶
GetFailureMappingByID returns the map_failure mapping for an Export.
func (*Client) GetNonRootMapping ¶
GetNonRootMapping returns the map_non_root mapping for an Export.
func (*Client) GetNonRootMappingByID ¶
GetNonRootMappingByID returns the map_non_root mapping for an Export.
func (*Client) GetRootMapping ¶
GetRootMapping returns the root mapping for an Export.
func (*Client) GetRootMappingByID ¶
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) GetVolumeACL ¶
GetVolumeACL returns the ACL for a volume.
func (*Client) GetVolumeExportMap ¶
func (c *Client) GetVolumeExportMap( ctx context.Context, includeRootClients bool) (map[Volume]Export, error)
GetVolumeExportMap returns a map that relates Volumes to their corresponding Exports. This function uses an Export's "clients" property to define the relationship. The flag "includeRootClients" can be set to "true" in order to also inspect the "root_clients" property of an Export when determining the Volume-to-Export relationship.
func (*Client) GetVolumes ¶
GetVolumes returns a list of volumes
func (*Client) IsExported ¶
IsExported returns a flag and export ID if the provided volume name is already exported.
func (*Client) QueryVolumeChildren ¶
QueryVolumeChildren retrieves a list of all of a volume's descendent files and directories.
func (*Client) RemoveSnapshot ¶
func (*Client) SetExportClients ¶
SetExportClients sets the Export's clients property.
func (*Client) SetExportClientsByID ¶
SetExportClientsByID sets the Export's clients property.
func (*Client) SetExportRootClients ¶
SetExportRootClients sets the Export's root_clients property.
func (*Client) SetExportRootClientsByID ¶
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) SetVolumeOwner ¶
SetVolumeOwner sets the owner for a volume.
func (*Client) SetVolumeOwnerToCurrentUser ¶
SetVolumeOwnerToCurrentUser sets the owner for a volume to the user that was used to connect to the API.
func (*Client) UnexportByID ¶
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 ¶
type UserMapping *api.UserMapping
type VolumeChildren ¶
type VolumeChildren apiv2.ContainerChildList
type VolumeChildrenMap ¶
type VolumeChildrenMap map[string]*apiv2.ContainerChild