Documentation ¶
Index ¶
- Constants
- func AccessTokenFromContext(ctx context.Context) string
- func AuthCodeURL(state string) string
- func CommitBlob(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) (*github.Response, error)
- func CommitBlobs(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) (*github.Response, error)
- func CreateBlob(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) (*github.Blob, *github.Response, error)
- func DecodeState(r *http.Request) (string, string)
- func DecryptExchangeCode(code string) (string, error)
- func DeleteFiles(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) (*github.Response, error)
- func DeleteFolder(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) (*github.Response, error)
- func DeleteFolders(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) (*github.Response, error)
- func EncodeState(r *http.Request, oauthStateSecret string) (string, error)
- func EncryptAccessToken(accessToken string) (string, error)
- func Exchange(code string) (string, error)
- func GetAllLocaleContents(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) ([]*github.RepositoryContent, *github.Response, error)
- func GetAllLocaleContentsWithTree(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) ([]*github.RepositoryContent, *github.Response, error)
- func GetArchivedContents(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) ([]*github.RepositoryContent, *github.Response, error)
- func GetBlob(ctx context.Context, accessToken string, owner string, repo string, ...) ([]byte, *github.Response, error)
- func GetCommits(ctx context.Context, accessToken string, owner string, repo string, ref string) ([]*github.RepositoryCommit, *github.Response, error)
- func GetContentsRecursive(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) ([]*github.RepositoryContent, *github.Response, error)
- func GetContentsRecursive_old(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) ([]*github.RepositoryContent, *github.Response, error)
- func GetDirectorySha(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) string
- func GetFileContent(ctx context.Context, accessToken string, owner string, repo string, ...) (*github.RepositoryContent, *github.Response, error)
- func GetFilesContent(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) ([]*github.RepositoryContent, *github.Response, error)
- func GetSchema(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) (*github.RepositoryContent, *github.Response, error)
- func GetSchemasRecursive(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) ([]*github.RepositoryContent, *github.Response, error)
- func GetTree(ctx context.Context, accessToken string, owner string, repo string, ...) ([]*github.RepositoryContent, *github.Response, error)
- func GetUser(ctx context.Context, accessToken string) (*github.User, error)
- func ListBranches(ctx context.Context, accessToken string, owner, repo string) ([]*github.Branch, *github.Response, error)
- func ListRepositories(ctx context.Context, accessToken string, page, perPage int, ...) ([]*github.Repository, *github.Response, error)
- func ReturnURLWithCode(returnURL, code string, m int) (string, error)
- func SearchByID(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) (*github.RepositoryContent, *github.Response, error)
- func SearchContentsByID(ctx context.Context, accessToken string, owner string, repo string, ref string, ...) ([]*github.RepositoryContent, *github.Response, error)
- func UserFromContext(ctx context.Context) string
- func WithUser(next http.Handler) http.Handler
- type BlobEntry
- type Commit
- type Owner
- type PushHookPayload
- type Pusher
- type Repository
- type User
Constants ¶
View Source
const ( RetUrlCodePath = 0 RetUrlCodeQuery = 1 )
Variables ¶
This section is empty.
Functions ¶
func AccessTokenFromContext ¶
func AuthCodeURL ¶
func CommitBlob ¶
func CommitBlobs ¶
func CreateBlob ¶
func DecryptExchangeCode ¶
func DeleteFiles ¶
func DeleteFolder ¶
func DeleteFolders ¶
func EncryptAccessToken ¶
func GetAllLocaleContents ¶
func GetArchivedContents ¶
func GetCommits ¶
func GetContentsRecursive ¶
func GetDirectorySha ¶
func GetFileContent ¶
func GetFilesContent ¶
func GetSchemasRecursive ¶
func ListBranches ¶
func ListRepositories ¶
func SearchByID ¶
func SearchContentsByID ¶
func UserFromContext ¶
Types ¶
type PushHookPayload ¶
type PushHookPayload struct { Ref string `json:"ref"` Repository Repository `json:"repository"` Commit Commit `json:"head_commit"` Pusher Pusher `json:"pusher"` }
type Repository ¶
Click to show internal directories.
Click to hide internal directories.