Documentation
¶
Index ¶
- type Adapter
- func (a *Adapter) AuthorizationURL(_ context.Context, params credentialssvc.AuthorizationURLParams) (string, error)
- func (a *Adapter) ExchangeCode(ctx context.Context, params credentialssvc.ExchangeCodeParams) (credentialssvc.OAuthTokenSet, error)
- func (a *Adapter) ListRepositories(ctx context.Context, accessToken string) ([]credentialssvc.ProviderRepository, error)
- func (*Adapter) OAuthScopePlan() credentialssvc.OAuthScopePlan
- func (*Adapter) OAuthScopePlanForInstall(params credentialssvc.OAuthScopePlanParams) credentialssvc.OAuthScopePlan
- func (a *Adapter) Refresh(ctx context.Context, params credentialssvc.RefreshParams) (credentialssvc.OAuthTokenSet, error)
- func (a *Adapter) ResolveRepository(ctx context.Context, accessToken, repositoryID string) (credentialssvc.ProviderRepository, error)
- func (a *Adapter) Revoke(ctx context.Context, params credentialssvc.RevokeProviderGrantParams) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func (*Adapter) AuthorizationURL ¶
func (a *Adapter) AuthorizationURL(_ context.Context, params credentialssvc.AuthorizationURLParams) (string, error)
func (*Adapter) ExchangeCode ¶
func (a *Adapter) ExchangeCode(ctx context.Context, params credentialssvc.ExchangeCodeParams) (credentialssvc.OAuthTokenSet, error)
func (*Adapter) ListRepositories ¶
func (a *Adapter) ListRepositories(ctx context.Context, accessToken string) ([]credentialssvc.ProviderRepository, error)
func (*Adapter) OAuthScopePlan ¶
func (*Adapter) OAuthScopePlan() credentialssvc.OAuthScopePlan
func (*Adapter) OAuthScopePlanForInstall ¶
func (*Adapter) OAuthScopePlanForInstall(params credentialssvc.OAuthScopePlanParams) credentialssvc.OAuthScopePlan
func (*Adapter) Refresh ¶
func (a *Adapter) Refresh(ctx context.Context, params credentialssvc.RefreshParams) (credentialssvc.OAuthTokenSet, error)
func (*Adapter) ResolveRepository ¶
func (a *Adapter) ResolveRepository(ctx context.Context, accessToken, repositoryID string) (credentialssvc.ProviderRepository, error)
func (*Adapter) Revoke ¶
func (a *Adapter) Revoke(ctx context.Context, params credentialssvc.RevokeProviderGrantParams) error
Click to show internal directories.
Click to hide internal directories.