Documentation ¶
Overview ¶
Copyright (c) 2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2019-2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2019-2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2023 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2019 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2019-2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2022 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func FilterReports(values []apiv11.Report, filterFunc func(apiv11.Report) bool) []apiv11.Report
- type ACL
- type Client
- func (c *Client) AddExportClients(ctx context.Context, name string, clients ...string) error
- func (c *Client) AddExportClientsByExportID(ctx context.Context, id int, clients ...string) error
- func (c *Client) AddExportClientsByExportIDWithZone(ctx context.Context, id int, zone string, ignoreUnresolvableHosts bool, ...) error
- func (c *Client) AddExportClientsByID(ctx context.Context, id int, clients []string, ignoreUnresolvableHosts bool) error
- func (c *Client) AddExportClientsByIDWithZone(ctx context.Context, id int, zone string, clients []string, ...) error
- func (c *Client) AddExportReadOnlyClientsByID(ctx context.Context, id int, clients []string, ignoreUnresolvableHosts bool) error
- func (c *Client) AddExportReadOnlyClientsByIDWithZone(ctx context.Context, id int, zone string, clients []string, ...) error
- func (c *Client) AddExportReadWriteClientsByID(ctx context.Context, id int, clients []string, ignoreUnresolvableHosts bool) error
- func (c *Client) AddExportReadWriteClientsByIDWithZone(ctx context.Context, id int, zone string, 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) AddExportRootClientsByIDWithZone(ctx context.Context, id int, zone string, clients []string, ...) error
- func (c *Client) AddGroupMember(ctx context.Context, name *string, gid *int32, member api.IsiAuthMemberItem) error
- func (c *Client) AddRoleMember(ctx context.Context, roleID string, member api.IsiAuthMemberItem) error
- func (c *Client) AllowWrites(ctx context.Context, policyName string) error
- func (c *Client) BreakAssociation(ctx context.Context, targetPolicyName 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) ClearQuotaByID(ctx context.Context, id string) error
- func (c *Client) ClearQuotaByIDWithZone(ctx context.Context, id, zone string) error
- func (c *Client) ClearQuotaWithPath(ctx context.Context, path string) error
- func (c *Client) CopySnapshot(ctx context.Context, sourceID int64, ...) (Volume, error)
- func (c *Client) CopySnapshotWithIsiPath(ctx context.Context, isiPath, snapshotSourceVolumeIsiPath string, ...) (Volume, error)
- func (c *Client) CopyVolume(ctx context.Context, src, dest string) (Volume, error)
- func (c *Client) CopyVolumeWithIsiPath(ctx context.Context, isiPath, src, dest string) (Volume, error)
- func (c *Client) CreatGroupByName(ctx context.Context, name string) (string, error)
- func (c *Client) CreateExportWithStructParams(ctx context.Context, params apiv4.CreateV4NfsExportRequest) (*openapi.Createv3EventEventResponse, error)
- func (c *Client) CreateGroupWithOptions(ctx context.Context, name string, gid *int32, members []api.IsiAuthMemberItem, ...) (string, error)
- func (c *Client) CreatePolicy(ctx context.Context, name string, rpo int, sourcePath string, ...) error
- func (c *Client) CreateQuota(ctx context.Context, name string, container bool, ...) (string, error)
- func (c *Client) CreateQuotaWithPath(ctx context.Context, path string, container bool, ...) (string, error)
- func (c *Client) CreateSmbShareWithStructParams(ctx context.Context, params apiv12.CreateV12SmbShareRequest) (*openapi.Createv12SmbShareResponse, error)
- func (c *Client) CreateSnapshot(ctx context.Context, volName, snapshotName string) (Snapshot, error)
- func (c *Client) CreateSnapshotWithPath(ctx context.Context, path, snapshotName string) (Snapshot, error)
- func (c *Client) CreateUserByName(ctx context.Context, name string) (string, error)
- func (c *Client) CreateUserWithOptions(ctx context.Context, name string, uid *int32, queryForce *bool, ...) (string, 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) CreateVolumeNoACL(ctx context.Context, name string) (Volume, error)
- func (c *Client) CreateVolumeWithIsipath(ctx context.Context, isiPath, name, isiVolumePathPermissions string) (Volume, error)
- func (c *Client) CreateVolumeWithIsipathMetaData(ctx context.Context, isiPath, name, isiVolumePathPermissions string, ...) (Volume, error)
- func (c *Client) DeleteExportWithStructParams(ctx context.Context, params apiv4.DeleteV4NfsExportRequest) error
- func (c *Client) DeleteGroupByNameOrGID(ctx context.Context, name *string, gid *int32) error
- func (c *Client) DeletePolicy(ctx context.Context, name string) error
- func (c *Client) DeleteSmbShareWithStructParams(ctx context.Context, params apiv12.DeleteV12SmbShareRequest) error
- func (c *Client) DeleteTargetPolicy(ctx context.Context, id string) error
- func (c *Client) DeleteUserByNameOrUID(ctx context.Context, name *string, uid *int32) error
- func (c *Client) DeleteVolume(ctx context.Context, name string) error
- func (c *Client) DeleteVolumeWithIsiPath(ctx context.Context, isiPath, 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) DisablePolicy(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) DisallowWrites(ctx context.Context, policyName string) 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) EnablePolicy(ctx context.Context, name 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) ExportPathWithZone(ctx context.Context, path, zone, description string) (int, error)
- func (c *Client) ExportSnapshotWithZone(ctx context.Context, snapshotName, volumeName, zone, description string) (int, error)
- func (c *Client) ExportVolume(ctx context.Context, name string) (int, error)
- func (c *Client) ExportVolumeWithZone(ctx context.Context, name, zone, description string) (int, error)
- func (c *Client) ExportVolumeWithZoneAndPath(ctx context.Context, path, zone, description string) (int, error)
- func (c *Client) ExportWithZone(ctx context.Context, name, zone, description string) (int, error)
- func (c *Client) ExportWithZoneAndPath(ctx context.Context, path, zone, description string) (int, error)
- func (c *Client) ForceDeleteVolume(ctx context.Context, name string) error
- func (c *Client) GetAllGroups(ctx context.Context) (GroupList, error)
- func (c *Client) GetAllQuotas(ctx context.Context) (QuotaList, error)
- func (c *Client) GetAllRoles(ctx context.Context) (RoleList, error)
- func (c *Client) GetAllUsers(ctx context.Context) (UserList, error)
- func (c *Client) GetClusterAcs(ctx context.Context) (ClusterAcs, error)
- func (c *Client) GetClusterConfig(ctx context.Context) (ClusterConfig, error)
- func (c *Client) GetClusterIdentity(ctx context.Context) (ClusterIdentity, error)
- func (c *Client) GetClusterInternalNetworks(ctx context.Context) (ClusterInternalNetworks, error)
- func (c *Client) GetClusterNode(ctx context.Context, nodeID int) (ClusterNodes, error)
- func (c *Client) GetClusterNodes(ctx context.Context) (ClusterNodes, error)
- func (c *Client) GetExportByID(ctx context.Context, id int) (Export, error)
- func (c *Client) GetExportByIDWithZone(ctx context.Context, id int, zone string) (Export, error)
- func (c *Client) GetExportByName(ctx context.Context, name string) (Export, error)
- func (c *Client) GetExportByNameWithZone(ctx context.Context, name, zone 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) GetExportWithPath(ctx context.Context, path string) (Export, error)
- func (c *Client) GetExportWithPathAndZone(ctx context.Context, path, zone string) (Export, error)
- func (c *Client) GetExportWithStructParams(ctx context.Context, params apiv4.GetV2NfsExportRequest) (*openapi.V2NfsExportsExtended, error)
- func (c *Client) GetExports(ctx context.Context) (ExportList, error)
- func (c *Client) GetExportsWithLimit(ctx context.Context, limit string) (Exports, error)
- func (c *Client) GetExportsWithParams(ctx context.Context, params api.OrderedValues) (Exports, error)
- func (c *Client) GetExportsWithResume(ctx context.Context, resume string) (Exports, 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) GetFloatStatistics(ctx context.Context, keys []string) (FloatStats, error)
- func (c *Client) GetGroupByNameOrGID(ctx context.Context, name *string, gid *int32) (Group, error)
- func (c *Client) GetGroupMembers(ctx context.Context, name *string, gid *int32) (GroupMemberList, error)
- func (c *Client) GetGroupsWithFilter(ctx context.Context, ...) (GroupList, error)
- func (c *Client) GetIsiSnapshotByIdentity(ctx context.Context, identity string) (Snapshot, error)
- func (c *Client) GetJobsByPolicyName(ctx context.Context, policyName string) ([]apiv11.Job, error)
- func (c *Client) GetLocalSerial(ctx context.Context) (string, 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) GetPolicyByName(ctx context.Context, id string) (Policy, error)
- func (c *Client) GetQuota(ctx context.Context, name string) (Quota, error)
- func (c *Client) GetQuotaByID(ctx context.Context, ID string) (Quota, error)
- func (c *Client) GetQuotaWithPath(ctx context.Context, path string) (Quota, error)
- func (c *Client) GetQuotasWithResume(ctx context.Context, resume string) (QuotaResp, error)
- func (c *Client) GetReport(ctx context.Context, reportName string) (*apiv11.Report, error)
- func (c *Client) GetReportsByPolicyName(ctx context.Context, policyName string, reportsForPolicy int) (*apiv11.Reports, error)
- func (c *Client) GetRoleByID(ctx context.Context, id string) (Role, error)
- func (c *Client) GetRolesWithFilter(ctx context.Context, queryResolveNames *bool, queryLimit *int32) (RoleList, 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) GetSmbShareWithStructParams(ctx context.Context, params apiv12.GetV12SmbShareParams) (*openapi.V12SmbSharesExtended, error)
- func (c *Client) GetSnapshot(ctx context.Context, id int64, name string) (Snapshot, error)
- func (c *Client) GetSnapshotFolderSize(ctx context.Context, isiPath, name string, accessZone string) (int64, error)
- func (c *Client) GetSnapshotIsiPath(ctx context.Context, isiPath, snapshotID string, accessZone string) (string, error)
- func (c *Client) GetSnapshots(ctx context.Context) (SnapshotList, error)
- func (c *Client) GetSnapshotsByPath(ctx context.Context, path string) (SnapshotList, error)
- func (c *Client) GetStatistics(ctx context.Context, keys []string) (Stats, error)
- func (c *Client) GetTargetPolicyByName(ctx context.Context, id string) (TargetPolicy, error)
- func (c *Client) GetUserByNameOrUID(ctx context.Context, name *string, uid *int32) (User, error)
- func (c *Client) GetUsersWithFilter(ctx context.Context, ...) (UserList, 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) GetVolumeSize(ctx context.Context, isiPath, name string) (int64, error)
- func (c *Client) GetVolumeWithIsiPath(ctx context.Context, isiPath, id, name string) (Volume, error)
- func (c *Client) GetVolumes(ctx context.Context) ([]Volume, error)
- func (c *Client) GetZoneByName(ctx context.Context, name string) (*apiv1.IsiZone, error)
- func (c *Client) IsExported(ctx context.Context, name string) (bool, int, error)
- func (c *Client) IsExportedWithZone(ctx context.Context, name, zone string) (bool, int, error)
- func (c *Client) IsIOInProgress(ctx context.Context) (Clients, error)
- func (c *Client) IsQuotaLicenseActivated(ctx context.Context) (bool, error)
- func (c *Client) IsRoleMemberOf(ctx context.Context, roleID string, member api.IsiAuthMemberItem) (bool, error)
- func (c *Client) IsSnapshotExistent(ctx context.Context, identity string) bool
- func (c *Client) IsVolumeExistent(ctx context.Context, id, name string) bool
- func (c *Client) IsVolumeExistentWithIsiPath(ctx context.Context, isiPath, id, name string) bool
- func (c *Client) ListALlSmbSharesWithStructParams(ctx context.Context, params apiv12.ListV12SmbSharesParams) ([]openapi.V12SmbShareExtended, error)
- func (c *Client) ListAllExportsWithStructParams(ctx context.Context, params apiv4.ListV4NfsExportsParams) ([]openapi.V2NfsExportExtended, error)
- func (c *Client) ListExportsWithStructParams(ctx context.Context, params apiv4.ListV4NfsExportsParams) (*openapi.V2NfsExports, error)
- func (c *Client) ListSmbSharesWithStructParams(ctx context.Context, params apiv12.ListV12SmbSharesParams) (*openapi.V12SmbShares, error)
- func (c *Client) ModifyPolicy(ctx context.Context, name string, schedule string, rpo int) error
- func (c *Client) QueryVolumeChildren(ctx context.Context, name string) (VolumeChildrenMap, error)
- func (c *Client) RemoveExportClientsByID(ctx context.Context, id int, clientsToRemove []string, ...) error
- func (c *Client) RemoveExportClientsByIDWithZone(ctx context.Context, id int, zone string, clientsToRemove []string, ...) error
- func (c *Client) RemoveExportClientsByName(ctx context.Context, name string, clientsToRemove []string, ...) error
- func (c *Client) RemoveExportClientsWithPathAndZone(ctx context.Context, path, zone string, clientsToRemove []string, ...) error
- func (c *Client) RemoveGroupMember(ctx context.Context, name *string, gid *int32, member api.IsiAuthMemberItem) error
- func (c *Client) RemoveRoleMember(ctx context.Context, roleID string, member api.IsiAuthMemberItem) error
- func (c *Client) RemoveSnapshot(ctx context.Context, id int64, name string) error
- func (c *Client) ResetPolicy(ctx context.Context, name string) error
- func (c *Client) ResolvePolicy(ctx context.Context, name string) error
- func (c *Client) ResyncPrep(ctx context.Context, policyName string) error
- func (c *Client) RunActionForPolicy(ctx context.Context, policyName string, action apiv11.JOB_ACTION) (*apiv11.Job, 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) SetExportClientsByIDWithZone(ctx context.Context, id int, zone string, ignoreUnresolvableHosts bool, ...) 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) SetPolicyEnabledField(ctx context.Context, name string, value bool) error
- func (c *Client) SetQuotaSize(ctx context.Context, name string, ...) (string, error)
- func (c *Client) SetVolumeMode(ctx context.Context, volumeName string, mode int) 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) StartSyncIQJob(ctx context.Context, job *apiv11.JobRequest) (*apiv11.Job, error)
- func (c *Client) SyncPolicy(ctx context.Context, policyName 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) UnexportByIDWithZone(ctx context.Context, id int, zone string) error
- func (c *Client) UnexportVolume(ctx context.Context, name string) error
- func (c *Client) UnexportWithZone(ctx context.Context, name, zone string) error
- func (c *Client) UpdateExportWithStructParams(ctx context.Context, params apiv4.UpdateV4NfsExportRequest) error
- func (c *Client) UpdateIsiGroupGIDByNameOrUID(ctx context.Context, name *string, gid *int32, newGid int32, ...) error
- func (c *Client) UpdateQuotaSize(ctx context.Context, name string, ...) error
- func (c *Client) UpdateQuotaSizeByID(ctx context.Context, ID string, ...) error
- func (c *Client) UpdateSmbShareWithStructParams(ctx context.Context, params apiv12.UpdateV12SmbShareRequest) error
- func (c *Client) UpdateUserByNameOrUID(ctx context.Context, name *string, uid *int32, queryForce *bool, ...) error
- func (c *Client) WaitForNoActiveJobs(ctx context.Context, policyName string) error
- func (c *Client) WaitForPolicyEnabledFieldCondition(ctx context.Context, policyName string, enabled bool) error
- func (c *Client) WaitForPolicyLastJobState(ctx context.Context, policyName string, state apiv11.JOB_STATE) error
- func (c *Client) WaitForTargetPolicyCondition(ctx context.Context, policyName string, ...) error
- type Clients
- type ClusterAcs
- type ClusterConfig
- type ClusterIdentity
- type ClusterInternalNetworks
- type ClusterNodes
- type Export
- type ExportList
- type Exports
- type FloatStats
- type Group
- type GroupList
- type GroupMemberList
- type Policy
- type Quota
- type QuotaList
- type QuotaResp
- type Role
- type RoleList
- type Snapshot
- type SnapshotList
- type Stats
- type TargetPolicy
- type User
- type UserList
- type UserMapping
- type Volume
- type VolumeChildren
- type VolumeChildrenMap
Constants ¶
const ( RESYNC_PREP apiv11.JOB_ACTION = "resync_prep" ALLOW_WRITE apiv11.JOB_ACTION = "allow_write" ALLOW_WRITE_REVERT apiv11.JOB_ACTION = "allow_write_revert" TEST apiv11.JOB_ACTION = "test" SCHEDULED apiv11.JOB_STATE = "scheduled" RUNNING apiv11.JOB_STATE = "running" PAUSED apiv11.JOB_STATE = "paused" FINISHED apiv11.JOB_STATE = "finished" FAILED apiv11.JOB_STATE = "failed" CANCELED apiv11.JOB_STATE = "canceled" NEEDS_ATTENTION apiv11.JOB_STATE = "needs_attention" SKIPPED apiv11.JOB_STATE = "skipped" PENDING apiv11.JOB_STATE = "pending" UNKNOWN apiv11.JOB_STATE = "unknown" WRITES_DISABLED apiv11.FAILOVER_FAILBACK_STATE = "writes_disabled" ENABLING_WRITES apiv11.FAILOVER_FAILBACK_STATE = "enabling_writes" WRITES_ENABLED apiv11.FAILOVER_FAILBACK_STATE = "writes_enabled" DISABLING_WRITES apiv11.FAILOVER_FAILBACK_STATE = "disabling_writes" CREATING_RESYNC_POLICY apiv11.FAILOVER_FAILBACK_STATE = "creating_resync_policy" RESYNC_POLICY_CREATED apiv11.FAILOVER_FAILBACK_STATE = "resync_policy_created" )
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 ¶
Types ¶
type Client ¶
Client is an Isilon client.
func NewClientWithArgs ¶
func NewClientWithArgs( ctx context.Context, endpoint string, insecure bool, verboseLogging uint, user, group, pass, volumesPath string, volumesPathPermissions string, ignoreUnresolvableHosts bool, authType uint8, ) (*Client, error)
NewClientWithArgs returns a new Isilon client struct initialized from the supplied arguments.
func (*Client) AddExportClients ¶
AddExportClients adds to the Export's clients property.
func (*Client) AddExportClientsByExportID ¶
func (c *Client) AddExportClientsByExportID( ctx context.Context, id int, clients ...string, ) error
AddExportClientsByExportID adds to the Export's clients property.
func (*Client) AddExportClientsByExportIDWithZone ¶
func (c *Client) AddExportClientsByExportIDWithZone( ctx context.Context, id int, zone string, ignoreUnresolvableHosts bool, clients ...string, ) error
AddExportClientsByExportIDWithZone adds to the Export's clients with access zone property.
func (*Client) AddExportClientsByID ¶
func (c *Client) AddExportClientsByID( ctx context.Context, id int, clients []string, ignoreUnresolvableHosts bool, ) error
AddExportClientsByID adds to the Export's clients property.
func (*Client) AddExportClientsByIDWithZone ¶
func (c *Client) AddExportClientsByIDWithZone( ctx context.Context, id int, zone string, clients []string, ignoreUnresolvableHosts bool, ) error
AddExportClientsByIDWithZone adds to the Export's clients property.
func (*Client) AddExportReadOnlyClientsByID ¶
func (c *Client) AddExportReadOnlyClientsByID( ctx context.Context, id int, clients []string, ignoreUnresolvableHosts bool, ) error
AddExportReadOnlyClientsByID adds to the Export's read-only clients property.
func (*Client) AddExportReadOnlyClientsByIDWithZone ¶
func (c *Client) AddExportReadOnlyClientsByIDWithZone( ctx context.Context, id int, zone string, clients []string, ignoreUnresolvableHosts bool, ) error
AddExportReadOnlyClientsByIDWithZone adds to the Export's read-only clients property.
func (*Client) AddExportReadWriteClientsByID ¶
func (c *Client) AddExportReadWriteClientsByID( ctx context.Context, id int, clients []string, ignoreUnresolvableHosts bool, ) error
AddExportReadWriteClientsByID adds to the Export's read-write clients property.
func (*Client) AddExportReadWriteClientsByIDWithZone ¶
func (c *Client) AddExportReadWriteClientsByIDWithZone( ctx context.Context, id int, zone string, clients []string, ignoreUnresolvableHosts bool, ) error
AddExportReadWriteClientsByIDWithZone adds to the Export's read-write 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) AddExportRootClientsByIDWithZone ¶ added in v1.1.0
func (c *Client) AddExportRootClientsByIDWithZone( ctx context.Context, id int, zone string, clients []string, ignoreUnresolvableHosts bool, ) error
AddExportRootClientsByIDWithZone adds to the Export's clients property.
func (*Client) AddGroupMember ¶ added in v1.14.0
func (c *Client) AddGroupMember(ctx context.Context, name *string, gid *int32, member api.IsiAuthMemberItem) error
AddGroupMember adds a member to a specific group, Required: groupName/gid, member, member can be a user or group.
func (*Client) AddRoleMember ¶ added in v1.14.0
func (c *Client) AddRoleMember(ctx context.Context, roleID string, member api.IsiAuthMemberItem) error
AddRoleMember adds a member to a specific role, Required: roleId, memberType, and memberName/memberId memberType can be user/group.
func (*Client) AllowWrites ¶ added in v1.7.0
func (*Client) BreakAssociation ¶ added in v1.7.0
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) ClearQuotaByID ¶
ClearQuotaByID removes the quota from a volume by quota id
func (*Client) ClearQuotaByIDWithZone ¶
ClearQuotaByIDWithZone removes the quota from a volume by quota id with access zone
func (*Client) ClearQuotaWithPath ¶
ClearQuotaWithPath removes the quota from a volume with IsiPath as a parameter
func (*Client) CopySnapshot ¶
func (c *Client) CopySnapshot( ctx context.Context, sourceID int64, sourceName, accessZone, destinationName string, ) (Volume, error)
CopySnapshot copies all files/directories in a snapshot to a new directory.
func (*Client) CopySnapshotWithIsiPath ¶
func (c *Client) CopySnapshotWithIsiPath( ctx context.Context, isiPath, snapshotSourceVolumeIsiPath string, sourceID int64, sourceName, destinationName string, accessZone string, ) (Volume, error)
CopySnapshotWithIsiPath copies all files/directories in a snapshot with isiPath to a new directory.
func (*Client) CopyVolume ¶
CopyVolume creates a volume based on an existing volume
func (*Client) CopyVolumeWithIsiPath ¶
func (c *Client) CopyVolumeWithIsiPath( ctx context.Context, isiPath, src, dest string, ) (Volume, error)
CopyVolumeWithIsiPath creates a volume based on an existing volume
func (*Client) CreatGroupByName ¶ added in v1.14.0
CreatGroupByName creates a new group with name.
func (*Client) CreateExportWithStructParams ¶ added in v1.14.0
func (c *Client) CreateExportWithStructParams(ctx context.Context, params apiv4.CreateV4NfsExportRequest) (*openapi.Createv3EventEventResponse, error)
CreateExportWithStructParams create export with parameters
func (*Client) CreateGroupWithOptions ¶ added in v1.14.0
func (c *Client) CreateGroupWithOptions( ctx context.Context, name string, gid *int32, members []api.IsiAuthMemberItem, queryForce *bool, queryZone, queryProvider *string, ) (string, error)
CreateGroupWithOptions creates a new group with name(required), gid(optional), and members(optional), Optional filter: force, zone and provider.
func (*Client) CreatePolicy ¶ added in v1.7.0
func (*Client) CreateQuota ¶
func (c *Client) CreateQuota( ctx context.Context, name string, container bool, size, softLimit, advisoryLimit, softGracePrd int64, ) (string, error)
CreateQuota creates a new hard directory quota with the specified size and container option
func (*Client) CreateQuotaWithPath ¶
func (c *Client) CreateQuotaWithPath( ctx context.Context, path string, container bool, size, softLimit, advisoryLimit, softGracePrd int64, ) (string, error)
CreateQuotaWithPath creates a new hard directory quota with the specified size and container option
func (*Client) CreateSmbShareWithStructParams ¶ added in v1.14.0
func (c *Client) CreateSmbShareWithStructParams(ctx context.Context, params apiv12.CreateV12SmbShareRequest) (*openapi.Createv12SmbShareResponse, error)
CreateSmbShareWithStructParams creates a smb share with params
func (*Client) CreateSnapshot ¶
func (c *Client) CreateSnapshot( ctx context.Context, volName, snapshotName string, ) (Snapshot, error)
CreateSnapshot creates a snapshot called name of the given path.
func (*Client) CreateSnapshotWithPath ¶
func (c *Client) CreateSnapshotWithPath( ctx context.Context, path, snapshotName string, ) (Snapshot, error)
CreateSnapshotWithPath creates a snapshot by snapshot name and the path of volume.
func (*Client) CreateUserByName ¶ added in v1.14.0
CreateUserByName creates a new user with name.
func (*Client) CreateUserWithOptions ¶ added in v1.14.0
func (c *Client) CreateUserWithOptions( ctx context.Context, name string, uid *int32, queryForce *bool, queryZone, queryProvider *string, email, homeDirectory, password, fullName, shell, primaryGroupName *string, primaryGroupId, expiry *int32, enabled, passwordExpires, promptPasswordChange, unlock *bool, ) (string, error)
CreateUserWithOptions creates a new user with name(required) and Uid (Optional), Optional filter: force, zone and provider, Optional configuration: email, homeDirectory, password, primaryGroupName, fullName, shell ,uid, primaryGroupId, expiry, enabled, passwordExpires, promptPasswordChange and unlock.
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) CreateVolumeNoACL ¶
CreateVolumeNoACL creates a volume without setting ACL
func (*Client) CreateVolumeWithIsipath ¶
func (c *Client) CreateVolumeWithIsipath( ctx context.Context, isiPath, name, isiVolumePathPermissions string, ) (Volume, error)
CreateVolumeWithIsipath creates a volume with isiPath
func (*Client) CreateVolumeWithIsipathMetaData ¶ added in v1.4.0
func (c *Client) CreateVolumeWithIsipathMetaData( ctx context.Context, isiPath, name, isiVolumePathPermissions string, metadata map[string]string, ) (Volume, error)
CreateVolumeWithIsipathMetaData creates a volume with isiPath
func (*Client) DeleteExportWithStructParams ¶ added in v1.14.0
func (c *Client) DeleteExportWithStructParams(ctx context.Context, params apiv4.DeleteV4NfsExportRequest) error
DeleteExportWithStructParams delete export with parameters
func (*Client) DeleteGroupByNameOrGID ¶ added in v1.14.0
DeleteGroupByNameOrGID deletes a specific group by group name or gid.
func (*Client) DeletePolicy ¶ added in v1.7.0
func (*Client) DeleteSmbShareWithStructParams ¶ added in v1.14.0
func (c *Client) DeleteSmbShareWithStructParams(ctx context.Context, params apiv12.DeleteV12SmbShareRequest) error
DeleteSmbShareWithStructParams delete a specific smb share with params6570
func (*Client) DeleteTargetPolicy ¶ added in v1.7.0
func (*Client) DeleteUserByNameOrUID ¶ added in v1.14.0
DeleteUserByNameOrUID deletes a specific user by user name or uid.
func (*Client) DeleteVolume ¶
DeleteVolume deletes a volume
func (*Client) DeleteVolumeWithIsiPath ¶
DeleteVolumeWithIsiPath deletes a volume with isiPath
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) DisablePolicy ¶ added in v1.7.0
func (*Client) DisableRootMapping ¶
DisableRootMapping disables the root mapping for an Export.
func (*Client) DisableRootMappingByID ¶
DisableRootMappingByID disables the root mapping for an Export.
func (*Client) DisallowWrites ¶ added in v1.7.0
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) EnablePolicy ¶ added in v1.7.0
func (*Client) EnableRootMapping ¶
EnableRootMapping enables the root mapping for an Export.
func (*Client) EnableRootMappingByID ¶
EnableRootMappingByID enables the root mapping for an Export.
func (*Client) ExportPathWithZone ¶
func (c *Client) ExportPathWithZone(ctx context.Context, path, zone, description string) (int, error)
ExportPathWithZone exports the given path and zone on the cluster
func (*Client) ExportSnapshotWithZone ¶
func (c *Client) ExportSnapshotWithZone(ctx context.Context, snapshotName, volumeName, zone, description string) (int, error)
ExportSnapshotWithZone exports the given snapshot and zone on the cluster
func (*Client) ExportVolume ¶
ExportVolume exports a volume
func (*Client) ExportVolumeWithZone ¶
func (c *Client) ExportVolumeWithZone( ctx context.Context, name, zone, description string, ) (int, error)
ExportVolumeWithZone exports a volume in the specified access zone
func (*Client) ExportVolumeWithZoneAndPath ¶
func (c *Client) ExportVolumeWithZoneAndPath( ctx context.Context, path, zone, description string, ) (int, error)
ExportVolumeWithZoneAndPath exports a volume in the specified access zone and path
func (*Client) ExportWithZone ¶
ExportWithZone exports the volume with a given name and zone on the cluster
func (*Client) ExportWithZoneAndPath ¶
func (c *Client) ExportWithZoneAndPath(ctx context.Context, path, zone, description string) (int, error)
ExportWithZoneAndPath exports the volume with a given name, zone and path on the cluster
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) GetAllGroups ¶ added in v1.14.0
GetAllGroups returns all groups on the cluster.
func (*Client) GetAllQuotas ¶ added in v1.9.0
GetAllQuotas returns all quotas on the cluster
func (*Client) GetAllRoles ¶ added in v1.14.0
GetAllRoles returns all roles on the cluster.
func (*Client) GetAllUsers ¶ added in v1.14.0
GetAllUsers returns all users on the cluster
func (*Client) GetClusterAcs ¶ added in v1.14.0
func (c *Client) GetClusterAcs(ctx context.Context) (ClusterAcs, error)
GetClusterAcs returns the ACS status
func (*Client) GetClusterConfig ¶
func (c *Client) GetClusterConfig(ctx context.Context) (ClusterConfig, error)
GetClusterConfig returns information about the configuration of cluster
func (*Client) GetClusterIdentity ¶ added in v1.14.0
func (c *Client) GetClusterIdentity(ctx context.Context) (ClusterIdentity, error)
GetClusterIdentity returns the login information
func (*Client) GetClusterInternalNetworks ¶ added in v1.14.0
func (c *Client) GetClusterInternalNetworks(ctx context.Context) (ClusterInternalNetworks, error)
GetClusterInternalNetworks internal networks settings
func (*Client) GetClusterNode ¶ added in v1.14.0
GetClusterNode retrieves one node on this cluster
func (*Client) GetClusterNodes ¶ added in v1.14.0
func (c *Client) GetClusterNodes(ctx context.Context) (ClusterNodes, error)
GetClusterNodes list the nodes on this cluster
func (*Client) GetExportByID ¶
GetExportByID returns an export with the provided ID.
func (*Client) GetExportByIDWithZone ¶
GetExportByIDWithZone gets the export by export id and access zone
func (*Client) GetExportByName ¶
GetExportByName returns the first export with a path for the provided volume name.
func (*Client) GetExportByNameWithZone ¶
GetExportByNameWithZone returns the first export with a path for the provided volume name in the given zone.
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) GetExportWithPath ¶
GetExportWithPath gets the export with target path
func (*Client) GetExportWithPathAndZone ¶
func (c *Client) GetExportWithPathAndZone( ctx context.Context, path, zone string, ) (Export, error)
GetExportWithPathAndZone gets the export with target path and access zone
func (*Client) GetExportWithStructParams ¶ added in v1.14.0
func (c *Client) GetExportWithStructParams(ctx context.Context, params apiv4.GetV2NfsExportRequest) (*openapi.V2NfsExportsExtended, error)
GetExportWithStructParams list specific export with parameters
func (*Client) GetExports ¶
func (c *Client) GetExports(ctx context.Context) (ExportList, error)
GetExports returns a list of all exports on the cluster
func (*Client) GetExportsWithLimit ¶
GetExportsWithLimit returns a number of exports in the default sequence and the number is the parameter limit.
func (*Client) GetExportsWithParams ¶
func (c *Client) GetExportsWithParams( ctx context.Context, params api.OrderedValues, ) (Exports, error)
GetExportsWithParams returns exports based on the parameters
func (*Client) GetExportsWithResume ¶
GetExportsWithResume returns the next page of exports based on the resume token from the previous call.
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) GetFloatStatistics ¶ added in v1.9.0
GetFloatStatistics returns float statistics from Isilon. Keys indicate type of statistics expected
func (*Client) GetGroupByNameOrGID ¶ added in v1.14.0
GetGroupByNameOrGID returns a specific group by group name or gid.
func (*Client) GetGroupMembers ¶ added in v1.14.0
func (c *Client) GetGroupMembers(ctx context.Context, name *string, gid *int32) (GroupMemberList, error)
GetGroupMembers retrieves the members of a group by name or gid.
func (*Client) GetGroupsWithFilter ¶ added in v1.14.0
func (c *Client) GetGroupsWithFilter(ctx context.Context, queryNamePrefix, queryDomain, queryZone, queryProvider *string, queryCached, queryResolveNames, queryMemberOf *bool, queryLimit *int32, ) (GroupList, error)
GetGroupsWithFilter returns groups on the cluster with Optional filter: namePrefix, domain, zone, provider, cached, resolveNames, memberOf, zone and limit.
func (*Client) GetIsiSnapshotByIdentity ¶
func (c *Client) GetIsiSnapshotByIdentity( ctx context.Context, identity string, ) (Snapshot, error)
GetIsiSnapshotByIdentity query a snapshot by ID or name param identity string: name or id
func (*Client) GetJobsByPolicyName ¶ added in v1.7.0
func (*Client) GetLocalSerial ¶
GetLocalSerial returns the local serial which is the serial number of cluster
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) GetPolicyByName ¶ added in v1.7.0
GetPolicyByName returns a policy with the provided ID.
func (*Client) GetQuotaByID ¶ added in v1.2.0
GetQuotaByID returns a specific quota by ID
func (*Client) GetQuotaWithPath ¶
GetQuotaWithPath returns a specific quota by path
func (*Client) GetQuotasWithResume ¶ added in v1.9.0
GetQuotasWithResume returns a list of quota with resume field
func (*Client) GetReportsByPolicyName ¶ added in v1.7.0
func (*Client) GetRoleByID ¶ added in v1.14.0
GetRoleByID returns a specific role by role id.
func (*Client) GetRolesWithFilter ¶ added in v1.14.0
func (c *Client) GetRolesWithFilter(ctx context.Context, queryResolveNames *bool, queryLimit *int32) (RoleList, error)
GetRolesWithFilter returns roles on the cluster with Optional filter: resolveNames or limit.
func (*Client) GetRootMapping ¶
GetRootMapping returns the root mapping for an Export.
func (*Client) GetRootMappingByID ¶
GetRootMappingByID returns the root mapping for an Export.
func (*Client) GetSmbShareWithStructParams ¶ added in v1.14.0
func (c *Client) GetSmbShareWithStructParams(ctx context.Context, params apiv12.GetV12SmbShareParams) (*openapi.V12SmbSharesExtended, error)
GetSmbShareWithStructParams return the specific smb share with params
func (*Client) GetSnapshot ¶
GetSnapshot returns a snapshot matching id, or if that is not found, matching name
func (*Client) GetSnapshotFolderSize ¶
func (c *Client) GetSnapshotFolderSize(ctx context.Context, isiPath, name string, accessZone string, ) (int64, error)
GetSnapshotFolderSize returns the total size of a snapshot folder
func (*Client) GetSnapshotIsiPath ¶ added in v1.3.0
func (c *Client) GetSnapshotIsiPath( ctx context.Context, isiPath, snapshotID string, accessZone string, ) (string, error)
GetSnapshotIsiPath returns the snapshot directory path
func (*Client) GetSnapshots ¶
func (c *Client) GetSnapshots(ctx context.Context) (SnapshotList, error)
GetSnapshots returns a list of snapshots from the cluster.
func (*Client) GetSnapshotsByPath ¶
GetSnapshotsByPath returns a list of snapshots covering the supplied path.
func (*Client) GetStatistics ¶
GetStatistics returns statistics from Isilon. Keys indicate type of statistics expected
func (*Client) GetTargetPolicyByName ¶ added in v1.7.0
func (*Client) GetUserByNameOrUID ¶ added in v1.14.0
GetUserByNameOrUID returns a specific user by user name or uid.
func (*Client) GetUsersWithFilter ¶ added in v1.14.0
func (c *Client) GetUsersWithFilter(ctx context.Context, queryNamePrefix, queryDomain, queryZone, queryProvider *string, queryCached, queryResolveNames, queryMemberOf *bool, queryLimit *int32, ) (UserList, error)
GetUsersWithFilter returns users on the cluster with Optional filter: namePrefix, domain, zone, provider, cached, resolveNames, memberOf, zone and limit.
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) GetVolumeSize ¶
GetVolumeSize returns the total size of a snapshot folder
func (*Client) GetVolumeWithIsiPath ¶
func (c *Client) GetVolumeWithIsiPath( ctx context.Context, isiPath, id, name string, ) (Volume, error)
GetVolumeWithIsiPath returns a specific volume by name or ID with isiPath
func (*Client) GetVolumes ¶
GetVolumes returns a list of volumes
func (*Client) GetZoneByName ¶
GetZoneByName returns a specific access zone which matched the name
func (*Client) IsExported ¶
IsExported returns a flag and export ID if the provided volume name is already exported.
func (*Client) IsExportedWithZone ¶
IsExportedWithZone returns a flag and export ID if the provided volume name in the specified zone isalready exported.
func (*Client) IsIOInProgress ¶ added in v1.8.0
IsIOinProgress checks whether a volume on a node has IO in progress
func (*Client) IsQuotaLicenseActivated ¶
IsQuotaLicenseActivated checks if SmartQuotas has been activated (either licensed or in evaluation)
func (*Client) IsRoleMemberOf ¶ added in v1.14.0
func (c *Client) IsRoleMemberOf(ctx context.Context, roleID string, member api.IsiAuthMemberItem) (bool, error)
IsMemberOf checks if the Uer/Group is member of role.
func (*Client) IsSnapshotExistent ¶
IsSnapshotExistent checks if a snapshot already exists param identity string: name or id
func (*Client) IsVolumeExistent ¶
IsVolumeExistent checks whether a volume already exists
func (*Client) IsVolumeExistentWithIsiPath ¶
IsVolumeExistentWithIsiPath checks whether a volume already exists with isiPath
func (*Client) ListALlSmbSharesWithStructParams ¶ added in v1.14.0
func (c *Client) ListALlSmbSharesWithStructParams(ctx context.Context, params apiv12.ListV12SmbSharesParams) ([]openapi.V12SmbShareExtended, error)
ListALlSmbSharesWithStructParams returns all the smb shares with params
func (*Client) ListAllExportsWithStructParams ¶ added in v1.14.0
func (c *Client) ListAllExportsWithStructParams(ctx context.Context, params apiv4.ListV4NfsExportsParams) ([]openapi.V2NfsExportExtended, error)
ListAllExportsWithStructParams lists all the exports with parameters
func (*Client) ListExportsWithStructParams ¶ added in v1.14.0
func (c *Client) ListExportsWithStructParams(ctx context.Context, params apiv4.ListV4NfsExportsParams) (*openapi.V2NfsExports, error)
ListExportsWithStructParams lists all the exports with parameters
func (*Client) ListSmbSharesWithStructParams ¶ added in v1.14.0
func (c *Client) ListSmbSharesWithStructParams(ctx context.Context, params apiv12.ListV12SmbSharesParams) (*openapi.V12SmbShares, error)
ListSmbSharesWithStructParams returns the smb shares with params
func (*Client) ModifyPolicy ¶ added in v1.11.0
Modifies the policy schedule and job delay. scdeule - can be either empty string (manual) or when-source-modified rpo - can be 0 (manual) or in seconds (when-source-modified)
func (*Client) QueryVolumeChildren ¶
func (c *Client) QueryVolumeChildren( ctx context.Context, name string, ) (VolumeChildrenMap, error)
QueryVolumeChildren retrieves a list of all of a volume's descendent files and directories.
func (*Client) RemoveExportClientsByID ¶
func (c *Client) RemoveExportClientsByID( ctx context.Context, id int, clientsToRemove []string, ignoreUnresolvableHosts bool, ) error
RemoveExportClientsByID removes the given clients from the Export's clients/read_only_clients/read_write_clients properties.
func (*Client) RemoveExportClientsByIDWithZone ¶
func (c *Client) RemoveExportClientsByIDWithZone( ctx context.Context, id int, zone string, clientsToRemove []string, ignoreUnresolvableHosts bool, ) error
RemoveExportClientsByIDWithZone removes the given clients from the Export's clients/read_only_clients/read_write_clients properties in a specified access zone.
func (*Client) RemoveExportClientsByName ¶
func (c *Client) RemoveExportClientsByName( ctx context.Context, name string, clientsToRemove []string, ignoreUnresolvableHosts bool, ) error
RemoveExportClientsByName removes the given clients from the Export's clients/read_only_clients/read_write_clients properties.
func (*Client) RemoveExportClientsWithPathAndZone ¶
func (c *Client) RemoveExportClientsWithPathAndZone( ctx context.Context, path, zone string, clientsToRemove []string, ignoreUnresolvableHosts bool, ) error
RemoveExportClientsWithPathAndZone removes the given clients from the Export's clients/read_only_clients/read_write_clients/root_clients properties with export path and access zone.
func (*Client) RemoveGroupMember ¶ added in v1.14.0
func (c *Client) RemoveGroupMember(ctx context.Context, name *string, gid *int32, member api.IsiAuthMemberItem) error
RemoveGroupMember removes a member from a specific group, Required: groupName/gid, member, member can be a user or group.
func (*Client) RemoveRoleMember ¶ added in v1.14.0
func (c *Client) RemoveRoleMember(ctx context.Context, roleID string, member api.IsiAuthMemberItem) error
AddRoleMember removes a member from a specific role, Required: roleId, memberType, and memberName/memberId memberType can be user/group.
func (*Client) RemoveSnapshot ¶
RemoveSnapshot removes the snapshot by id, or failing that, the snapshot matching name.
func (*Client) ResetPolicy ¶ added in v1.7.0
func (*Client) ResolvePolicy ¶ added in v1.11.1
Resolves the policy that is in error state due to QuotaScan requirement.
func (*Client) ResyncPrep ¶ added in v1.7.0
func (*Client) RunActionForPolicy ¶ added in v1.7.0
func (*Client) SetExportClients ¶
SetExportClients sets the Export's clients property.
func (*Client) SetExportClientsByID ¶
SetExportClientsByID sets the Export's clients property.
func (*Client) SetExportClientsByIDWithZone ¶
func (c *Client) SetExportClientsByIDWithZone( ctx context.Context, id int, zone string, ignoreUnresolvableHosts bool, clients ...string, ) error
SetExportClientsByIDWithZone sets the Export's clients with access zone property.
func (*Client) SetExportRootClients ¶
SetExportRootClients sets the Export's root_clients property.
func (*Client) SetExportRootClientsByID ¶
SetExportRootClientsByID sets the Export's clients property.
func (*Client) SetPolicyEnabledField ¶ added in v1.7.0
func (*Client) SetQuotaSize ¶
func (c *Client) SetQuotaSize( ctx context.Context, name string, size, softLimit, advisoryLimit, softGracePrd int64, ) (string, error)
SetQuotaSize sets the max size (hard threshold) of a quota for a volume
func (*Client) SetVolumeMode ¶
SetVolumeMode sets the permissions to the specified mode (chmod)
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) StartSyncIQJob ¶ added in v1.7.0
func (*Client) SyncPolicy ¶ added in v1.7.0
func (*Client) UnexportByID ¶
UnexportByID unexports an Export by its ID.
func (*Client) UnexportByIDWithZone ¶
UnexportByIDWithZone unexports an Export by its ID and zone.
func (*Client) UnexportVolume ¶
UnexportVolume stops exporting a volume
func (*Client) UnexportWithZone ¶
UnexportWithZone stops exporting a given volume in the given from the cluster.
func (*Client) UpdateExportWithStructParams ¶ added in v1.14.0
func (c *Client) UpdateExportWithStructParams(ctx context.Context, params apiv4.UpdateV4NfsExportRequest) error
UpdateExportWithStructParams update export with parameters
func (*Client) UpdateIsiGroupGIDByNameOrUID ¶ added in v1.14.0
func (c *Client) UpdateIsiGroupGIDByNameOrUID( ctx context.Context, name *string, gid *int32, newGid int32, queryZone, queryProvider *string, ) error
UpdateIsiGroupGIDByNameOrUID modifies a specific group's gid by group name or gid with Required: newGid, Optional filter: zone and provider.
func (*Client) UpdateQuotaSize ¶
func (c *Client) UpdateQuotaSize( ctx context.Context, name string, size, softLimit, advisoryLimit, softGracePrd int64, ) error
UpdateQuotaSize modifies the max size (hard threshold) of a quota for a volume
func (*Client) UpdateQuotaSizeByID ¶ added in v1.2.0
func (c *Client) UpdateQuotaSizeByID( ctx context.Context, ID string, size, softLimit, advisoryLimit, softGracePrd int64, ) error
UpdateQuotaSizeByID modifies the max size (hard threshold) of a quota for a volume
func (*Client) UpdateSmbShareWithStructParams ¶ added in v1.14.0
func (c *Client) UpdateSmbShareWithStructParams(ctx context.Context, params apiv12.UpdateV12SmbShareRequest) error
UpdateSmbShareWithStructParams updates a smb share with params
func (*Client) UpdateUserByNameOrUID ¶ added in v1.14.0
func (c *Client) UpdateUserByNameOrUID( ctx context.Context, name *string, uid *int32, queryForce *bool, queryZone, queryProvider *string, email, homeDirectory, password, fullName, shell, primaryGroupName *string, newUid, primaryGroupId, expiry *int32, enabled, passwordExpires, promptPasswordChange, unlock *bool, ) error
UpdateUserByName modifies a specific user by user name or uid with Optional filter: force, zone and provider, Optional configuration: email, homeDirectory, password, primaryGroupName, fullName, shell newUid, primaryGroupId, expiry, enabled, passwordExpires, promptPasswordChange and unlock.
func (*Client) WaitForNoActiveJobs ¶ added in v1.7.0
func (*Client) WaitForPolicyEnabledFieldCondition ¶ added in v1.7.0
func (*Client) WaitForPolicyLastJobState ¶ added in v1.7.0
func (*Client) WaitForTargetPolicyCondition ¶ added in v1.7.0
type Clients ¶ added in v1.8.0
type Clients *apiv3.ExportClientList
Stats is Isilon statistics data structure .
type ClusterAcs ¶ added in v1.14.0
type ClusterAcs *apiv14.IsiClusterAcs
ClusterConfig represents the configuration of cluster in k8s (namespace API).
type ClusterConfig ¶
type ClusterConfig *apiv3.IsiClusterConfig
ClusterConfig represents the configuration of cluster in k8s (namespace API).
type ClusterIdentity ¶ added in v1.14.0
type ClusterIdentity *apiv3.IsiClusterIdentity
ClusterConfig represents the configuration of cluster in k8s (namespace API).
type ClusterInternalNetworks ¶ added in v1.14.0
type ClusterInternalNetworks *apiv7.IsiClusterInternalNetworks
ClusterConfig represents the configuration of cluster in k8s (namespace API).
type ClusterNodes ¶ added in v1.14.0
type ClusterNodes *apiv3.IsiClusterNodes
ClusterConfig represents the configuration of cluster in k8s (namespace API).
type FloatStats ¶ added in v1.9.0
type FloatStats *apiv3.IsiFloatStatsResp
Stats is Isilon statistics data structure .
type GroupMemberList ¶ added in v1.14.0
type GroupMemberList []*api.IsiAccessItemFileGroup
GroupMemberList maps to a set of group members.
type QuotaResp ¶ added in v1.9.0
type QuotaResp *api.IsiQuotaListRespResume
QuotaResp returns a quota response with resume field
type SnapshotList ¶
type SnapshotList []*api.IsiSnapshot
SnapshotList represents a list of Isilon snapshots.
type TargetPolicy ¶ added in v1.7.0
type TargetPolicy *apiv11.TargetPolicy
type UserMapping ¶
type UserMapping *apiv2.UserMapping
UserMapping maps to the ISI <user-mapping> type.
type VolumeChildren ¶
type VolumeChildren apiv2.ContainerChildList
VolumeChildren is a list of a container's children.
type VolumeChildrenMap ¶
type VolumeChildrenMap map[string]*apiv2.ContainerChild
VolumeChildrenMap returns a map of all descendent children of a container, where the key is the path.