Documentation ¶
Index ¶
- type Github
- func (g *Github) CancelDeployment(ctx context.Context, u *ent.User, r *ent.Repo, d *ent.Deployment, ...) error
- func (g *Github) Client(c context.Context, token string) *github.Client
- func (g *Github) CompareCommits(ctx context.Context, u *ent.User, r *ent.Repo, base, head string, ...) ([]*extent.Commit, []*extent.CommitFile, error)
- func (g *Github) CreateRemoteDeployment(ctx context.Context, u *ent.User, r *ent.Repo, d *ent.Deployment, ...) (*extent.RemoteDeployment, error)
- func (g *Github) CreateRemoteDeploymentStatus(ctx context.Context, u *ent.User, r *ent.Repo, d *ent.Deployment, ...) (*extent.RemoteDeploymentStatus, error)
- func (g *Github) CreateWebhook(ctx context.Context, u *ent.User, r *ent.Repo, c *extent.WebhookConfig) (int64, error)
- func (g *Github) DeleteWebhook(ctx context.Context, u *ent.User, r *ent.Repo, id int64) error
- func (g *Github) GetBranch(ctx context.Context, u *ent.User, r *ent.Repo, branch string) (*extent.Branch, error)
- func (g *Github) GetCommit(ctx context.Context, u *ent.User, r *ent.Repo, sha string) (*extent.Commit, error)
- func (g *Github) GetConfig(ctx context.Context, u *ent.User, r *ent.Repo) (*extent.Config, error)
- func (g *Github) GetConfigRedirectURL(ctx context.Context, u *ent.User, r *ent.Repo) (string, error)
- func (g *Github) GetDefaultBranch(ctx context.Context, u *ent.User, r *ent.Repo) (*extent.Branch, error)
- func (g *Github) GetNewConfigRedirectURL(ctx context.Context, u *ent.User, r *ent.Repo) (string, error)
- func (g *Github) GetRateLimit(ctx context.Context, u *ent.User) (*extent.RateLimit, error)
- func (g *Github) GetRemoteUserByToken(ctx context.Context, token string) (*extent.RemoteUser, error)
- func (g *Github) GetTag(ctx context.Context, u *ent.User, r *ent.Repo, tag string) (*extent.Tag, error)
- func (g *Github) GraphQLClient(c context.Context, token string) *graphql.Client
- func (g *Github) ListBranches(ctx context.Context, u *ent.User, r *ent.Repo, opt *interactor.ListOptions) ([]*extent.Branch, error)
- func (g *Github) ListCommitStatuses(ctx context.Context, u *ent.User, r *ent.Repo, sha string) ([]*extent.Status, error)
- func (g *Github) ListCommits(ctx context.Context, u *ent.User, r *ent.Repo, branch string, ...) ([]*extent.Commit, error)
- func (g *Github) ListRemoteOrgsByToken(ctx context.Context, token string) ([]string, error)
- func (g *Github) ListRemoteRepos(ctx context.Context, u *ent.User) ([]*extent.RemoteRepo, error)
- func (g *Github) ListTags(ctx context.Context, u *ent.User, r *ent.Repo, opt *i.ListOptions) ([]*extent.Tag, error)
- type GithubConfig
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
func NewGithub ¶
func NewGithub(c *GithubConfig) *Github
func (*Github) CancelDeployment ¶
func (*Github) CompareCommits ¶
func (*Github) CreateRemoteDeployment ¶
func (*Github) CreateRemoteDeploymentStatus ¶
func (g *Github) CreateRemoteDeploymentStatus(ctx context.Context, u *ent.User, r *ent.Repo, d *ent.Deployment, ds *extent.RemoteDeploymentStatus) (*extent.RemoteDeploymentStatus, error)
func (*Github) CreateWebhook ¶
func (*Github) DeleteWebhook ¶
func (*Github) GetConfigRedirectURL ¶
func (*Github) GetDefaultBranch ¶
func (*Github) GetNewConfigRedirectURL ¶
func (*Github) GetRateLimit ¶
func (*Github) GetRemoteUserByToken ¶
func (*Github) GraphQLClient ¶
func (*Github) ListBranches ¶
func (*Github) ListCommitStatuses ¶
func (*Github) ListCommits ¶
func (*Github) ListRemoteOrgsByToken ¶
func (*Github) ListRemoteRepos ¶
type GithubConfig ¶
type GithubConfig struct {
BaseURL string
}
Click to show internal directories.
Click to hide internal directories.