database

package
v0.0.0-...-caacdb4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 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 DeleteOSSCache

func DeleteOSSCache(AccessKeyId string)

func DeleteRDSCache

func DeleteRDSCache(AccessKeyId string)

func DeleteTakeoverConsoleCache

func DeleteTakeoverConsoleCache(provider string)

func InsertConfig

func InsertConfig(config cloud.Config)

func InsertECSCache

func InsertECSCache(ECSCache []pubutil.ECSCache)

func InsertOSSCache

func InsertOSSCache(OSSCache []pubutil.OSSCache)

func InsertRDSCache

func InsertRDSCache(RDSCache []pubutil.RDSCache)

func InsertTakeoverConsoleCache

func InsertTakeoverConsoleCache(provider string, PrimaryAccountID string, userName string, password string, loginURL 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 SelectOSSCache

func SelectOSSCache(provider string) []pubutil.OSSCache

func SelectOSSCacheFilter

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

func SelectRDSCache

func SelectRDSCache(provider string) []pubutil.RDSCache

func SelectRDSCacheFilter

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

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