liboneview

package
v9.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 7

Documentation

Overview

Package liboneview -

Package liboneview -

Index

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

func IsVersionValid(ver int) bool

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) Equal

func (o APISupport) Equal(s string) bool

Equal helper for state

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

func (APISupport) String

func (o APISupport) String() string

String helper for state

type Version

type Version int

Driver Version

const (
	API_VER1        Version = Ver1
	API_VER2        Version = Ver2
	API_VER_UNKNOWN Version = Unknown
)

Supported versions

func (Version) CalculateVersion

func (o Version) CalculateVersion(ovversion int, icspversion int) Version

CalculateVersion - calculate the current version

func (Version) Equal

func (o Version) Equal(s string) bool

Equal helper for state

func (Version) EqualV

func (o Version) EqualV(v Version) bool

func (Version) Integer

func (o Version) Integer() int

String helper for state

func (Version) String

func (o Version) String() string

String helper for state

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL