credential

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Formatter added in v0.6.0

func Formatter(request *types.APIRequest, resource *types.RawResource)

Types

type Store

type Store struct {
	empty.Store
}

Store holds credential API state.

func (*Store) ByID

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

ByID returns credential by ID.

func (*Store) Create

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

Create creates credential based on the request data.

func (*Store) Delete

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

Delete deletes credential by ID.

func (*Store) List

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

List returns credentials as list.

func (*Store) Update

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

Update updates credential based on the request data.

Jump to

Keyboard shortcuts

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