Documentation ¶
Index ¶
- Variables
- func BinDec(b string) (int, error)
- func ClientUpdateOrInsert(ins []*AzureClient)
- func DecBin(n int) string
- func GetDefault() *gorm.DB
- func GetSecretsHash() (string, error)
- func Inserts(ins []*AzureClient)
- func KubeconfigDelete(ins []*AzureClient)
- func KubeconfigDeleteOne(sID string) error
- func KubeconfigGetCount() int
- func UpdateAzureClient(in *AzureClient) error
- type AzureClient
- type BoolConfig
- type ResGroupNameCost
Constants ¶
This section is empty.
Variables ¶
View Source
var CanWriteDB = true
Functions ¶
func GetDefault ¶
Types ¶
type AzureClient ¶
type AzureClient struct { gorm.Model SubsName string SubscriptionID string TenantID string ClientID string ClientSecret string CreatedAt time.Time UpdatedAt time.Time DeletedAt time.Time }
func DiffClientSecrets ¶
func DiffClientSecrets(oldData []*AzureClient, newData []*AzureClient) []*AzureClient
对比最新的数据newData,找出oldData里已经过期的数据
func (*AzureClient) TableName ¶
func (t *AzureClient) TableName() string
type BoolConfig ¶
type BoolConfig struct { IsAddName bool //1 IsAddAddress bool //2 IsAddEamil bool //3 IsAddAge bool //4 IsAddPwd bool //5 }
a lot of bool fields
func (*BoolConfig) FromBin ¶
func (c *BoolConfig) FromBin(ins string) error
type ResGroupNameCost ¶
get 自定义select
func GetDailyResGroupCost ¶
func GetDailyResGroupCost(in *AzureClient) []*ResGroupNameCost
func (*ResGroupNameCost) TableName ¶
func (t *ResGroupNameCost) TableName() string
Click to show internal directories.
Click to hide internal directories.