Documentation
¶
Index ¶
- func HandleEvent(r *http.Request, secret string) (*vcs.EventPayload, error)
- type TokenClient
- func (g *TokenClient) CreateWebhook(ctx context.Context, opts vcs.CreateWebhookOptions) (string, error)
- func (g *TokenClient) DeleteWebhook(ctx context.Context, opts vcs.DeleteWebhookOptions) error
- func (g *TokenClient) GetCommit(ctx context.Context, repo, ref string) (vcs.Commit, error)
- func (g *TokenClient) GetCurrentUser(ctx context.Context) (string, error)
- func (g *TokenClient) GetRepoTarball(ctx context.Context, opts vcs.GetRepoTarballOptions) ([]byte, string, error)
- func (g *TokenClient) GetRepository(ctx context.Context, identifier string) (vcs.Repository, error)
- func (g *TokenClient) GetWebhook(ctx context.Context, opts vcs.GetWebhookOptions) (vcs.Webhook, error)
- func (g *TokenClient) ListPullRequestFiles(ctx context.Context, repo string, pull int) ([]string, error)
- func (g *TokenClient) ListRepositories(ctx context.Context, lopts vcs.ListRepositoriesOptions) ([]string, error)
- func (g *TokenClient) ListTags(ctx context.Context, opts vcs.ListTagsOptions) ([]string, error)
- func (g *TokenClient) SetStatus(ctx context.Context, opts vcs.SetStatusOptions) error
- func (g *TokenClient) UpdateWebhook(ctx context.Context, id string, opts vcs.UpdateWebhookOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleEvent ¶
Types ¶
type TokenClient ¶
type TokenClient struct {
// contains filtered or unexported fields
}
func NewTokenClient ¶
func NewTokenClient(opts vcs.NewTokenClientOptions) (*TokenClient, error)
func (*TokenClient) CreateWebhook ¶
func (g *TokenClient) CreateWebhook(ctx context.Context, opts vcs.CreateWebhookOptions) (string, error)
func (*TokenClient) DeleteWebhook ¶
func (g *TokenClient) DeleteWebhook(ctx context.Context, opts vcs.DeleteWebhookOptions) error
func (*TokenClient) GetCurrentUser ¶
func (g *TokenClient) GetCurrentUser(ctx context.Context) (string, error)
func (*TokenClient) GetRepoTarball ¶
func (g *TokenClient) GetRepoTarball(ctx context.Context, opts vcs.GetRepoTarballOptions) ([]byte, string, error)
func (*TokenClient) GetRepository ¶
func (g *TokenClient) GetRepository(ctx context.Context, identifier string) (vcs.Repository, error)
func (*TokenClient) GetWebhook ¶
func (g *TokenClient) GetWebhook(ctx context.Context, opts vcs.GetWebhookOptions) (vcs.Webhook, error)
func (*TokenClient) ListPullRequestFiles ¶
func (*TokenClient) ListRepositories ¶
func (g *TokenClient) ListRepositories(ctx context.Context, lopts vcs.ListRepositoriesOptions) ([]string, error)
func (*TokenClient) ListTags ¶
func (g *TokenClient) ListTags(ctx context.Context, opts vcs.ListTagsOptions) ([]string, error)
func (*TokenClient) SetStatus ¶
func (g *TokenClient) SetStatus(ctx context.Context, opts vcs.SetStatusOptions) error
func (*TokenClient) UpdateWebhook ¶
func (g *TokenClient) UpdateWebhook(ctx context.Context, id string, opts vcs.UpdateWebhookOptions) error
Click to show internal directories.
Click to hide internal directories.