Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepoFile ¶
func NewRepositoryService ¶
func NewRepositoryService(v UserInfo) platform.Repository
func NewUserService ¶ added in v1.3.1
Types ¶
type CommitInfo ¶
type Commits ¶
type Commits struct {
CommitInfo
Actions []Action `json:"actions" required:"true"`
}
type Config ¶
type Config struct {
OBS OBSConfig `json:"obs" required:"true"`
LFSPath string `json:"lfs_path" required:"true"`
Endpoint string `json:"endpoint" required:"true"`
RootToken string `json:"root_token" required:"true"`
GraphqlEndpoint string `json:"graphql_endpoint" required:"true"`
DefaultBranch string `json:"default_branch"`
DownloadExpiry int `json:"download_expiry"`
// MaxFileCount specifies the count of file to operate once.
MaxFileCount int `json:"max_file_count"`
}
func (*Config) SetDefault ¶
func (cfg *Config) SetDefault()
type FileCreateOption ¶
type FileCreateOption struct {
CommitInfo
Content string `json:"content"`
Encoding string `json:"encoding,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.