Documentation ¶
Index ¶
- Constants
- type Etcd
- func (r *Etcd) ClientAuthorizationName(userName, clientName string) string
- func (r *Etcd) CreateAccessToken(token *api.AccessToken) error
- func (r *Etcd) CreateAuthorizeToken(token *api.AuthorizeToken) error
- func (r *Etcd) CreateClient(client *api.Client) error
- func (r *Etcd) CreateClientAuthorization(client *api.ClientAuthorization) error
- func (r *Etcd) DeleteAccessToken(name string) error
- func (r *Etcd) DeleteAuthorizeToken(name string) error
- func (r *Etcd) DeleteClient(name string) error
- func (r *Etcd) DeleteClientAuthorization(name string) error
- func (r *Etcd) GetAccessToken(name string) (token *api.AccessToken, err error)
- func (r *Etcd) GetAuthorizeToken(name string) (token *api.AuthorizeToken, err error)
- func (r *Etcd) GetClient(name string) (client *api.Client, err error)
- func (r *Etcd) GetClientAuthorization(name string) (client *api.ClientAuthorization, err error)
- func (r *Etcd) ListAccessTokens(selector labels.Selector) (*api.AccessTokenList, error)
- func (r *Etcd) ListAuthorizeTokens(selector labels.Selector) (*api.AuthorizeTokenList, error)
- func (r *Etcd) ListClientAuthorizations(label, field labels.Selector) (*api.ClientAuthorizationList, error)
- func (r *Etcd) ListClients(selector labels.Selector) (*api.ClientList, error)
- func (r *Etcd) UpdateAccessToken(*api.AccessToken) error
- func (r *Etcd) UpdateAuthorizeToken(*api.AuthorizeToken) error
- func (r *Etcd) UpdateClient(_ *api.Client) error
- func (r *Etcd) UpdateClientAuthorization(client *api.ClientAuthorization) error
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 (*Etcd) ClientAuthorizationName ¶
func (*Etcd) CreateAccessToken ¶
func (r *Etcd) CreateAccessToken(token *api.AccessToken) error
func (*Etcd) CreateAuthorizeToken ¶
func (r *Etcd) CreateAuthorizeToken(token *api.AuthorizeToken) error
func (*Etcd) CreateClientAuthorization ¶
func (r *Etcd) CreateClientAuthorization(client *api.ClientAuthorization) error
func (*Etcd) DeleteAccessToken ¶
func (*Etcd) DeleteAuthorizeToken ¶
func (*Etcd) DeleteClient ¶
func (*Etcd) DeleteClientAuthorization ¶
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) GetClientAuthorization ¶
func (r *Etcd) GetClientAuthorization(name string) (client *api.ClientAuthorization, err error)
func (*Etcd) ListAccessTokens ¶
func (*Etcd) ListAuthorizeTokens ¶
func (*Etcd) ListClientAuthorizations ¶
func (*Etcd) ListClients ¶
func (*Etcd) UpdateAccessToken ¶
func (r *Etcd) UpdateAccessToken(*api.AccessToken) error
func (*Etcd) UpdateAuthorizeToken ¶
func (r *Etcd) UpdateAuthorizeToken(*api.AuthorizeToken) error
func (*Etcd) UpdateClientAuthorization ¶
func (r *Etcd) UpdateClientAuthorization(client *api.ClientAuthorization) error
Click to show internal directories.
Click to hide internal directories.