Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyDomainAddtionalResource(reqData model.AdditionalResource, orgDB *mysql.DB) error
- func CreateDomain(domainCreate model.DomainCreate, userInfo *httpcommon.UserInfo, db *mysql.DB, ...) (*model.Domain, error)
- func CreateSubDomain(subDomainCreate model.SubDomainCreate, db *mysql.DB, ...) (*model.SubDomain, error)
- func DeleteDomainByNameOrUUID(nameOrUUID string, db *mysql.DB, userInfo *httpcommon.UserInfo, ...) (map[string]string, error)
- func DeleteSubDomain(lcuuid string, db *mysql.DB, userInfo *httpcommon.UserInfo, ...) (map[string]string, error)
- func GetDomainAdditionalResource(resourceType, resourceName string, orgDB *mysql.DB) (*model.AdditionalResource, error)
- func GetDomainAdditionalResourceExample() (string, error)
- func GetDomains(orgDB *mysql.DB, excludeTeamIDs []int, filter map[string]interface{}) (resp []model.Domain, err error)
- func GetSubDomains(orgDB *mysql.DB, excludeTeamIDs []int, filter map[string]interface{}) ([]*model.SubDomain, error)
- func GetVPCs(orgID int, filter map[string]interface{}) ([]*mysqlmodel.VPC, error)
- func KubernetesSetVtap(lcuuid, value string, isSubDomain bool, db *mysql.DB) error
- func ListDomainAdditionalResource(resourceType, resourceName string, orgDB *mysql.DB) (map[string]interface{}, error)
- func UpdateDomain(lcuuid string, domainUpdate map[string]interface{}, ...) (*model.Domain, error)
- func UpdateSubDomain(lcuuid string, db *mysql.DB, userInfo *httpcommon.UserInfo, ...) (*model.SubDomain, error)
- type DomainChecker
Constants ¶
View Source
const ( CLOUD_TAGS_RESOURCE_TYPE_CHOST = "chost" CLOUD_TAGS_RESOURCE_TYPE_POD_NS = "pod_ns" )
Variables ¶
Functions ¶
func ApplyDomainAddtionalResource ¶
func ApplyDomainAddtionalResource(reqData model.AdditionalResource, orgDB *mysql.DB) error
func CreateDomain ¶
func CreateDomain(domainCreate model.DomainCreate, userInfo *httpcommon.UserInfo, db *mysql.DB, cfg *config.ControllerConfig) (*model.Domain, error)
func CreateSubDomain ¶
func CreateSubDomain(subDomainCreate model.SubDomainCreate, db *mysql.DB, userInfo *httpcommon.UserInfo, cfg *config.ControllerConfig) (*model.SubDomain, error)
func DeleteDomainByNameOrUUID ¶
func DeleteDomainByNameOrUUID(nameOrUUID string, db *mysql.DB, userInfo *httpcommon.UserInfo, cfg *config.ControllerConfig) (map[string]string, error)
func DeleteSubDomain ¶
func DeleteSubDomain(lcuuid string, db *mysql.DB, userInfo *httpcommon.UserInfo, cfg *config.ControllerConfig) (map[string]string, error)
func GetDomains ¶
func GetSubDomains ¶
func KubernetesSetVtap ¶
func UpdateDomain ¶
func UpdateSubDomain ¶
Types ¶
type DomainChecker ¶
type DomainChecker struct {
// contains filtered or unexported fields
}
func NewDomainCheck ¶
func NewDomainCheck(ctx context.Context) *DomainChecker
func (*DomainChecker) CheckRegularly ¶
func (c *DomainChecker) CheckRegularly(sCtx context.Context)
func (*DomainChecker) Start ¶
func (c *DomainChecker) Start(sCtx context.Context)
func (*DomainChecker) Stop ¶
func (c *DomainChecker) Stop()
Click to show internal directories.
Click to hide internal directories.