Documentation ¶
Index ¶
- Variables
- func GetRequestIDFromTaskResponse(taskResponse TaskResponse) (requestID string, err error)
- type LeaseRequestBody
- type PDClient
- func (s *PDClient) DeleteLease(leaseID, inventoryID, skuID string, metadata map[string]interface{}) (res *http.Response, err error)
- func (s *PDClient) GetTask(taskID string) (task TaskResponse, res *http.Response, err error)
- func (s *PDClient) PostLease(leaseID, inventoryID, skuID string, leaseDaysDuration int64) (leaseCreateResponse TaskResponse, res *http.Response, err error)
- type ProvisionHostData
- type ProvisionHostInfo
- type TaskResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrInvalidDispenserResponse - error for invalid statscode response on //dispenser call ErrInvalidDispenserResponse = errors.New("invalid dispenser response statuscode") //ErrInvalidInnKeeperData - error for invalid data object response from innkeeper ErrInvalidInnKeeperData = errors.New("invalid innkeeper data object") //ProvisionHostInformationFieldname - map key name for provision host info in MetaData //of TaskResponse ProvisionHostInformationFieldname = "phinfo" )
Functions ¶
func GetRequestIDFromTaskResponse ¶ added in v0.0.141
func GetRequestIDFromTaskResponse(taskResponse TaskResponse) (requestID string, err error)
Types ¶
type LeaseRequestBody ¶
type LeaseRequestBody struct { LeaseID string `json:"lease_id"` InventoryID string `json:"inventory_id"` Username string `json:"username"` Sku string `json:"sku"` LeaseDuration int64 `json:"lease_duration"` LeaseEndDate int64 `json:"lease_end_date"` LeaseStartDate int64 `json:"lease_start_date"` LeaseProcurementMeta map[string]interface{} `json:"procurement_meta"` }
LeaseRequestBody - request lease body object structure
type PDClient ¶
PDClient - dispenser client object
func (*PDClient) DeleteLease ¶ added in v0.0.143
func (s *PDClient) DeleteLease(leaseID, inventoryID, skuID string, metadata map[string]interface{}) (res *http.Response, err error)
DeleteLease -- allows a client user to make a DELETE lease call to dispenser
type ProvisionHostData ¶ added in v0.0.141
type ProvisionHostData struct {
RequestID string `json:"requestid"`
}
type ProvisionHostInfo ¶ added in v0.0.141
type ProvisionHostInfo struct {
Data []ProvisionHostData `json:"data"`
}
type TaskResponse ¶ added in v0.0.124
type TaskResponse struct { ID string `json:"ID"` Timestamp int64 `json:"Timestamp"` Expires int64 `json:"Expires"` Status string `json:"Status"` Profile string `json:"Profile"` CallerName string `json:"CallerName"` MetaData map[string]interface{} `json:"MetaData"` }
TaskResponse - a response object for a get task call
Source Files ¶
Click to show internal directories.
Click to hide internal directories.