Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("License Status not found")
ErrNotFound is license status not found
Functions ¶
This section is empty.
Types ¶
type LicenseStatus ¶
type LicenseStatus struct { ID int `json:"-"` LicenseRef string `json:"id"` Status string `json:"status"` Updated *Updated `json:"updated,omitempty"` Message string `json:"message"` Links []Link `json:"links,omitempty"` DeviceCount *int `json:"device_count,omitempty"` PotentialRights *PotentialRights `json:"potential_rights,omitempty"` Events []transactions.Event `json:"events,omitempty"` CurrentEndLicense *time.Time `json:"-"` }
LicenseStatus represents a license status
type LicenseStatuses ¶
type LicenseStatuses interface { Add(ls LicenseStatus) error List(deviceLimit int64, limit int64, offset int64) func() (LicenseStatus, error) GetByLicenseID(id string) (*LicenseStatus, error) Update(ls LicenseStatus) error // contains filtered or unexported methods }
LicenseStatuses is an interface
type Link ¶
type Link struct { Rel string `json:"rel"` Href string `json:"href"` Type string `json:"type,omitempty"` Title string `json:"title,omitempty"` Profile string `json:"profile,omitempty"` Templated bool `json:"templated,omitempty" "default false"` }
Link represents a link object
type PotentialRights ¶
PotentialRights represents the maximal extension time of a loan
Click to show internal directories.
Click to hide internal directories.