初始化项目

This commit is contained in:
dragon
2024-12-20 17:25:11 +08:00
parent b107648edd
commit ba0aaa7387
6 changed files with 102 additions and 0 deletions

15
pkg/providers/backend.go Normal file
View File

@@ -0,0 +1,15 @@
package providers
import "io"
type Blob struct {
MediaType string
io.ReadCloser
}
type Backend interface {
Owners() ([]string, error)
Repos(owner string) ([]string, error)
Branches(owner, repo string) ([]string, error)
Open(owner, repo, branch, path string) (Blob, error)
}