Documentation
¶
Index ¶
- type InventoryItem
- type InventoryLease
- type MyHeritage
- type MyInventoryClient
- func (client *MyInventoryClient) GetInventoryItems() (result []InventoryItem, err error)
- func (client *MyInventoryClient) GetLease(leaseID string) (lease InventoryLease, err error)
- func (client *MyInventoryClient) LeaseInventoryItem(inventoryItemID string, user string, duration int) (lease *InventoryLease, err error)
- func (client *MyInventoryClient) New(appEnv *cfenv.App) *MyInventoryClient
- func (client *MyInventoryClient) NewWithURL(url string) *MyInventoryClient
- func (client *MyInventoryClient) String() string
- type MyMongo
- type MyNewRelic
- type MyOAuth2
- type MyRedis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InventoryItem ¶ added in v0.0.150
type InventoryItem struct {
SKU string `json:"sku"`
Tier int `json:"tier"`
OfferingType string `json:"offeringType"`
Size string `json:"size"`
Status string `json:"status"`
ID string `json:"id"`
CurrentLease InventoryLease `json:"currentLease"`
}
InventoryItem - entity from inventory query, includes lease status
type InventoryLease ¶ added in v0.0.150
type InventoryLease struct {
DaysUntilExpires int `json:"daysUntilExpires"`
Username string `json:"userName"`
}
InventoryLease - represents information about an active lease of an inventory item.
type MyHeritage ¶
MyHeritage - integration wrapper for connections to heritage
func (*MyHeritage) New ¶
func (s *MyHeritage) New(appEnv *cfenv.App) *MyHeritage
New - create a new heritage foundation integration wrapper
type MyInventoryClient ¶ added in v0.0.150
MyInventoryClient - integration wrapper for interacting with inventory svc
func (*MyInventoryClient) GetInventoryItems ¶ added in v0.0.150
func (client *MyInventoryClient) GetInventoryItems() (result []InventoryItem, err error)
GetInventoryItems - query the inventory items from the inventory service
func (*MyInventoryClient) GetLease ¶ added in v0.0.151
func (client *MyInventoryClient) GetLease(leaseID string) (lease InventoryLease, err error)
GetLease - obtains an individual lease, typically by referencing it from a parent inventory item
func (*MyInventoryClient) LeaseInventoryItem ¶ added in v0.0.156
func (client *MyInventoryClient) LeaseInventoryItem(inventoryItemID string, user string, duration int) (lease *InventoryLease, err error)
LeaseInventoryItem acquires a new lease on an inventory item from the inventory service.
func (*MyInventoryClient) New ¶ added in v0.0.150
func (client *MyInventoryClient) New(appEnv *cfenv.App) *MyInventoryClient
New - create an inventory service wrapper.
func (*MyInventoryClient) NewWithURL ¶ added in v0.0.150
func (client *MyInventoryClient) NewWithURL(url string) *MyInventoryClient
NewWithURL - create client directly with URL. Used for testing.
func (*MyInventoryClient) String ¶ added in v0.0.150
func (client *MyInventoryClient) String() string
type MyMongo ¶
type MyMongo struct {
Col *mgo.Collection
Session *mgo.Session
// contains filtered or unexported fields
}
MyMongo - integration wrapper for mongodb
func (*MyMongo) Collection ¶ added in v0.0.117
func (s *MyMongo) Collection() pezdispenser.Persistence
Collection - this allows us to get a mongo collection with a new session wrapped as a pezdispenser.Persistence interface implementation
type MyNewRelic ¶
MyNewRelic - integration wrapper for connections to newrelic
func (*MyNewRelic) New ¶
func (s *MyNewRelic) New(appEnv *cfenv.App) *MyNewRelic
New - create a new newrelic integration wrapper