etcd

package
v0.0.0-...-6079644 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessTokenPath         = "/registry/oauth/accessTokens"
	AuthorizeTokenPath      = "/registry/oauth/authorizeTokens"
	ClientPath              = "/registry/oauth/clients"
	ClientAuthorizationPath = "/registry/oauth/clientAuthorizations"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	tools.EtcdHelper
}

Etcd implements the AccessToken, AuthorizeToken, and Client registries backed by etcd.

func New

func New(helper tools.EtcdHelper) *Etcd

New returns a new Etcd.

func (*Etcd) ClientAuthorizationName

func (r *Etcd) ClientAuthorizationName(userName, clientName string) string

func (*Etcd) CreateAccessToken

func (r *Etcd) CreateAccessToken(token *api.AccessToken) error

func (*Etcd) CreateAuthorizeToken

func (r *Etcd) CreateAuthorizeToken(token *api.AuthorizeToken) error

func (*Etcd) CreateClient

func (r *Etcd) CreateClient(client *api.Client) error

func (*Etcd) CreateClientAuthorization

func (r *Etcd) CreateClientAuthorization(client *api.ClientAuthorization) error

func (*Etcd) DeleteAccessToken

func (r *Etcd) DeleteAccessToken(name string) error

func (*Etcd) DeleteAuthorizeToken

func (r *Etcd) DeleteAuthorizeToken(name string) error

func (*Etcd) DeleteClient

func (r *Etcd) DeleteClient(name string) error

func (*Etcd) DeleteClientAuthorization

func (r *Etcd) DeleteClientAuthorization(name string) error

func (*Etcd) GetAccessToken

func (r *Etcd) GetAccessToken(name string) (token *api.AccessToken, err error)

func (*Etcd) GetAuthorizeToken

func (r *Etcd) GetAuthorizeToken(name string) (token *api.AuthorizeToken, err error)

func (*Etcd) GetClient

func (r *Etcd) GetClient(name string) (client *api.Client, err error)

func (*Etcd) GetClientAuthorization

func (r *Etcd) GetClientAuthorization(name string) (client *api.ClientAuthorization, err error)

func (*Etcd) ListAccessTokens

func (r *Etcd) ListAccessTokens(selector labels.Selector) (*api.AccessTokenList, error)

func (*Etcd) ListAuthorizeTokens

func (r *Etcd) ListAuthorizeTokens(selector labels.Selector) (*api.AuthorizeTokenList, error)

func (*Etcd) ListClientAuthorizations

func (r *Etcd) ListClientAuthorizations(label, field labels.Selector) (*api.ClientAuthorizationList, error)

func (*Etcd) ListClients

func (r *Etcd) ListClients(selector labels.Selector) (*api.ClientList, error)

func (*Etcd) UpdateAccessToken

func (r *Etcd) UpdateAccessToken(*api.AccessToken) error

func (*Etcd) UpdateAuthorizeToken

func (r *Etcd) UpdateAuthorizeToken(*api.AuthorizeToken) error

func (*Etcd) UpdateClient

func (r *Etcd) UpdateClient(_ *api.Client) error

func (*Etcd) UpdateClientAuthorization

func (r *Etcd) UpdateClientAuthorization(client *api.ClientAuthorization) error

Jump to

Keyboard shortcuts

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