template

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	empty.Store
}

Store holds template's API state.

func (*Store) ByID

func (t *Store) ByID(_ *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)

ByID returns template by ID.

func (*Store) Create

func (t *Store) Create(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error)

Create creates template based on the request data.

func (*Store) Delete

func (t *Store) Delete(_ *types.APIRequest, _ *types.APISchema, id string) (types.APIObject, error)

Delete deletes template by ID.

func (*Store) List

func (t *Store) List(_ *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)

List returns templates as list.

func (*Store) Update

func (t *Store) Update(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject, id string) (types.APIObject, error)

Update updates template based on the request data.

func (*Store) Watch

func (t *Store) Watch(apiOp *types.APIRequest, schema *types.APISchema, _ types.WatchRequest) (chan types.APIEvent, error)

Watch watches template.

Jump to

Keyboard shortcuts

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