client

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type REST

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

REST implements the RESTStorage interface in terms of an Registry.

func NewREST

func NewREST(registry Registry) *REST

NewStorage returns a new REST.

func (*REST) Create

func (s *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)

Create registers the given Client.

func (*REST) Delete

func (s *REST) Delete(ctx kapi.Context, id string) (runtime.Object, error)

Delete asynchronously deletes an Client specified by its id.

func (*REST) Get

func (s *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)

Get retrieves an Client by id.

func (*REST) List

func (s *REST) List(ctx kapi.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)

List retrieves a list of Clients that match label.

func (*REST) New

func (s *REST) New() runtime.Object

New returns a new Client for use with Create and Update.

func (*REST) NewList added in v0.2.1

func (*REST) NewList() runtime.Object

type Registry

type Registry interface {
	// ListClients obtains a list of clients that match a selector.
	ListClients(selector labels.Selector) (*api.OAuthClientList, error)
	// GetClient retrieves a specific client.
	GetClient(name string) (*api.OAuthClient, error)
	// CreateClient creates a new client.
	CreateClient(client *api.OAuthClient) error
	// UpdateClient updates an client.
	UpdateClient(client *api.OAuthClient) error
	// DeleteClient deletes an client.
	DeleteClient(name string) error
}

Registry is an interface for things that know how to store Client objects.

Jump to

Keyboard shortcuts

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