Documentation ¶
Index ¶
- type Client
- type ClientSet
- func (c *ClientSet) CreateBranch(ctx context.Context, req CreateBranchRequest) (*github.Reference, *github.Response, error)
- func (c *ClientSet) CreatePullRequest(ctx context.Context, req CreatePRRequest) (*github.PullRequest, *github.Response, error)
- func (c *ClientSet) GetBranch(ctx context.Context, req GetBranchRequest) (*github.Reference, *github.Response, error)
- func (c *ClientSet) GetRepositoryContents(ctx context.Context, req GetRepositoryContentsRequest) (fileContent *github.RepositoryContent, ...)
- func (c *ClientSet) GetRepositoryReleases(ctx context.Context, req CommonRequest) ([]*github.RepositoryRelease, *github.Response, error)
- func (c *ClientSet) UpdateFile(ctx context.Context, req UpdateFileRequest) (*github.RepositoryContentResponse, *github.Response, error)
- type CommonRequest
- type CreateBranchRequest
- type CreatePRRequest
- type GetBranchRequest
- type GetReleaseRequest
- type GetRepositoryContentsRequest
- type UpdateFileRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // GetRepositoryContents // // Fetches a specific file/folder in a github repo on a given branch. GetRepositoryContents(ctx context.Context, req GetRepositoryContentsRequest) (fileContent *github.RepositoryContent, directoryContent []*github.RepositoryContent, resp *github.Response, err error) // GetRepositoryReleases // // Get all releases from a given repository. GetRepositoryReleases(ctx context.Context, req CommonRequest) ([]*github.RepositoryRelease, *github.Response, error) // GetBranch // // Returns a branch given a branch name. GetBranch(ctx context.Context, req GetBranchRequest) (*github.Reference, *github.Response, error) // CreatePullRequest // // Creates a Pull Requests on a given repository. CreatePullRequest(ctx context.Context, req CreatePRRequest) (*github.PullRequest, *github.Response, error) // CreateBranch // // Creates a branch on a given repository. CreateBranch(ctx context.Context, req CreateBranchRequest) (*github.Reference, *github.Response, error) // UpdateFile // // Updates a file in a given repo with new content. UpdateFile(ctx context.Context, req UpdateFileRequest) (*github.RepositoryContentResponse, *github.Response, error) }
type ClientSet ¶
type ClientSet struct {
// contains filtered or unexported fields
}
func (*ClientSet) CreateBranch ¶
func (*ClientSet) CreatePullRequest ¶
func (c *ClientSet) CreatePullRequest(ctx context.Context, req CreatePRRequest) (*github.PullRequest, *github.Response, error)
func (*ClientSet) GetRepositoryContents ¶
func (c *ClientSet) GetRepositoryContents(ctx context.Context, req GetRepositoryContentsRequest) (fileContent *github.RepositoryContent, directoryContent []*github.RepositoryContent, resp *github.Response, err error)
func (*ClientSet) GetRepositoryReleases ¶
func (c *ClientSet) GetRepositoryReleases(ctx context.Context, req CommonRequest) ([]*github.RepositoryRelease, *github.Response, error)
func (*ClientSet) UpdateFile ¶
func (c *ClientSet) UpdateFile(ctx context.Context, req UpdateFileRequest) (*github.RepositoryContentResponse, *github.Response, error)
type CommonRequest ¶
type CreateBranchRequest ¶
type CreatePRRequest ¶
type CreatePRRequest struct { Owner string Repo string *github.NewPullRequest }
type GetBranchRequest ¶
type GetReleaseRequest ¶
type UpdateFileRequest ¶
type UpdateFileRequest struct { Owner string Repo string FilePath string *github.RepositoryContentFileOptions }
Click to show internal directories.
Click to hide internal directories.