Documentation ¶
Index ¶
- func GetNefErrorCode(err error) string
- func IsAlreadyExistNefError(err error) bool
- func IsAuthNefError(err error) bool
- func IsBadArgNefError(err error) bool
- func IsBusyNefError(err error) bool
- func IsNefError(err error) bool
- func IsNotExistNefError(err error) bool
- type ACLRuleSet
- type CloneSnapshotParams
- type CreateFilesystemParams
- type CreateHostGroupParams
- type CreateISCSITargetParams
- type CreateLunMappingParams
- type CreateNfsShareParams
- type CreateRemoteInitiatorParams
- type CreateSmbShareParams
- type CreateSnapshotParams
- type CreateTargetGroupParams
- type CreateVolumeParams
- type DestroyFilesystemParams
- type DestroyVolumeParams
- type Filesystem
- type GetLunMappingsParams
- type ISCSITarget
- type License
- type LunMapping
- type NefError
- type NfsRuleList
- type Pool
- type Portal
- type Provider
- func (p *Provider) CloneSnapshot(path string, params CloneSnapshotParams) error
- func (p *Provider) CreateFilesystem(params CreateFilesystemParams) error
- func (p *Provider) CreateHostGroup(params CreateHostGroupParams) error
- func (p *Provider) CreateISCSITarget(params CreateISCSITargetParams) error
- func (p *Provider) CreateLunMapping(params CreateLunMappingParams) error
- func (p *Provider) CreateNfsShare(params CreateNfsShareParams) error
- func (p *Provider) CreateRemoteInitiator(params CreateRemoteInitiatorParams) error
- func (p *Provider) CreateSmbShare(params CreateSmbShareParams) error
- func (p *Provider) CreateSnapshot(params CreateSnapshotParams) error
- func (p *Provider) CreateUpdateTargetGroup(params CreateTargetGroupParams) error
- func (p *Provider) CreateVolume(params CreateVolumeParams) error
- func (p *Provider) DeleteNfsShare(path string) error
- func (p *Provider) DeleteSmbShare(path string) error
- func (p *Provider) DestroyFilesystem(path string, params DestroyFilesystemParams) error
- func (p *Provider) DestroyLunMapping(id string) error
- func (p *Provider) DestroySnapshot(path string) error
- func (p *Provider) DestroyVolume(path string, params DestroyVolumeParams) error
- func (p *Provider) GetFilesystem(path string) (filesystem Filesystem, err error)
- func (p *Provider) GetFilesystemAvailableCapacity(path string) (int64, error)
- func (p *Provider) GetFilesystems(parent string) ([]Filesystem, error)
- func (p *Provider) GetFilesystemsSlice(parent string, limit, offset int) ([]Filesystem, error)
- func (p *Provider) GetFilesystemsWithStartingToken(parent string, startingToken string, limit int) (filesystems []Filesystem, nextToken string, err error)
- func (p *Provider) GetHostGroups() (hostGroups []nefHostGroup, err error)
- func (p *Provider) GetISCSITarget(name string) (target ISCSITarget, err error)
- func (p *Provider) GetLicense() (license License, err error)
- func (p *Provider) GetLunMapping(path string) (lunMapping LunMapping, err error)
- func (p *Provider) GetLunMappings(params GetLunMappingsParams) (lunMappings []LunMapping, err error)
- func (p *Provider) GetPools() ([]Pool, error)
- func (p *Provider) GetRSFClusters() ([]RSFCluster, error)
- func (p *Provider) GetRemoteInitiator(name string) (remoteInitiator RemoteInitiator, err error)
- func (p *Provider) GetSmbShareName(path string) (string, error)
- func (p *Provider) GetSnapshot(path string) (snapshot Snapshot, err error)
- func (p *Provider) GetSnapshots(volumePath string, recursive bool) ([]Snapshot, error)
- func (p *Provider) GetTargetGroup(name string) (targetGroup TargetGroup, err error)
- func (p *Provider) GetTargetGroups() ([]TargetGroup, error)
- func (p *Provider) GetVolume(path string) (volume Volume, err error)
- func (p *Provider) GetVolumeGroup(path string) (volumeGroup VolumeGroup, err error)
- func (p *Provider) GetVolumes(parent string) ([]Volume, error)
- func (p *Provider) GetVolumesSlice(parent string, limit, offset int) ([]Volume, error)
- func (p *Provider) GetVolumesWithStartingToken(parent string, startingToken string, limit int) (volumes []Volume, nextToken string, err error)
- func (p *Provider) IsJobDone(jobID string) (bool, error)
- func (p *Provider) LogIn() error
- func (p *Provider) PromoteFilesystem(path string) error
- func (p *Provider) PromoteVolume(path string) error
- func (p *Provider) SetFilesystemACL(path string, aclRuleSet ACLRuleSet) error
- func (p *Provider) String() string
- func (p *Provider) UpdateFilesystem(path string, params UpdateFilesystemParams) error
- func (p *Provider) UpdateHostGroup(path string, params UpdateHostGroupParams) error
- func (p *Provider) UpdateISCSITarget(name string, params UpdateISCSITargetParams) (err error)
- func (p *Provider) UpdateRemoteInitiator(name string, params UpdateRemoteInitiatorParams) error
- func (p *Provider) UpdateVolume(path string, params UpdateVolumeParams) error
- type ProviderArgs
- type ProviderInterface
- type RSFCluster
- type RemoteInitiator
- type Resolver
- type ResolverArgs
- type Snapshot
- type TargetGroup
- type UpdateFilesystemParams
- type UpdateHostGroupParams
- type UpdateISCSITargetParams
- type UpdateRemoteInitiatorParams
- type UpdateTargetGroupParams
- type UpdateVolumeParams
- type Volume
- type VolumeGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNefErrorCode ¶
GetNefErrorCode - treats an error as NefError and returns its code in case of success
func IsAlreadyExistNefError ¶
IsAlreadyExistNefError treats an error as NefError and returns true if its code is "EEXIST"
func IsAuthNefError ¶
IsAuthNefError treats an error as NefError and returns true if its code is "EAUTH"
func IsBadArgNefError ¶ added in v1.1.0
IsBadArgNefError treats an error as NefError and returns true if its code is "EBADARG"
func IsBusyNefError ¶
IsBusyNefError treats an error as NefError and returns true if its code is "EBUSY" Example: filesystem cannot be deleted because it has snapshots
func IsNotExistNefError ¶
IsNotExistNefError treats an error as NefError and returns true if its code is "ENOENT"
Types ¶
type ACLRuleSet ¶
type ACLRuleSet int64
ACLRuleSet - filesystem ACL rule set
const ( // ACLReadOnly - apply read only set of rules to filesystem ACLReadOnly ACLRuleSet = iota // ACLReadWrite - apply full access set of rules to filesystem ACLReadWrite )
type CloneSnapshotParams ¶
type CloneSnapshotParams struct { // filesystem path w/o leading slash TargetPath string `json:"targetPath"` ReferencedQuotaSize int64 `json:"referencedQuotaSize,omitempty"` }
CloneSnapshotParams - params to clone snapshot to filesystem
type CreateFilesystemParams ¶
type CreateFilesystemParams struct { // filesystem path w/o leading slash Path string `json:"path"` // filesystem referenced quota size in bytes ReferencedQuotaSize int64 `json:"referencedQuotaSize,omitempty"` }
CreateFilesystemParams - params to create filesystem
type CreateHostGroupParams ¶
type CreateHostGroupParams struct { // list of IQNs for the hostGroup Members []string `json:"members"` // a unique name for the hostGroup Name string `json:"name"` }
CreateHostGroupParams - params to create a hostGroup
type CreateISCSITargetParams ¶
CreateISCSITargetParams - params to create new iSCSI target
type CreateLunMappingParams ¶
type CreateLunMappingParams struct { HostGroup string `json:"hostGroup"` Volume string `json:"volume"` TargetGroup string `json:"targetGroup"` }
CreateLunMappingParams - params to create new lun
type CreateNfsShareParams ¶
type CreateNfsShareParams struct { // filesystem path w/o leading slash }
CreateNfsShareParams - params to create NFS share
type CreateRemoteInitiatorParams ¶
type CreateRemoteInitiatorParams struct { Name string `json:"name"` ChapUser string `json:"chapUser"` ChapSecret string `json:"chapSecret"` }
CreateRemoteInitiatorParams - params to create credentials for remote initiator
type CreateSmbShareParams ¶
type CreateSmbShareParams struct { string `json:"filesystem"` ShareName string `json:"shareName,omitempty"` }Filesystem
CreateSmbShareParams - params to create SMB share
type CreateSnapshotParams ¶
type CreateSnapshotParams struct { // snapshot path w/o leading slash Path string `json:"path"` }
CreateSnapshotParams - params to create snapshot
type CreateTargetGroupParams ¶
CreateTargetGroupParams - params to create target group
type CreateVolumeParams ¶
type CreateVolumeParams struct { // volume path w/o leading slash Path string `json:"path"` VolumeSize int64 `json:"volumeSize"` SparseVolume bool `json:"sparseVolume"` }
CreateVolumeParams - params to create a volume
type DestroyFilesystemParams ¶
type DestroyFilesystemParams struct { // If set to `true`, then tries to destroy filesystem's snapshots as well. // In case some snapshots have clones, the filesystem cannot be deleted // without deleting all dependent clones, OR promoting one of the clones // to take over the snapshots (see "PromoteMostRecentCloneIfExists" parameter). DestroySnapshots bool // If set to `true`, then tries to find the most recent snapshot clone and if found one, // that clone will be promoted to take over all the snapshots from the original filesystem, // then the original filesystem will be destroyed. // // Initial state: // [fsSource]---+ // source filesystem // | [snapshot1] // source filesystem snapshots // | [snapshot2] // `--->[snapshot3]<---+ // | // [fsClone1]-----------------------+ // filesystem clone of "snapshot3" // [fsClone2]-----------------------+ // another filesystem clone of "snapshot3" // // After destroy "fsSource" filesystem call (PromoteMostRecentCloneIfExists=true and DestroySnapshots=true): // [fsClone1]<----------------------+ // "fsClone1" is still linked to "snapshot3" // [fsClone2]---+ | // "fsClone2" is got promoted to take over snapshots of "fsSource" // | [snapshot1] | // | [snapshot2] | // `--->[snapshot3]<---+ // PromoteMostRecentCloneIfExists bool }
DestroyFilesystemParams - filesystem deletion parameters
type DestroyVolumeParams ¶
type Filesystem ¶
type Filesystem struct { Path string `json:"path"` MountPoint string `json:"mountPoint"` BytesAvailable int64 `json:"bytesAvailable"` BytesUsed int64 `json:"bytesUsed"` }
Filesystem - NexentaStor filesystem
func (*Filesystem) GetDefaultSmbShareName ¶
func (fs *Filesystem) GetDefaultSmbShareName() string
GetDefaultSmbShareName - get default SMB share name (all slashes get replaced by underscore) Converts '/pool/dataset/fs' to 'pool_dataset_fs'
func (*Filesystem) GetReferencedQuotaSize ¶
func (fs *Filesystem) GetReferencedQuotaSize() int64
GetReferencedQuotaSize - get total referenced quota size
func (*Filesystem) String ¶
func (fs *Filesystem) String() string
type GetLunMappingsParams ¶
type ISCSITarget ¶
type ISCSITarget struct { Name string State string Authentication string Alias string ChapSecretSet bool ChapUser string Portals []Portal }
ISCSITarget - NexentaStor iSCSI target
type LunMapping ¶
type LunMapping struct { Id string `json:"id"` Volume string `json:"volume"` TargetGroup string `json:"targetGroup"` HostGroup string `json:"hostGroup"` Lun int `json:"lun"` }
LunMapping - NexentaStor lunmapping
type NfsRuleList ¶
type Provider ¶
type Provider struct { Address string Username string Password string RestClient rest.ClientInterface Log *logrus.Entry }
Provider - NexentaStor API provider
func (*Provider) CloneSnapshot ¶
func (p *Provider) CloneSnapshot(path string, params CloneSnapshotParams) error
CloneSnapshot clones snapshot to FS
func (*Provider) CreateFilesystem ¶
func (p *Provider) CreateFilesystem(params CreateFilesystemParams) error
CreateFilesystem creates filesystem by path
func (*Provider) CreateHostGroup ¶
func (p *Provider) CreateHostGroup(params CreateHostGroupParams) error
func (*Provider) CreateISCSITarget ¶
func (p *Provider) CreateISCSITarget(params CreateISCSITargetParams) error
CreateISCSITarget - create new iSCSI target on NexentaStor
func (*Provider) CreateLunMapping ¶
func (p *Provider) CreateLunMapping(params CreateLunMappingParams) error
CreateLunMapping - creates lun for given volume
func (*Provider) CreateNfsShare ¶
func (p *Provider) CreateNfsShare(params CreateNfsShareParams) error
CreateNfsShare creates NFS share on specified filesystem CLI test:
showmount -e HOST mkdir -p /mnt/test && sudo mount -v -t nfs HOST:/pool/fs /mnt/test findmnt /mnt/test
func (*Provider) CreateRemoteInitiator ¶
func (p *Provider) CreateRemoteInitiator(params CreateRemoteInitiatorParams) error
CreateRemoteInitiator - create new remote initiator in NexentaStor
func (*Provider) CreateSmbShare ¶
func (p *Provider) CreateSmbShare(params CreateSmbShareParams) error
CreateSmbShare creates SMB share (cifs) on specified filesystem Leave shareName empty to generate default value CLI test:
mkdir -p /mnt/test && sudo mount -v -t cifs -o username=admin,password=Nexenta@1 //HOST//pool_fs /mnt/test findmnt /mnt/test
func (*Provider) CreateSnapshot ¶
func (p *Provider) CreateSnapshot(params CreateSnapshotParams) error
CreateSnapshot creates snapshot by filesystem path
func (*Provider) CreateUpdateTargetGroup ¶
func (p *Provider) CreateUpdateTargetGroup(params CreateTargetGroupParams) error
CreateUpdateTargetGroup - create new target group on NexentaStor
func (*Provider) CreateVolume ¶
func (p *Provider) CreateVolume(params CreateVolumeParams) error
CreateVolume creates volume by path and size
func (*Provider) DeleteNfsShare ¶
DeleteNfsShare destroys NFS chare by filesystem path
func (*Provider) DeleteSmbShare ¶
DeleteSmbShare destroys SMB share by filesystem path
func (*Provider) DestroyFilesystem ¶
func (p *Provider) DestroyFilesystem(path string, params DestroyFilesystemParams) error
DestroyFilesystem destroys filesystem on NS, may destroy snapshots and promote clones (see DestroyFilesystemParams) Path format: 'pool/dataset/filesystem'
func (*Provider) DestroyLunMapping ¶
func (*Provider) DestroySnapshot ¶
DestroySnapshot destroys snapshot by path
func (*Provider) DestroyVolume ¶
func (p *Provider) DestroyVolume(path string, params DestroyVolumeParams) error
func (*Provider) GetFilesystem ¶
func (p *Provider) GetFilesystem(path string) (filesystem Filesystem, err error)
GetFilesystem returns NexentaStor filesystem by its path
func (*Provider) GetFilesystemAvailableCapacity ¶
GetFilesystemAvailableCapacity returns NexentaStor filesystem available size by its path
func (*Provider) GetFilesystems ¶
func (p *Provider) GetFilesystems(parent string) ([]Filesystem, error)
GetFilesystems returns all NexentaStor filesystems by parent filesystem
func (*Provider) GetFilesystemsSlice ¶
func (p *Provider) GetFilesystemsSlice(parent string, limit, offset int) ([]Filesystem, error)
GetFilesystemsSlice returns a slice of filesystems by parent filesystem with specified limit and offset offset - the first record number of collection, that would be included in result
func (*Provider) GetFilesystemsWithStartingToken ¶ added in v1.2.0
func (p *Provider) GetFilesystemsWithStartingToken(parent string, startingToken string, limit int) ( filesystems []Filesystem, nextToken string, err error, )
GetFilesystemsWithStartingToken returns filesystems by parent filesystem after specified starting token parent - parent filesystem's path startingToken - a path to a specific filesystem to start AFTER this token limit - the maximum count of filesystems to return in the list Function may return nextToken if there is more filesystems than limit value
func (*Provider) GetHostGroups ¶
func (*Provider) GetISCSITarget ¶
func (p *Provider) GetISCSITarget(name string) (target ISCSITarget, err error)
func (*Provider) GetLicense ¶
GetLicense returns NexentaStor license
func (*Provider) GetLunMapping ¶
func (p *Provider) GetLunMapping(path string) (lunMapping LunMapping, err error)
GetLunMapping returns NexentaStor lunmapping for a volume
func (*Provider) GetLunMappings ¶
func (p *Provider) GetLunMappings(params GetLunMappingsParams) (lunMappings []LunMapping, err error)
GetLunMappings returns NexentaStor lunmappings for given parameters
func (*Provider) GetRSFClusters ¶
func (p *Provider) GetRSFClusters() ([]RSFCluster, error)
GetRSFClusters returns RSF clusters from NS
func (*Provider) GetRemoteInitiator ¶
func (p *Provider) GetRemoteInitiator(name string) (remoteInitiator RemoteInitiator, err error)
GetRemoteInitiator - returns remote initiator object for given name
func (*Provider) GetSmbShareName ¶
GetSmbShareName returns share name for filesystem that shared over SMB
func (*Provider) GetSnapshot ¶
GetSnapshot returns snapshot by its path path - full path to snapshot w/o leading slash (e.g. "p/d/fs@s")
func (*Provider) GetSnapshots ¶
GetSnapshots returns snapshots by volume path
func (*Provider) GetTargetGroup ¶
func (p *Provider) GetTargetGroup(name string) (targetGroup TargetGroup, err error)
GetTargetGroup returns TargetGroup by its name
func (*Provider) GetTargetGroups ¶
func (p *Provider) GetTargetGroups() ([]TargetGroup, error)
GetTargetGroups - returns the list of targetGroups on NexentaStor
func (*Provider) GetVolumeGroup ¶
func (p *Provider) GetVolumeGroup(path string) (volumeGroup VolumeGroup, err error)
GetVolumeGroup returns NexentaStor volumeGroup by its path
func (*Provider) GetVolumes ¶
GetVolumes returns all NexentaStor volumes by parent volumeGroup
func (*Provider) GetVolumesSlice ¶
GetVolumesSlice returns a slice of volumes by parent volumeGroup with specified limit and offset offset - the first record number of collection, that would be included in result
func (*Provider) GetVolumesWithStartingToken ¶
func (p *Provider) GetVolumesWithStartingToken(parent string, startingToken string, limit int) ( volumes []Volume, nextToken string, err error, )
GetVolumesWithStartingToken returns volumes by parent volumeGroup after specified starting token parent - parent volumeGroup's path startingToken - a path to a specific volume to start AFTER this token limit - the maximum count of volumes to return in the list Function may return nextToken if there is more volumes than limit value
func (*Provider) PromoteFilesystem ¶
PromoteFilesystem promotes a cloned filesystem to be no longer dependent on its original snapshot
func (*Provider) PromoteVolume ¶
PromoteVolume promotes a cloned volume to be no longer dependent on its original snapshot
func (*Provider) SetFilesystemACL ¶
func (p *Provider) SetFilesystemACL(path string, aclRuleSet ACLRuleSet) error
SetFilesystemACL sets filesystem ACL, so NFS share can allow user to write w/o checking UNIX user uid
func (*Provider) UpdateFilesystem ¶
func (p *Provider) UpdateFilesystem(path string, params UpdateFilesystemParams) error
UpdateFilesystem updates filesystem by path
func (*Provider) UpdateHostGroup ¶
func (p *Provider) UpdateHostGroup(path string, params UpdateHostGroupParams) error
func (*Provider) UpdateISCSITarget ¶
func (p *Provider) UpdateISCSITarget(name string, params UpdateISCSITargetParams) (err error)
UpdateISCSITarget - update existing iSCSI target
func (*Provider) UpdateRemoteInitiator ¶
func (p *Provider) UpdateRemoteInitiator(name string, params UpdateRemoteInitiatorParams) error
UpdateRemoteInitiator updates remote initiator for given name
func (*Provider) UpdateVolume ¶
func (p *Provider) UpdateVolume(path string, params UpdateVolumeParams) error
UpdateVolume updates volume by path
type ProviderArgs ¶
type ProviderArgs struct { Address string Username string Password string Log *logrus.Entry // InsecureSkipVerify controls whether a client verifies the server's certificate chain and host name. InsecureSkipVerify bool }
ProviderArgs - params to create Provider instance
type ProviderInterface ¶
type ProviderInterface interface { // system LogIn() error IsJobDone(jobID string) (bool, error) GetLicense() (License, error) GetRSFClusters() ([]RSFCluster, error) // pools GetPools() ([]Pool, error) // filesystems CreateFilesystem(params CreateFilesystemParams) error UpdateFilesystem(path string, params UpdateFilesystemParams) error DestroyFilesystem(path string, params DestroyFilesystemParams) error SetFilesystemACL(path string, aclRuleSet ACLRuleSet) error GetFilesystem(path string) (Filesystem, error) GetFilesystemAvailableCapacity(path string) (int64, error) GetFilesystems(parent string) ([]Filesystem, error) GetFilesystemsWithStartingToken(parent string, startingToken string, limit int) ([]Filesystem, string, error) GetFilesystemsSlice(parent string, limit, offset int) ([]Filesystem, error) // filesystems - nfs share // filesystems - smb share // snapshots CreateSnapshot(params CreateSnapshotParams) error DestroySnapshot(path string) error GetSnapshot(path string) (Snapshot, error) GetSnapshots(volumePath string, recursive bool) ([]Snapshot, error) CloneSnapshot(path string, params CloneSnapshotParams) error PromoteFilesystem(path string) error // volumes CreateVolume(params CreateVolumeParams) error GetVolume(path string) (Volume, error) GetVolumes(parent string) ([]Volume, error) UpdateVolume(path string, params UpdateVolumeParams) error DestroyVolume(path string, params DestroyVolumeParams) error GetVolumeGroup(path string) (VolumeGroup, error) GetVolumesWithStartingToken(parent string, startingToken string, limit int) ([]Volume, string, error) PromoteVolume(path string) error // iSCSI CreateLunMapping(params CreateLunMappingParams) error GetLunMapping(path string) (LunMapping, error) GetLunMappings(params GetLunMappingsParams) (lunMappings []LunMapping, err error) DestroyLunMapping(id string) error CreateISCSITarget(params CreateISCSITargetParams) error UpdateISCSITarget(name string, params UpdateISCSITargetParams) error GetISCSITarget(name string) (target ISCSITarget, err error) GetTargetGroups() ([]TargetGroup, error) GetTargetGroup(name string) (targetGroup TargetGroup, err error) CreateUpdateTargetGroup(params CreateTargetGroupParams) error CreateHostGroup(params CreateHostGroupParams) error GetHostGroups() ([]nefHostGroup, error) UpdateHostGroup(path string, params UpdateHostGroupParams) error GetRemoteInitiator(name string) (remoteInitiator RemoteInitiator, err error) CreateRemoteInitiator(params CreateRemoteInitiatorParams) error UpdateRemoteInitiator(name string, params UpdateRemoteInitiatorParams) error }
ProviderInterface - NexentaStor provider interface
func NewProvider ¶
func NewProvider(args ProviderArgs) (ProviderInterface, error)
NewProvider creates NexentaStor provider instance
type RSFCluster ¶
type RSFCluster struct {
Name string `json:"clusterName"`
}
RSFCluster - RSF cluster with a name
type RemoteInitiator ¶
type RemoteInitiator struct { Name string `json:"name"` ChapUser string `json:"chapUser"` ChapSecretSet bool `json:"chapSecretSet"` }
RemoteInitiator - NexentaStor remote initiator for CHAP access
type Resolver ¶
type Resolver struct { Nodes []ProviderInterface Log *logrus.Entry }
Resolver - NexentaStor cluster API provider
func NewResolver ¶
func NewResolver(args ResolverArgs) (*Resolver, error)
NewResolver creates NexentaStor resolver instance based on configuration
func (*Resolver) IsCluster ¶
IsCluster checks if nodes is a NS cluster For now it simple checks if all nodes return at least one similar cluster name
func (*Resolver) Resolve ¶
func (r *Resolver) Resolve(path string) (ProviderInterface, error)
Resolve returns one NS from the list of NSs by provided pool/dataset/fs path
func (*Resolver) ResolveFromVg ¶
func (r *Resolver) ResolveFromVg(path string) (ProviderInterface, error)
Resolve returns one NS from the list of NSs by provided pool/volumeGroup path
type ResolverArgs ¶
type ResolverArgs struct { Address string Username string Password string Log *logrus.Entry // InsecureSkipVerify controls whether a client verifies the server's certificate chain and host name. InsecureSkipVerify bool }
ResolverArgs - params to create resolver instance from config
type Snapshot ¶
type Snapshot struct { Path string `json:"path"` Name string `json:"name"` Parent string `json:"parent"` Clones []string `json:"clones"` CreationTxg string `json:"creationTxg"` CreationTime time.Time `json:"creationTime"` }
Snapshot - NexentaStor snapshot
type TargetGroup ¶
type UpdateFilesystemParams ¶
type UpdateFilesystemParams struct { // filesystem referenced quota size in bytes ReferencedQuotaSize int64 `json:"referencedQuotaSize,omitempty"` }
UpdateFilesystemParams - params to update filesystem
type UpdateHostGroupParams ¶
type UpdateHostGroupParams struct { // list of IQNs for the hostGroup Members []string `json:"members"` }
UpdateHostGroupParams - params to update a hostGroup
type UpdateISCSITargetParams ¶
type UpdateISCSITargetParams struct {
Authentication string `json:"authentication"`
}
UpdateISCSITargetParams - params to update existing iSCSI target
type UpdateRemoteInitiatorParams ¶
type UpdateRemoteInitiatorParams struct { ChapUser string `json:"chapUser"` ChapSecret string `json:"chapSecret"` }
UpdateRemoteInitiatorParams - params to update credentials for remote initiator
type UpdateTargetGroupParams ¶
type UpdateTargetGroupParams struct {
Members []string `json:"members"`
}
UpdateTargetGroupParams - params to update existing target group
type UpdateVolumeParams ¶
type UpdateVolumeParams struct { // volume referenced quota size in bytes VolumeSize int64 `json:"volumeSize,omitempty"` }
UpdateVolumeParams - params to update volume
type Volume ¶
type Volume struct { Path string `json:"path"` BytesAvailable int64 `json:"bytesAvailable"` BytesUsed int64 `json:"bytesUsed"` VolumeSize int64 `json:"volumeSize"` }
Volume - NexentaStor volume
type VolumeGroup ¶
type VolumeGroup struct { Path string `json:"path"` BytesAvailable int64 `json:"bytesAvailable"` BytesUsed int64 `json:"bytesUsed"` }
VolumeGroup - NexentaStor volumeGroup