Documentation
¶
Index ¶
- Variables
- func LoadPipelinesAtSHA(ctx context.Context, c *Client, owner, name, sha string) ([]*engine.Pipeline, error)
- type Client
- func (c *Client) CreateCommitStatus(ctx context.Context, cfg CreateCommitStatusConfig) error
- func (c *Client) DeleteReleaseAsset(ctx context.Context, owner, name string, assetID int64) error
- func (c *Client) FetchRepository(ctx context.Context, owner string, name string) (*Repository, error)
- func (c *Client) GetContentAtSHA(ctx context.Context, owner, name, path, ref string) (string, error)
- func (c *Client) GetInstallation(ctx context.Context, id int64) (*Installation, error)
- func (c *Client) GetTreeAtSHA(ctx context.Context, owner, name, sha string) ([]TreeEntry, error)
- func (c *Client) ListBranches(ctx context.Context, owner, name string) ([]string, error)
- func (c *Client) ListInstallationRepos(ctx context.Context) ([]Repository, error)
- func (c *Client) ListReleaseAssets(ctx context.Context, owner, name string, releaseID int64) ([]*gh.ReleaseAsset, error)
- func (c *Client) ListUserInstallations(ctx context.Context) ([]Installation, error)
- func (c *Client) ResolveTagSHA(ctx context.Context, owner, name, tag string) (string, error)
- func (c *Client) UploadReleaseAsset(ctx context.Context, owner, name string, releaseID int64, assetName string, ...) (*gh.ReleaseAsset, error)
- type Config
- type CreateCommitStatusConfig
- type InstallStatusResult
- type Installation
- type Integration
- func (i *Integration) InstallStatus(ctx context.Context, userToken string) (InstallStatusResult, error)
- func (i *Integration) LinkUserIntegration(ctx context.Context, userID string, userToken string) ([]Installation, error)
- func (i *Integration) ListBranches(ctx context.Context, userToken, fullName string) ([]string, error)
- func (i *Integration) ListInstallableRepos(ctx context.Context, userToken string) ([]Repository, error)
- func (i *Integration) ListUserIntegrations(ctx context.Context, userID string) ([]store.UserIntegration, error)
- func (i *Integration) Name() string
- func (i *Integration) RecordInstall(ctx context.Context, installID int64, setupAction string) error
- func (i *Integration) SubmitPush(ctx context.Context, tracked store.TrackedRepository, ref, sha string, ...) ([]*daemon.Run, error)
- func (i *Integration) SubmitRelease(ctx context.Context, tracked store.TrackedRepository, installID int64, ...) ([]*daemon.Run, error)
- func (i *Integration) TrackRepository(ctx context.Context, userToken, ownerID, fullName, branch string) error
- func (i *Integration) UnlinkUserIntegration(ctx context.Context, userID, provider string) error
- type ReleaseInfo
- type Repository
- type TreeEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInstallNotFound = errors.New("github: app is not installed for repository owner")
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateCommitStatus ¶
func (c *Client) CreateCommitStatus(ctx context.Context, cfg CreateCommitStatusConfig) error
func (*Client) DeleteReleaseAsset ¶
func (*Client) FetchRepository ¶
func (*Client) GetContentAtSHA ¶
func (*Client) GetInstallation ¶
func (*Client) GetTreeAtSHA ¶
func (*Client) ListBranches ¶
func (*Client) ListInstallationRepos ¶
func (c *Client) ListInstallationRepos(ctx context.Context) ([]Repository, error)
func (*Client) ListReleaseAssets ¶
func (*Client) ListUserInstallations ¶
func (c *Client) ListUserInstallations(ctx context.Context) ([]Installation, error)
func (*Client) ResolveTagSHA ¶
type InstallStatusResult ¶
type InstallStatusResult struct {
Installed bool
Accounts []Installation
InstallURL string
}
type Installation ¶
type Integration ¶
type Integration struct {
// contains filtered or unexported fields
}
Integration is the Github bot
func (*Integration) InstallStatus ¶
func (i *Integration) InstallStatus(ctx context.Context, userToken string) (InstallStatusResult, error)
func (*Integration) LinkUserIntegration ¶
func (i *Integration) LinkUserIntegration(ctx context.Context, userID string, userToken string) ([]Installation, error)
func (*Integration) ListBranches ¶
func (*Integration) ListInstallableRepos ¶
func (i *Integration) ListInstallableRepos(ctx context.Context, userToken string) ([]Repository, error)
func (*Integration) ListUserIntegrations ¶
func (i *Integration) ListUserIntegrations(ctx context.Context, userID string) ([]store.UserIntegration, error)
func (*Integration) Name ¶
func (i *Integration) Name() string
func (*Integration) RecordInstall ¶
func (*Integration) SubmitPush ¶
func (i *Integration) SubmitPush(ctx context.Context, tracked store.TrackedRepository, ref, sha string, installID int64) ([]*daemon.Run, error)
func (*Integration) SubmitRelease ¶
func (i *Integration) SubmitRelease(ctx context.Context, tracked store.TrackedRepository, installID int64, info ReleaseInfo) ([]*daemon.Run, error)
func (*Integration) TrackRepository ¶
func (i *Integration) TrackRepository(ctx context.Context, userToken, ownerID, fullName, branch string) error
func (*Integration) UnlinkUserIntegration ¶
func (i *Integration) UnlinkUserIntegration(ctx context.Context, userID, provider string) error
type ReleaseInfo ¶
type Repository ¶
Click to show internal directories.
Click to hide internal directories.