Documentation ¶
Index ¶
- type Chassis
- type ChassisAll
- type Cluster
- type FCInitiator
- type FCInitiatorGroup
- type FCInitiatorGroups
- type FCInitiators
- type FCTarget
- type FCTargets
- type FSSource
- type Filesystem
- type Filesystems
- type IscsiInitiator
- type IscsiInitiatorGroup
- type IscsiInitiatorGroups
- type IscsiInitiators
- type LUN
- type LUNS
- type LunSource
- type NetDatalink
- type NetDatalinks
- type NetDevice
- type NetDevices
- type NetInterface
- type NetInterfaces
- type Pool
- type PoolUsage
- type Pools
- type Problem
- type Problems
- type Project
- type ProjectSource
- type Projects
- type Route
- type Routes
- type Service
- type ServiceLog
- type Services
- type User
- type Users
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chassis ¶
type Chassis struct { Faulted bool `json:"faulted"` HREF string `json:"href"` Locate bool `json:"locate"` Manufacturer string `json:"manufacturer"` Model string `json:"model"` Name string `json:"name"` Part string `json:"part,omitempty"` Path int `json:"path,omitempty"` Revision string `json:"revision,omitempty"` RPM int `json:"rpm,omitempty"` Serial string `json:"serial"` Type string `json:"type"` }
Chassis struct for chassis component.
func (*Chassis) PrintChassisInfo ¶
func (chassis *Chassis) PrintChassisInfo()
PrintChassisInfo to print chassis component info.
type ChassisAll ¶
type ChassisAll struct {
List []Chassis `json:"chassis"`
}
ChassisAll struct for chassis components.
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster struct for Cluster.
func (*Cluster) PrintClusterInfo ¶
func (cluster *Cluster) PrintClusterInfo()
PrintClusterInfo to print some version info.
type FCInitiator ¶
type FCInitiator struct { Alias string `json:"alias"` HREF string `json:"href"` Initiator string `json:"initiator"` }
FCInitiator struct for Initiator.
func (*FCInitiator) PrintInitiatorInfo ¶
func (initiator *FCInitiator) PrintInitiatorInfo()
PrintInitiatorInfo to print initiator info.
type FCInitiatorGroup ¶
type FCInitiatorGroup struct { HREF string `json:"href"` Initiators []string `json:"initiators"` Name string `json:"name"` }
FCInitiatorGroup struct for InitiatorGroup.
func (*FCInitiatorGroup) PrintInitiatorGroupInfo ¶
func (group *FCInitiatorGroup) PrintInitiatorGroupInfo()
PrintInitiatorGroupInfo to print initiator info.
type FCInitiatorGroups ¶
type FCInitiatorGroups struct {
List []FCInitiatorGroup `json:"groups"`
}
FCInitiatorGroups struct for InitiatorsGroups.
type FCInitiators ¶
type FCInitiators struct {
List []FCInitiator `json:"initiators"`
}
FCInitiators struct for Initiators.
type FCTarget ¶
type FCTarget struct { DiscoveredPorts int `json:"discovered_ports"` HREF string `json:"href"` InvalidCRCCount int `json:"invalid_crc_count"` InvalidTXWordCount int `json:"invalid_tx_word_count"` LinkFailureCount int `json:"link_failure_count"` LossOfSignalCount int `json:"loss_of_signal_count"` LossOfSyncCount int `json:"loss_of_sync_count"` Mode string `json:"mode"` Port string `json:"port"` ProtocolErrorCount int `json:"protocol_error_count"` Speed string `json:"speed"` WWN string `json:"wwn"` }
FCTarget struct for FC target.
func (*FCTarget) PrintTargetInfo ¶
func (target *FCTarget) PrintTargetInfo()
PrintTargetInfo to print target info.
type FCTargets ¶
type FCTargets struct {
List []FCTarget `json:"targets"`
}
FCTargets struct for FC targets.
type FSSource ¶
type FSSource struct { ACLinherit string `json:"aclinherit"` ACLMode string `json:"aclmode"` ATime string `json:"atime"` CheckSum string `json:"checksum"` Compression string `json:"compression"` Copies string `json:"copies"` Dedup string `json:"dedup"` Exported string `json:"exported"` KeyChangeDate string `json:"keychangedate"` Logbias string `json:"logbias"` MaxBlockSize string `json:"maxblocksize"` MountPoint string `json:"mountpoint"` Nbmand string `json:"nbmand"` ReadOnly string `json:"readonly"` RecordSize string `json:"record_size"` Reservation string `json:"reservation"` RRSRCActions string `json:"rrsrc_actions"` Rstchown string `json:"rstchown"` SecondaryCache string `json:"secondarycache"` SnapDir string `json:"snapdir"` VScan string `json:"vscan"` }
FSSource struct for source in Filesystem struct.
type Filesystem ¶
type Filesystem struct { ACLinherit string `json:"aclinherit"` ACLMode string `json:"aclmode"` ATime bool `json:"atime"` CanonicalName string `json:"canonical_name"` CaseSensitivity string `json:"casesensitivity"` CheckSum string `json:"checksum"` Compression string `json:"compression"` CompressRatio float64 `json:"compressratio"` Copies int `json:"copies"` Creation string `json:"creation"` //Creation time.Time `json:"creation"` Dedup bool `json:"dedup"` Encryption string `json:"encryption"` Exported bool `json:"exported"` HREF string `json:"href"` ID string `json:"id"` KeyChangeDate string `json:"keychangedate,omitempty"` KeyStatus string `json:"keystatus"` Logbias string `json:"logbias"` MaxBlockSize int `json:"maxblocksize"` MountPoint string `json:"mountpoint"` Name string `json:"name"` Nbmand bool `json:"nbmand"` Nodestroy bool `json:"nodestroy"` Normalization string `json:"normalization"` Pool string `json:"pool"` Project string `json:"project"` Quota float64 `json:"quota"` QuotaSnap bool `json:"quota_snap"` ReadOnly bool `json:"readonly"` RecordSize float64 `json:"record_size"` Reservation float64 `json:"reservation"` ReservationSnap bool `json:"reservation_snap"` RootGroup string `json:"root_group"` RootPermissions string `json:"root_permissions"` RootUser string `json:"root_user"` Rstchown bool `json:"rstchown"` SecondaryCache string `json:"secondarycache"` Shadow string `json:"shadow"` SnapDir string `json:"snapdir"` SnapLabel string `json:"snaplabel,omitempty"` FSSource `json:"source"` SpaceAvailable float64 `json:"space_available"` SpaceData float64 `json:"space_data"` SpaceSnapShots float64 `json:"space_snapshots"` SpaceTotal float64 `json:"space_total"` SpaceUnusedRes float64 `json:"space_unused_res"` UTF8Only bool `json:"utf8only"` VScan bool `json:"vscan"` }
Filesystem struct for Filesystem in a Project.
type Filesystems ¶
type Filesystems struct {
List []Filesystem `json:"Filesystems"`
}
Filesystems struct for Filesystems in a Project.
type IscsiInitiator ¶
type IscsiInitiator struct { Alias string `json:"alias"` ChapSecret string `json:"chapsecret"` ChapUser string `json:"chapuser"` HREF string `json:"href"` Initiator string `json:"initiator"` }
IscsiInitiator struct for Initiator.
func (*IscsiInitiator) PrintInitiatorInfo ¶
func (initiator *IscsiInitiator) PrintInitiatorInfo()
PrintInitiatorInfo to print initiator info.
type IscsiInitiatorGroup ¶
type IscsiInitiatorGroup struct { HREF string `json:"href"` Initiators []string `json:"initiators"` Name string `json:"name"` }
IscsiInitiatorGroup struct for InitiatorGroup.
func (*IscsiInitiatorGroup) PrintInitiatorGroupInfo ¶
func (group *IscsiInitiatorGroup) PrintInitiatorGroupInfo()
PrintInitiatorGroupInfo to print initiator info.
type IscsiInitiatorGroups ¶
type IscsiInitiatorGroups struct {
List []IscsiInitiatorGroup `json:"groups"`
}
IscsiInitiatorGroups struct for InitiatorsGroups.
type IscsiInitiators ¶
type IscsiInitiators struct {
List []IscsiInitiator `json:"initiators"`
}
IscsiInitiators struct for Initiators.
type LUN ¶
type LUN struct { AssignedNumber int `json:"assignednumber"` CanonicalName string `json:"canonical_name"` Checksum string `json:"checksum"` Compression string `json:"compression"` CompressRatio float64 `json:"compressratio"` Copies int `json:"copies"` Creation string `json:"creation"` //Creation time.Time `json:"creation"` Dedup bool `json:"dedup"` Encryption string `json:"encryption"` Exported bool `json:"exported"` FixedNumber bool `json:"fixednumber"` HREF string `json:"href"` ID string `json:"id"` InitiatorGroup []string `json:"initiatorgroup"` KeyChangeDate string `json:"keychangedate,omitempty"` KeyStatus string `json:"keystatus"` Logbias string `json:"logbias"` LunGUID string `json:"lunguid"` LUNumber string `json:"lunumber"` MaxBlockSize int `json:"maxblocksize"` Name string `json:"name"` Nodestroy bool `json:"nodestroy"` Pool string `json:"pool"` Project string `json:"project"` SecondaryCache string `json:"secondarycache"` SnapLabel string `json:"snaplabel,omitempty"` LunSource `json:"source"` SpaceAvailable float64 `json:"space_available"` SpaceData float64 `json:"space_data"` SpaceSnapShots float64 `json:"space_snapshots"` SpaceTotal float64 `json:"space_total"` Sparse bool `json:"sparse"` Status string `json:"status"` TargetGroup string `json:"targetgroup"` VolBlockSize int `json:"volblocksize"` VolSize float64 `json:"volsize"` WriteCache bool `json:"writecache"` }
LUN struct for lun in project.
type LunSource ¶
type LunSource struct { CheckSum string `json:"checksum"` Compression string `json:"compression"` Copies string `json:"copies"` Dedup string `json:"dedup"` Encryption string `json:"encryption"` Exported string `json:"exported"` KeyChangeDate string `json:"keychangedate"` Logbias string `json:"logbias"` MaxBlockSize string `json:"maxblocksize"` RRSRCActions string `json:"rrsrc_actions"` SecondaryCache string `json:"secondarycache"` }
LunSource struct for source in LUN struct.
type NetDatalink ¶
type NetDatalink struct { Class string `json:"class"` Datalink string `json:"datalink"` Duplex string `json:"duplex"` HREF string `json:"href"` Label string `json:"label"` Links []string `json:"links"` MAC string `json:"mac"` MTU int `json:"mtu"` Speed string `json:"speed"` }
NetDatalink struct for network datalink.
func (*NetDatalink) PrintNetDatalinkInfo ¶
func (datalink *NetDatalink) PrintNetDatalinkInfo()
PrintNetDatalinkInfo method to print some datalink info.
type NetDatalinks ¶
type NetDatalinks struct {
List []NetDatalink `json:"datalinks"`
}
NetDatalinks struct for network datalinks.
type NetDevice ¶
type NetDevice struct { Active bool `json:"active"` Device string `json:"device"` Duplex string `json:"duplex"` FactoryMAC string `json:"factory_mac"` HREF string `json:"href"` Media string `json:"media"` Speed string `json:"Speed"` UP bool `json:"up"` }
NetDevice struct for network device.
func (*NetDevice) PrintNetDeviceInfo ¶
func (device *NetDevice) PrintNetDeviceInfo()
PrintNetDeviceInfo method to print some device info.
type NetDevices ¶
type NetDevices struct {
List []NetDevice `json:"devices"`
}
NetDevices struct for network devices.
type NetInterface ¶
type NetInterface struct { Admin bool `json:"admin"` Class string `json:"class"` CurAddrs []string `json:"curaddrs"` Enable bool `json:"enable"` HREF string `json:"href"` Interface string `json:"interface"` Label string `json:"label"` Links []string `json:"links"` State string `json:"state"` V4Addrs []string `json:"v4addrs"` V4DHCP bool `json:"V4dhcp"` V4DirectNets []string `json:"v4directnets"` V6Addrs []string `json:"v6addrs"` V6DHCP bool `json:"v6dhcp"` V6DirectNets []string `json:"v6directnets"` }
NetInterface struct for network interface.
func (*NetInterface) PrintNetInterfaceInfo ¶
func (interf *NetInterface) PrintNetInterfaceInfo()
PrintNetInterfaceInfo method to print some interface info.
type NetInterfaces ¶
type NetInterfaces struct {
List []NetInterface `json:"interfaces"`
}
NetInterfaces struct for network interfaces.
type Pool ¶
type Pool struct { Status string `json:"status"` Profile string `json:"profile"` Name string `json:"name"` PoolUsage `json:"usage"` Peer string `json:"peer"` Owner string `json:"owner"` ASN string `json:"asn"` }
Pool struct for ZFS pool.
type PoolUsage ¶
type PoolUsage struct { Available float64 `json:"available"` UsageSnapshots float64 `json:"usage_snapshots"` Used float64 `json:"used"` Compression int `json:"compression"` UsageData float64 `json:"usage_data"` Free float64 `json:"free"` Dedupratio int `json:"dedupratio"` Total float64 `json:"total"` UsageTotal float64 `json:"usage_total"` }
PoolUsage struct for Usage in Pool struct.
type Problem ¶
type Problem struct { Action string `json:"action"` Code string `json:"code"` Description string `json:"description"` Diagnosed string `json:"diagnosed"` //Diagnosed time.Time `json:"diagnosed"` HREF string `json:"href"` Impact string `json:"impact"` PhonedHome string `json:"phoned_home"` //PhonedHome time.Time `json:"phoned_home"` Response string `json:"response"` Severity string `json:"severity"` Type string `json:"type"` URL string `json:"url"` UUID string `json:"uuid"` }
Problem struct for problem.
func (*Problem) PrintProblemInfo ¶
func (problem *Problem) PrintProblemInfo()
PrintProblemInfo print some info about the problem.
type Problems ¶
type Problems struct {
List []Problem `json:"problems"`
}
Problems struct for all zfssa problems.
type Project ¶
type Project struct { ACLinherit string `json:"aclinherit"` ACLMode string `json:"aclmode"` ATime bool `json:"atime"` CanonicalName string `json:"canonical_name"` CheckSum string `json:"checksum"` Compression string `json:"compression"` CompressRatio float64 `json:"compressratio"` Copies int `json:"copies"` Creation string `json:"creation"` //Creation time.Time `json:"creation"` Dedup bool `json:"dedup"` DefaultGroup string `json:"default_group"` DefaultPermissions string `json:"default_permissions"` DefaultSparse bool `json:"default_sparce"` DefaultUser string `json:"default_user"` DefaulVolBlockSize float64 `json:"default_volblocksize"` DefaultVolSize float64 `json:"default_volsize"` DefaultGroupQuota float64 `json:"defaultgroupquota"` DefaultUserQuota float64 `json:"defaultuserquota"` Encryption string `json:"encryption"` Exported bool `json:"exported"` HREF string `json:"href"` ID string `json:"id"` KeyChangeDate string `json:"keychangedate,omitempty"` KeyStatus string `json:"keystatus"` Logbias string `json:"logbias"` MaxBlockSize int `json:"maxblocksize"` MountPoint string `json:"mountpoint"` Name string `json:"name"` Nbmand bool `json:"nbmand"` Nodestroy bool `json:"nodestroy"` Pool string `json:"pool"` Quota float64 `json:"quota"` ReadOnly bool `json:"readonly"` RecordSize float64 `json:"record_size"` Reservation float64 `json:"reservation"` Rstchown bool `json:"rstchown"` SecondaryCache string `json:"secondarycache"` SnapDir string `json:"snapdir"` SnapLabel string `json:"snaplabel,omitempty"` ProjectSource `json:"source"` SpaceAvailable float64 `json:"space_available"` SpaceData float64 `json:"space_data"` SpaceSnapShots float64 `json:"space_snapshots"` SpaceTotal float64 `json:"space_total"` SpaceUnusedRes float64 `json:"space_unused_res"` VScan bool `json:"vscan"` }
Project struct for project in Pool.
type ProjectSource ¶
type ProjectSource struct { ACLinherit string `json:"aclinherit"` ACLMode string `json:"aclmode"` ATime string `json:"atime"` CheckSum string `json:"checksum"` Compression string `json:"compression"` Copies string `json:"copies"` Dedup string `json:"dedup"` Exported string `json:"exported"` KeyChangeDate string `json:"keychangedate"` Logbias string `json:"logbias"` MaxBlockSize string `json:"maxblocksize"` MountPoint string `json:"mountpoint"` Nbmand string `json:"nbmand"` ReadOnly string `json:"readonly"` RecordSize string `json:"record_size"` Reservation string `json:"reservation"` RRSRCActions string `json:"rrsrc_actions"` Rstchown string `json:"rstchown"` SecondaryCache string `json:"secondarycache"` SnapDir string `json:"snapdir"` VScan string `json:"vscan"` }
ProjectSource struct for source in Project struct.
type Projects ¶
type Projects struct {
List []Project `json:"projects"`
}
Projects struct for Projects in Pool.
type Route ¶
type Route struct { Status string `json:"status"` Family string `json:"family"` Destination string `json:"destination"` Mask int `json:"mask"` HREF string `json:"href"` Interface string `json:"interface"` Type string `json:"type"` Gateway string `json:"gateway"` }
Route struct for network route.
func (*Route) PrintRouteInfo ¶
func (route *Route) PrintRouteInfo()
PrintRouteInfo method to print some datalink info.
type Service ¶
type Service struct { Status string `json:"<status>"` HREF string `json:"href"` Name string `json:"name"` Log ServiceLog `json:"log,omitempty"` }
Service struct for service
func (*Service) PrintServiceInfo ¶
func (service *Service) PrintServiceInfo()
PrintServiceInfo print general service info.
type ServiceLog ¶
ServiceLog struct for logs in service.
type Services ¶
type Services struct {
List []Service `json:"services"`
}
Services struct for services.
type User ¶
type User struct { Logname string `json:"logname"` Type string `json:"type"` UID int `json:"uid"` FullName string `json:"fullname"` InitialPassword string `json:"initial_password"` RequireAnnotation bool `json:"require_annotation"` Roles []string `json:"roles"` KioskMode bool `json:"kiosk_mode"` KioskScreen string `json:"kiosk_screen"` HREF string `json:"href"` }
User struct for User.
func (*User) PrintUserInfo ¶
func (user *User) PrintUserInfo()
PrintUserInfo to print chassis component info.
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version get ZFSSA version info.
func (*Version) PrintVersionInfo ¶
func (version *Version) PrintVersionInfo()
PrintVersionInfo to print some version info.