database

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CacheDb *gorm.DB

Functions

func DeleteConfig

func DeleteConfig()

func DeleteECSCache

func DeleteECSCache(AccessKeyId string)

func DeleteImageShareCache added in v0.5.0

func DeleteImageShareCache(ImageId string)

func DeleteOSSCache

func DeleteOSSCache(AccessKeyId string)

func DeleteRDSAccountCache added in v0.5.0

func DeleteRDSAccountCache(provider string, DBInstanceId string)

func DeleteRDSCache

func DeleteRDSCache(AccessKeyId string)

func DeleteRDSPublicCache added in v0.5.0

func DeleteRDSPublicCache(provider string, DBInstanceId string)

func DeleteRDSWhiteListCache added in v0.5.0

func DeleteRDSWhiteListCache(provider string, DBInstanceId string, WhiteList string)

func DeleteTakeoverConsoleCache

func DeleteTakeoverConsoleCache(provider string)

func InsertConfig

func InsertConfig(config cloud.Config)

func InsertECSCache

func InsertECSCache(ECSCache []pubutil.ECSCache)

func InsertImageShareCache added in v0.5.0

func InsertImageShareCache(ImageShareCache pubutil.ImageShareCache)

func InsertOSSCache

func InsertOSSCache(OSSCache []pubutil.OSSCache)

func InsertRDSAccountsCache added in v0.5.0

func InsertRDSAccountsCache(provider string, DBInstanceId string, engine string, userName string, password string, region string)

func InsertRDSCache

func InsertRDSCache(RDSCache []pubutil.RDSCache)

func InsertRDSPublicCache added in v0.5.0

func InsertRDSPublicCache(provider string, DBInstanceId string, engine string, IPAddress string, ConnectionAddress string, Port string, region string)

func InsertRDSWhiteListCache added in v0.5.0

func InsertRDSWhiteListCache(provider string, DBInstanceId string, engine string, IPArrayName string, IPType string, IPList string, WhiteList string, region string)

func InsertTakeoverConsoleCache

func InsertTakeoverConsoleCache(provider string, primaryAccountId string, userName string, password string, loginURL string, consoleAccessKeyId string, consoleAccessKeySecret string)

func InsertTimestamp

func InsertTimestamp(TimestampCache pubutil.TimestampCache)

func Open

func Open(path string) *gorm.DB

func SelectConfig

func SelectConfig() []cloud.Config

func SelectConfigInUse

func SelectConfigInUse(provider string) cloud.Config

func SelectECSCache

func SelectECSCache(provider string) []pubutil.ECSCache

func SelectEcsCacheFilter

func SelectEcsCacheFilter(provider string, region string, specifiedInstanceId string, running bool) []pubutil.ECSCache

func SelectImageShareCache added in v0.5.0

func SelectImageShareCache(provider string) []pubutil.ImageShareCache

func SelectOSSCache

func SelectOSSCache(provider string) []pubutil.OSSCache

func SelectOSSCacheFilter

func SelectOSSCacheFilter(provider string, region string) []pubutil.OSSCache

func SelectRDSAccountCache added in v0.5.0

func SelectRDSAccountCache(provider string) []pubutil.RDSAccountsCache

func SelectRDSCache

func SelectRDSCache(provider string) []pubutil.RDSCache

func SelectRDSCacheFilter

func SelectRDSCacheFilter(provider string, region string, specifiedInstanceId string, engine string) []pubutil.RDSCache

func SelectRDSPublicCache added in v0.5.0

func SelectRDSPublicCache(provider string) []pubutil.RDSPublicCache

func SelectRDSWhiteListCache added in v0.5.0

func SelectRDSWhiteListCache(provider string) []pubutil.RDSWhiteListCache

func SelectTakeoverConsoleCache

func SelectTakeoverConsoleCache(provider string) []pubutil.TakeoverConsoleCache

func SelectTimestampType

func SelectTimestampType(TimestampType string) int64

func UpdateConfigInUse

func UpdateConfigInUse(config cloud.Config)

func UpdateConfigModify

func UpdateConfigModify()

func UpdateConfigSwitch

func UpdateConfigSwitch(provider string)

Types

type GlobalDB

type GlobalDB struct {
	MainDB *gorm.DB
}
var CacheDataBase *GlobalDB

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL