pox

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger *logo.Logger
)

Functions

This section is empty.

Types

type PoX

type PoX struct {
	PoL                string                 `json:"pol,omitempty"`
	PoS                string                 `json:"pos,omitempty"`
	Status             statutes.LicenseStatus `json:"licence_status" pagser:"div[id=MSC_Content] h2+h3+table tbody tr td->toUpper(0)"`
	LicenseID          string                 `json:"license_id" pagser:"div[id=MSC_Content] h2+h3->extractLicenseID()"`
	ProductName        string                 `json:"product_name" pagser:"div[id=MSC_Content] h2"`
	Binding            string                 `json:"binding" pagser:"div[id=MSC_Content] h2+h3+table tbody tr td->eq(1)"`
	Platform           string                 `json:"platform" pagser:"div[id=MSC_Content] h2+h3+table tbody tr td->eq(3)"`
	LicensePeriod      string                 `json:"license_period,omitempty" pagser:"div[id=MSC_Content] h2+h3+table tbody tr td->eq(4)"`
	LicenseFile        string                 `json:"license_file" pagser:"div[id=MSC_Content] caption:contains('License File')+thead+tbody tr td->eq(0)"`
	MaintenanceStatus  statutes.SupportStatus `json:"support_status" pagser:"div[id=MSC_Content] caption:contains('Support & Maintenance')+thead+tbody tr td->eq(0)"`
	MaintenanceEndDate string                 `json:"support_end_date" pagser:"div[id=MSC_Content] caption:contains('Support & Maintenance')+thead+tbody tr td->eq(1)"`
	SerialNumber       string                 `json:"serial_number,omitempty" pagser:"div[id=MSC_Content] caption:contains('Appliance Hardware')+thead+tbody tr td->eq(0)"`
	Company            string                 `json:"company" pagser:"div[id=MSC_Content] caption:contains('License Company')+thead+tbody"`

	IsSpare bool `` /* 142-byte string literal not displayed */

	Error string `json:"error,omitempty"`
	// contains filtered or unexported fields
}

func NewPoL

func NewPoL(pol string) *PoX

func NewPoS

func NewPoS(pos string) *PoX

func (*PoX) ChangeBinding added in v0.7.0

func (pox *PoX) ChangeBinding()

func (PoX) DetailedError

func (pox PoX) DetailedError() string

func (PoX) DetailedString

func (pox PoX) DetailedString() string

func (*PoX) Download

func (pox *PoX) Download() bool

func (*PoX) RefreshStatus

func (pox *PoX) RefreshStatus(showErrors bool)

RefreshStatus is in charge of transitionning from state New to [Valid|Invalid]

func (*PoX) Register

func (pox *PoX) Register()

Register is in charge to register the PoS using contactInfo and resseller

func (PoX) String

func (pox PoX) String() string

func (*PoX) WaitForBindingChange added in v0.7.0

func (pox *PoX) WaitForBindingChange()

func (*PoX) WaitForLicenseFileGeneration

func (pox *PoX) WaitForLicenseFileGeneration()

type PoXList

type PoXList []*PoX

func ReadPoXFormArgs

func ReadPoXFormArgs(args []string, posOnly, polOnly bool) PoXList

ReadPoXFormArgs

func (PoXList) ChangeBinding added in v0.7.0

func (poxList PoXList) ChangeBinding()

ChangeBinding

func (PoXList) CountByStatus

func (poxList PoXList) CountByStatus(state statutes.LicenseStatus) (res int)

func (PoXList) Display

func (poxList PoXList) Display()

func (PoXList) Download

func (poxList PoXList) Download()

Download

func (PoXList) GetAllPoL

func (poxList PoXList) GetAllPoL() (res PoXList)

func (PoXList) GetAllPoS

func (poxList PoXList) GetAllPoS() (res PoXList)

func (PoXList) GetByNotStatus

func (poxList PoXList) GetByNotStatus(state statutes.LicenseStatus) (res PoXList)

func (PoXList) GetByStatus

func (poxList PoXList) GetByStatus(state statutes.LicenseStatus) (res PoXList)

func (PoXList) RefreshStatus

func (poxList PoXList) RefreshStatus()

RefreshStatus

func (PoXList) Register

func (poxList PoXList) Register()

Register

type PoXType

type PoXType string
const (
	PoL PoXType = "PoL"
	PoS PoXType = "PoS"
)

Jump to

Keyboard shortcuts

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