etcd

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OAuthAccessTokenPath         = "/registry/oauth/accessTokens"
	OAuthAuthorizeTokenPath      = "/registry/oauth/authorizeTokens"
	OAuthClientPath              = "/registry/oauth/clients"
	OAuthClientAuthorizationPath = "/registry/oauth/clientAuthorizations"

	OAuthAccessTokenType         = "oauthAccessToken"
	OAuthAuthorizeTokenType      = "oauthAuthorizeToken"
	OAuthClientType              = "oauthClientType"
	OAuthClientAuthorizationType = "oauthClientAuthorization"
)

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.OAuthAccessToken) error

func (*Etcd) CreateAuthorizeToken

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

func (*Etcd) CreateClient

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

func (*Etcd) CreateClientAuthorization

func (r *Etcd) CreateClientAuthorization(client *api.OAuthClientAuthorization) 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.OAuthAccessToken, err error)

func (*Etcd) GetAuthorizeToken

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

func (*Etcd) GetClient

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

func (*Etcd) GetClientAuthorization

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

func (*Etcd) ListAccessTokens

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

func (*Etcd) ListAuthorizeTokens

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

func (*Etcd) ListClientAuthorizations

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

func (*Etcd) ListClients

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

func (*Etcd) UpdateAccessToken

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

func (*Etcd) UpdateAuthorizeToken

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

func (*Etcd) UpdateClient

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

func (*Etcd) UpdateClientAuthorization

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

Jump to

Keyboard shortcuts

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