Documentation ¶
Index ¶
- Constants
- type Etcd
- func (r *Etcd) ClientAuthorizationName(userName, clientName string) string
- func (r *Etcd) CreateAccessToken(token *api.OAuthAccessToken) error
- func (r *Etcd) CreateAuthorizeToken(token *api.OAuthAuthorizeToken) error
- func (r *Etcd) CreateClient(client *api.OAuthClient) error
- func (r *Etcd) CreateClientAuthorization(client *api.OAuthClientAuthorization) 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.OAuthAccessToken, err error)
- func (r *Etcd) GetAuthorizeToken(name string) (token *api.OAuthAuthorizeToken, err error)
- func (r *Etcd) GetClient(name string) (client *api.OAuthClient, err error)
- func (r *Etcd) GetClientAuthorization(name string) (client *api.OAuthClientAuthorization, err error)
- func (r *Etcd) ListAccessTokens(selector labels.Selector) (*api.OAuthAccessTokenList, error)
- func (r *Etcd) ListAuthorizeTokens(selector labels.Selector) (*api.OAuthAuthorizeTokenList, error)
- func (r *Etcd) ListClientAuthorizations(label, field labels.Selector) (*api.OAuthClientAuthorizationList, error)
- func (r *Etcd) ListClients(selector labels.Selector) (*api.OAuthClientList, error)
- func (r *Etcd) UpdateAccessToken(*api.OAuthAccessToken) error
- func (r *Etcd) UpdateAuthorizeToken(*api.OAuthAuthorizeToken) error
- func (r *Etcd) UpdateClient(_ *api.OAuthClient) error
- func (r *Etcd) UpdateClientAuthorization(client *api.OAuthClientAuthorization) error
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 (*Etcd) ClientAuthorizationName ¶
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 (*Etcd) DeleteAuthorizeToken ¶
func (*Etcd) DeleteClient ¶
func (*Etcd) DeleteClientAuthorization ¶
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) GetClientAuthorization ¶
func (r *Etcd) GetClientAuthorization(name string) (client *api.OAuthClientAuthorization, err error)
func (*Etcd) ListAccessTokens ¶
func (*Etcd) ListAuthorizeTokens ¶
func (*Etcd) ListClientAuthorizations ¶
func (*Etcd) ListClients ¶
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
Click to show internal directories.
Click to hide internal directories.