Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigOSSBucket = "oss.{{id}}.bucket" ConfigOSSEndpoint = "oss.{{id}}.endpoint" ConfigOSSAccessKeyID = "oss.{{id}}.accesskeyid" ConfigOSSAccessKeyFile = "oss.{{id}}.accesskeyfile" // AccessKeySecret 的内容保存在keyfile中 )
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(mod application.Module) error
Types ¶
type Context ¶
type Context struct { ScanSer ScanService GitSer GitService OSSSer OSSService UploadSer UploadService Pool lang.ReleasePool PWD fs.Path GitConfigFile fs.Path GitRepoDir fs.Path GitWorkingDir fs.Path OSSURL string BucketParams OSSBucketParams GitConfigProps collection.Properties }
type GitService ¶
type GitService interface {
Open() error
}
type GitServiceImpl ¶
type GitServiceImpl struct {
Context *Context
}
func (*GitServiceImpl) Open ¶
func (inst *GitServiceImpl) Open() error
type OSSBucketParams ¶
type OSSService ¶
type OSSServiceImpl ¶
type OSSServiceImpl struct { Context *Context // contains filtered or unexported fields }
func (*OSSServiceImpl) Open ¶
func (inst *OSSServiceImpl) Open() error
func (*OSSServiceImpl) UploadFile ¶
func (inst *OSSServiceImpl) UploadFile(objectName string, file fs.Path) error
type ScanService ¶
type ScanService interface {
Scan(h ScanHandlerFn) error
}
type ScanServiceImpl ¶
type ScanServiceImpl struct {
Context *Context
}
func (*ScanServiceImpl) Scan ¶
func (inst *ScanServiceImpl) Scan(h ScanHandlerFn) error
type UploadService ¶
type UploadService interface {
Upload() error
}
type UploadServiceImpl ¶
type UploadServiceImpl struct {
Context *Context
}
func (*UploadServiceImpl) Upload ¶
func (inst *UploadServiceImpl) Upload() error
Click to show internal directories.
Click to hide internal directories.