Documentation ¶
Index ¶
- Variables
- func Close(db *gorm.DB) error
- func CountAllConnections(info interface{}) (int64, error)
- func CountAllNameIDs(info interface{}) (int64, error)
- func CountConnectionsByProvider(info interface{}, providerName string) (int64, error)
- func CountNameIDsByConnection(info interface{}, connectionName string) (int64, error)
- func Delete(info interface{}, columName string, columnValue string) (bool, error)
- func DeleteBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) (bool, error)
- func DeleteByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) (bool, error)
- func Get(info interface{}, columnName string, columnValue string) error
- func GetBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) error
- func GetByConditionAndContain(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) error
- func GetByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) error
- func GetByConditionsAndContain(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) error
- func GetByContain(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) error
- func Has(info interface{}, columnName string, columnValue string) (bool, error)
- func HasBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) (bool, error)
- func HasByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, ...) (bool, error)
- func Insert(info interface{}) error
- func List(infoList interface{}) error
- func ListByCondition(infoList interface{}, columnName string, columnValue string) error
- func ListByConditions(infoList interface{}, columnName1 string, columnValue1 string, ...) error
- func ListNameIDByConnection(info interface{}, connectionName string) ([]string, error)
- func Open() (*gorm.DB, error)
- func Ping() error
- type AZList
- type KVList
Constants ¶
This section is empty.
Variables ¶
var DB_FILE_PATH string
Functions ¶
func CountAllConnections ¶ added in v0.8.17
CountAllConnections counts all entries in the connection_config_infos table info is a pointer to a ConnectionConfigInfo struct
func CountAllNameIDs ¶ added in v0.8.17
CountAllNameIDs counts all name_ids using the model type passed as info
func CountConnectionsByProvider ¶ added in v0.8.17
CountConnectionsByProvider counts entries in the connection_config_infos table by provider_name info is a pointer to a ConnectionConfigInfo struct
func CountNameIDsByConnection ¶ added in v0.8.17
CountNameIDsByConnection counts name_ids in a model filtered by connection_name
func DeleteBy3Conditions ¶
func DeleteBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string, columnName3 string, columnValue3 string) (bool, error)
Delete all Infos with three conditions ex) Conneciton Name, Resource Name, Owner VPC Name
func DeleteByConditions ¶
func DeleteByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string) (bool, error)
Delete all Infos with two conditions ex) Conneciton Name, Resource Name ex) Conneciton Name, Owner VPC Name
func GetBy3Conditions ¶
func GetBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string, columnName3 string, columnValue3 string) error
Get a Info with three conditions(Conneciton Name, Resource NameId, Owner VPC Name)
func GetByConditionAndContain ¶ added in v0.8.11
func GetByConditionAndContain(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnContainValue2 string) error
GetByConditionAndContain finds an entry that matches the given conditions: - columnName1 must equal columnValue1 - columnName2 must contain columnContainValue2
func GetByConditions ¶
func GetByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string) error
Get a Info with two conditions(Conneciton Name, Resource NameId)
func GetByConditionsAndContain ¶
func GetByConditionsAndContain(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string, columnName3 string, columnValue3 string) error
Get a Info with two conditions(Conneciton Name, Resource NameId) and contain(contained_text)
func GetByContain ¶
func GetByContain(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string) error
Get a Info with a condition(Conneciton Name) and contains(contained_text)
func HasBy3Conditions ¶
func HasBy3Conditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string, columnName3 string, columnValue3 string) (bool, error)
Check if a Info exists with three conditions(Conneciton Name, Resource NameId, Owner vpc name)
func HasByConditions ¶
func HasByConditions(info interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string) (bool, error)
Check if a Info exists with two conditions(Conneciton Name, Resource NameId)
func ListByCondition ¶
List all Info with a condition(ex. Conneciton Name)
func ListByConditions ¶
func ListByConditions(infoList interface{}, columnName1 string, columnValue1 string, columnName2 string, columnValue2 string) error
List all Info with two conditions(ex. Conneciton Name and Owner VPC Name) Used for SubnetInfoList, ...
func ListNameIDByConnection ¶ added in v0.8.20
ListNameIDByConnection retrieves a list of name_ids in a model filtered by connection_name