skurepo

package
v0.0.164 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: GPL-2.0, GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Repo -- repo holds the registered sku interfaces
	Repo = make(map[string]Sku)
)

Functions

func GetRegistry

func GetRegistry() map[string]Sku

GetRegistry -- gets the map of all registered Sku interface objects

func Register

func Register(name string, sku Sku)

Register -- add a Sku interface object to the Repo

Types

type Sku

type Sku interface {
	Procurement() *taskmanager.Task
	ReStock() *taskmanager.Task
	PollForTasks()
	New(tm TaskManager, procurementMeta map[string]interface{}) Sku
}

Sku - interface for a sku object

type TaskManager

type TaskManager interface {
	SaveTask(t *taskmanager.Task) (*taskmanager.Task, error)
	FindAndStallTaskForCaller(callerName string) (t *taskmanager.Task, err error)
	FindTask(id string) (t *taskmanager.Task, err error)
	NewTask(n string, p taskmanager.ProfileType, s string) (t *taskmanager.Task)
	ScheduleTask(t *taskmanager.Task, expireTime time.Time)
}

TaskManager - an interface representing a taskmanager object

Jump to

Keyboard shortcuts

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