workload

package
v0.0.0-...-3bd17a1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureStore

func ConfigureStore(schemas *types.Schemas)

func OwnerMap

func OwnerMap(context *types.APIContext) (map[string]string, error)

func ResolveWorkloadID

func ResolveWorkloadID(data map[string]interface{}, owners map[string]string) string

Types

type AggregateStore

type AggregateStore struct {
	CreateStore types.Store
	Stores      map[string]types.Store
	Schemas     map[string]*types.Schema
}

func NewAggregateStore

func NewAggregateStore(createStore types.Store, schemas ...*types.Schema) *AggregateStore

func (*AggregateStore) ByID

func (a *AggregateStore) ByID(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)

func (*AggregateStore) Create

func (a *AggregateStore) Create(apiContext *types.APIContext, schema *types.Schema, data map[string]interface{}) (map[string]interface{}, error)

func (*AggregateStore) Delete

func (a *AggregateStore) Delete(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)

func (*AggregateStore) List

func (a *AggregateStore) List(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) ([]map[string]interface{}, error)

func (*AggregateStore) Update

func (a *AggregateStore) Update(apiContext *types.APIContext, schema *types.Schema, data map[string]interface{}, id string) (map[string]interface{}, error)

func (*AggregateStore) Watch

func (a *AggregateStore) Watch(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) (chan map[string]interface{}, error)

type PrefixTypeStore

type PrefixTypeStore struct {
	Store types.Store
}

func (*PrefixTypeStore) ByID

func (p *PrefixTypeStore) ByID(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)

func (*PrefixTypeStore) Create

func (p *PrefixTypeStore) Create(apiContext *types.APIContext, schema *types.Schema, data map[string]interface{}) (map[string]interface{}, error)

func (*PrefixTypeStore) Delete

func (p *PrefixTypeStore) Delete(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)

func (*PrefixTypeStore) List

func (p *PrefixTypeStore) List(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) ([]map[string]interface{}, error)

func (*PrefixTypeStore) Update

func (p *PrefixTypeStore) Update(apiContext *types.APIContext, schema *types.Schema, data map[string]interface{}, id string) (map[string]interface{}, error)

func (*PrefixTypeStore) Watch

func (p *PrefixTypeStore) Watch(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) (chan map[string]interface{}, error)

Jump to

Keyboard shortcuts

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