Documentation ¶
Overview ¶
Package github provides the ability for Vela to integrate with GitHub or GitHub Enterprise as a source provider.
Usage:
import "github.com/go-vela/server/source/github"
Index ¶
- func New(opts ...ClientOpt) (*client, error)
- func NewTest(urls ...string) (*client, error)
- type ClientOpt
- func WithAddress(address string) ClientOpt
- func WithClientID(id string) ClientOpt
- func WithClientSecret(secret string) ClientOpt
- func WithScopes(scopes []string) ClientOpt
- func WithServerAddress(address string) ClientOpt
- func WithServerWebhookAddress(address string) ClientOpt
- func WithStatusContext(context string) ClientOpt
- func WithWebUIAddress(address string) ClientOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientOpt ¶ added in v0.8.0
type ClientOpt func(*client) error
ClientOpt represents a configuration option to initialize the source client.
func WithAddress ¶ added in v0.8.0
WithAddress sets the GitHub address in the source client.
func WithClientID ¶ added in v0.8.0
WithClientID sets the GitHub OAuth client ID in the source client.
func WithClientSecret ¶ added in v0.8.0
WithClientSecret sets the GitHub OAuth client secret in the source client.
func WithScopes ¶ added in v0.8.4
WithScopes sets the GitHub OAuth scopes in the source client.
func WithServerAddress ¶ added in v0.8.0
WithServerAddress sets the Vela server address in the source client.
func WithServerWebhookAddress ¶ added in v0.10.0
WithServerWebhookAddress sets the Vela server webhook address in the source client.
func WithStatusContext ¶ added in v0.8.0
WithStatusContext sets the GitHub context for commit statuses in the source client.
func WithWebUIAddress ¶ added in v0.8.0
WithWebUIAddress sets the Vela web UI address in the source client.