pkg

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ActionHandlers = map[string]http.Handler{
		"import":                http.HandlerFunc(importHandler),
		"update-install-script": http.HandlerFunc(updateInstallScript),
		"cancel":                http.HandlerFunc(cancelHandler),
		"download":              http.HandlerFunc(downloadHandler),
	}
	LinkHandlers = map[string]http.Handler{
		"export": http.HandlerFunc(exportHandler),
	}
)

Functions

func CollectionFormat

func CollectionFormat(request *types.APIRequest, collection *types.GenericCollection)

func Format

func Format(_ *types.APIRequest, resource *types.RawResource)

Types

type Store

type Store struct {
	empty.Store
}

func (*Store) ByID

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

func (*Store) Create

func (e *Store) Create(_ *types.APIRequest, _ *types.APISchema, data types.APIObject) (types.APIObject, error)

func (*Store) Delete

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

func (*Store) List

func (*Store) Update

func (e *Store) Update(_ *types.APIRequest, _ *types.APISchema, data types.APIObject, id string) (types.APIObject, error)

func (*Store) Watch

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

Jump to

Keyboard shortcuts

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