Versions in this module Expand all Collapse all v3 v3.46.0 Jun 16, 2025 Changes in this version + type Addition struct + AuthorEmail string + AuthorName string + CommitterEmail string + CommitterName string + CopyCommitMsg string + DeleteCommitMsg string + GPGKeyPassphrase string + GPGPrivateKey string + GitHubProxy string + MkdirCommitMsg string + MoveCommitMsg string + Owner string + PutCommitMsg string + Ref string + RenameCommitMsg string + Repo string + Token string + type BranchResp struct + Commit CommitResp + Name string + type CommitResp struct + Sha string + type ErrResp struct + DocumentationURL string + Message string + Status string + type Github struct + func (d *Github) Config() driver.Config + func (d *Github) Copy(ctx context.Context, srcObj, dstDir model.Obj) error + func (d *Github) Drop(ctx context.Context) error + func (d *Github) GetAddition() driver.Additional + func (d *Github) Init(ctx context.Context) error + func (d *Github) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) + func (d *Github) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) + func (d *Github) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error + func (d *Github) Move(ctx context.Context, srcObj, dstDir model.Obj) error + func (d *Github) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error + func (d *Github) Remove(ctx context.Context, obj model.Obj) error + func (d *Github) Rename(ctx context.Context, srcObj model.Obj, newName string) error + type Links struct + Git string + Html string + Self string + type MessageTemplateVars struct + ObjName string + ObjPath string + ParentName string + ParentPath string + TargetName string + TargetPath string + UserName string + type Object struct + Content string + DownloadURL string + Encoding string + Entries []Object + GitURL string + HtmlURL string + Links Links + Name string + Path string + Sha string + Size int64 + SubmoduleGitURL string + Target string + Type string + URL string + type PutBlobResp struct + Sha string + URL string + type RepoResp struct + DefaultBranch string + type TreeObjReq struct + Mode string + Path string + Sha interface{} + Type string + type TreeObjResp struct + Size int64 + URL string + type TreeReq struct + BaseTree interface{} + Trees []interface{} + type TreeResp struct + Sha string + Trees []TreeObjResp + Truncated bool + URL string + type UpdateRefReq struct + Force bool + Sha string + type UserResp struct + Email string + Name string