Documentation ¶
Index ¶
- func IsErrorTooManyFilesToDelete(err error) bool
- func NewErrorTooManyFilesToDelete(err error) errorTooManyFilesToDelete
- type RepoDir
- type RepoDirFile
- type RepoDirInfo
- type RepoFile
- type RepoFileContent
- type RepoFileInfo
- type RepoOption
- type RepoPathItem
- type Repository
- type User
- type UserInfo
- type UserOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorTooManyFilesToDelete ¶
func NewErrorTooManyFilesToDelete(err error) errorTooManyFilesToDelete
Types ¶
type RepoDirFile ¶
type RepoDirInfo ¶
type RepoFile ¶
type RepoFile interface { List(u *UserInfo, d *RepoDir) ([]RepoPathItem, error) Create(u *UserInfo, f *RepoFileInfo, content *RepoFileContent) error Update(u *UserInfo, f *RepoFileInfo, content *RepoFileContent) error Delete(u *UserInfo, f *RepoFileInfo) error DeleteDir(u *UserInfo, f *RepoDirInfo) error Download(token string, f *RepoFileInfo) (data []byte, notFound bool, err error) IsLFSFile(data []byte) (is bool, sha string) GenLFSDownloadURL(sha string) (string, error) GetDirFileInfo(u *UserInfo, d *RepoDirFile) (sha string, exist bool, err error) DownloadRepo(u *UserInfo, repoId string, handle func(io.Reader, int64)) error }
type RepoFileContent ¶
func (*RepoFileContent) IsOverSize ¶
func (r *RepoFileContent) IsOverSize() bool
type RepoFileInfo ¶
func (*RepoFileInfo) BlacklistFilter ¶
func (r *RepoFileInfo) BlacklistFilter() bool
type RepoOption ¶
type RepoOption struct { Name domain.ResourceName RepoType domain.RepoType }
func (*RepoOption) IsNotEmpty ¶
func (r *RepoOption) IsNotEmpty() bool
type RepoPathItem ¶
type Repository ¶
type Repository interface { New(repo *RepoOption) (string, error) Delete(string) error Fork(srcRepoId string, Name domain.ResourceName) (string, error) Update(repoId string, repo *RepoOption) error }
type User ¶
type User interface { New(UserOption) (userdomain.PlatformUser, error) NewToken(userdomain.PlatformUser) (userdomain.PlatformToken, error) RefreshToken(string) (userdomain.PlatformToken, error) GetToken(string) (userdomain.PlatformToken, error) }
Click to show internal directories.
Click to hide internal directories.