Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenGenericOssStateFileKey ¶
GenGenericOssStateFileKey generates generic oss state file key, which is use for OssStorage and S3Storage.
func GenStateFilePath ¶
GenStateFilePath generates the state file path, which is used for LocalStorage.
Types ¶
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
LocalStorage is an implementation of state.Storage which uses local filesystem as storage.
func NewLocalStorage ¶
func NewLocalStorage(path string) *LocalStorage
type MysqlStorage ¶
type MysqlStorage struct {
// contains filtered or unexported fields
}
MysqlStorage is an implementation of state.Storage which uses mysql as storage.
func NewMysqlStorage ¶
func NewMysqlStorage(db *gorm.DB, project, stack, workspace string) *MysqlStorage
type OssStorage ¶
type OssStorage struct {
// contains filtered or unexported fields
}
OssStorage is an implementation of state.Backend which uses oss as storage.
func NewOssStorage ¶
func NewOssStorage(bucket *oss.Bucket, key string) *OssStorage
type S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
S3Storage is an implementation of state.Storage which uses s3 as storage.
type StateMysqlDO ¶
StateMysqlDO is the data object stored in the mysql db.
func (StateMysqlDO) TableName ¶
func (s StateMysqlDO) TableName() string
Click to show internal directories.
Click to hide internal directories.