Documentation
¶
Index ¶
- func Delete(collection Deleter) func(ctx context.Context, id string) error
- func Get(collectiom Getter) func(ctx context.Context, id string) (interface{}, error)
- func List(collection Getter) ...
- func New(meta MetaHandler, collection Adder, getProject projectRetriever) func(ctx context.Context, author string, data io.Reader) (interface{}, error)
- func Update(meta MetaHandler, collection ReaderUpdater, getProject projectRetriever) ...
- type Adder
- type Deleter
- type Getter
- type MetaHandler
- type ReaderUpdater
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(collection Getter) func(ctx context.Context, filter map[string][]string, sortBy string, reverse bool, count int, previousLastValue string) ([]interface{}, error)
List returns a function used to return the testplans
Types ¶
type Getter ¶
type Getter interface { Get(ctx context.Context, id string, item interface{}) error GetAll(ctx context.Context, items interface{}, filterMap map[string][]string, sortBy string, reverse bool, count int, previousLastValue string) error }
Getter is used to retrieve items from the store
type MetaHandler ¶
type MetaHandler interface { NewMeta(author string, objType string) (*metadatav1.Identity, error) UpdateMeta(author string, identity *metadatav1.Identity) }
MetaHandler handles metadata information
type ReaderUpdater ¶
ReaderUpdater is used to read and update objects in the Data Base
Click to show internal directories.
Click to hide internal directories.