Documentation ¶
Overview ¶
Package liboneview -
Package liboneview -
Index ¶
- Constants
- func IsVersionValid(ver int) bool
- type APISupport
- func (o APISupport) Equal(s string) bool
- func (o APISupport) Get(s string) int
- func (o APISupport) HasCheck(s string) bool
- func (o APISupport) Integer() int
- func (o APISupport) IsSupported(v Version) bool
- func (o APISupport) New(i int) APISupport
- func (o APISupport) NewByName(name string) APISupport
- func (o APISupport) String() string
- type Version
Constants ¶
View Source
const ( Ver1 = 228 // OV api version (120) + ICSP api version (108) Ver2 = 308 // OV api version (200) + ICSP api version (108) Unknown = -1 )
The sum of the API versions give a unique API combined version
Variables ¶
This section is empty.
Functions ¶
func IsVersionValid ¶
IsVersionValid - tests if the combination of OV and ICSP REST APIs are compatible for this driver
Types ¶
type APISupport ¶
type APISupport int
APISupport
const ( C_PROFILE_TEMPLATES APISupport = 1 + iota C_SERVER_HARDWAREV2 C_NONE )
Methods that require support
func (APISupport) Get ¶
func (o APISupport) Get(s string) int
Get - get an APISupport from string, returns C_NONE if not found
func (APISupport) HasCheck ¶
func (o APISupport) HasCheck(s string) bool
HasCheck - used to determine if we have to make an api verification check
func (APISupport) Integer ¶
func (o APISupport) Integer() int
Integer get the int value for APISupport
func (APISupport) IsSupported ¶
func (o APISupport) IsSupported(v Version) bool
IsSupported - given the current Version is there api support?
func (APISupport) New ¶
func (o APISupport) New(i int) APISupport
New - returns a new APISupport object
func (APISupport) NewByName ¶
func (o APISupport) NewByName(name string) APISupport
NewByName - returns a new APISupport by name
type Version ¶
type Version int
Driver Version
Supported versions
func (Version) CalculateVersion ¶
CalculateVersion - calculate the current version
Click to show internal directories.
Click to hide internal directories.