client

package
v0.0.0-...-f784db4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatastoreManager

type DatastoreManager struct {
	// contains filtered or unexported fields
}

DatastoreManager is a Google Datastore implementation for client.Manager.

func NewDatastoreManager

func NewDatastoreManager(client *datastore.Client, namespace string, h fosite.Hasher) *DatastoreManager

NewDatastoreManager initializes a new DatastoreManager with the given client

func (*DatastoreManager) Authenticate

func (d *DatastoreManager) Authenticate(ctx context.Context, id string, secret []byte) (*client.Client, error)

func (*DatastoreManager) CreateClient

func (d *DatastoreManager) CreateClient(ctx context.Context, c *client.Client) error

func (*DatastoreManager) DeleteClient

func (d *DatastoreManager) DeleteClient(ctx context.Context, id string) error

func (*DatastoreManager) GetClient

func (d *DatastoreManager) GetClient(ctx context.Context, id string) (fosite.Client, error)

func (*DatastoreManager) GetClients

func (d *DatastoreManager) GetClients(ctx context.Context, limit, offset int) (map[string]client.Client, error)

This follows the implementation from the master branch

func (*DatastoreManager) GetConcreteClient

func (d *DatastoreManager) GetConcreteClient(ctx context.Context, id string) (*client.Client, error)

func (*DatastoreManager) UpdateClient

func (d *DatastoreManager) UpdateClient(ctx context.Context, c *client.Client) error

Jump to

Keyboard shortcuts

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