Documentation
¶
Index ¶
- Variables
- type Created
- type Handoff
- type Hosted
- type Options
- type Pending
- type Result
- type Service
- func (s *Service) Cancel(ctx context.Context, session auth.Session, org, id, request string) error
- func (s *Service) Cleanup(ctx context.Context) error
- func (s *Service) HandleWebhook(ctx context.Context, headers http.Header, body []byte) error
- func (s *Service) Handoff(ctx context.Context, session auth.Session, id string) (Handoff, error)
- func (s *Service) InstallCallback(ctx context.Context, session auth.Session, installation, action, state string) Result
- func (s *Service) ManifestCallback(ctx context.Context, session auth.Session, code, state string) Result
- func (s *Service) OAuthCallback(ctx context.Context, session auth.Session, code, state, providerError string) Result
- func (s *Service) Run(ctx context.Context)
- func (s *Service) Start(ctx context.Context, session auth.Session, ...) (Created, error)
- func (s *Service) Status(ctx context.Context, session auth.Session, org string) (Status, error)
- func (s *Service) WebOrigin() string
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)
View Source
var Events = []string{"push", "pull_request", "repository", "check_run", "check_suite", "status", "workflow_run"}
View Source
var Permissions = map[string]string{
"metadata": "read",
"contents": "write",
"pull_requests": "write",
"checks": "write",
"statuses": "read",
"actions": "write",
"workflows": "write",
"administration": "read",
"members": "read",
"issues": "read",
"vulnerability_alerts": "read",
}
Functions ¶
This section is empty.
Types ¶
type Hosted ¶
type Hosted struct {
AppID int64
Slug string
ClientID string
ClientSecret []byte `json:"-"`
PrivateKeyPEM []byte `json:"-"`
WebhookSecret []byte `json:"-"`
// contains filtered or unexported fields
}
func LoadHosted ¶
func LoadHosted(f config.GitHubAppFiles) (*Hosted, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) HandleWebhook ¶
func (*Service) InstallCallback ¶
func (*Service) ManifestCallback ¶
func (*Service) OAuthCallback ¶
Click to show internal directories.
Click to hide internal directories.