Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenGenericOssReleasePrefixKey ¶
GenGenericOssReleasePrefixKey generates generic oss release prefix, which is use for OssStorage and S3Storage.
func GenProjectDirPath ¶
GenProjectDirPath returns the project dir path, which is used for LocalStorage.
Types ¶
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
LocalStorage is an implementation of graph.Storage which uses local filesystem as storage.
func NewLocalStorage ¶
func NewLocalStorage(path string) *LocalStorage
NewLocalStorage creates a new LocalStorage instance.
type OssStorage ¶
type OssStorage struct {
// contains filtered or unexported fields
}
OssStorage is an implementation of project.Storage which uses oss as storage.
func NewOssStorage ¶
func NewOssStorage(bucket *oss.Bucket, prefix string) *OssStorage
NewOssStorage creates a new OssStorage instance.
type S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
S3Storage is an implementation of graph.Storage which uses s3 as storage.
func NewS3Storage ¶
NewS3Storage creates a new S3Storage instance.
Click to show internal directories.
Click to hide internal directories.