resource

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLOUD_TAGS_RESOURCE_TYPE_CHOST  = "chost"
	CLOUD_TAGS_RESOURCE_TYPE_POD_NS = "pod_ns"
)

Variables

View Source
var DOMAIN_PASSWORD_KEYS = map[string]bool{
	"admin_password":      false,
	"secret_key":          false,
	"client_secret":       false,
	"password":            false,
	"boss_secret_key":     false,
	"manage_one_password": false,
	"token":               false,
	"app_secret":          false,
}

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 GetDomainAdditionalResource

func GetDomainAdditionalResource(resourceType, resourceName string, orgDB *mysql.DB) (*model.AdditionalResource, error)

func GetDomainAdditionalResourceExample

func GetDomainAdditionalResourceExample() (string, error)

func GetDomains

func GetDomains(orgDB *mysql.DB, excludeTeamIDs []int, filter map[string]interface{}) (resp []model.Domain, err error)

func GetSubDomains

func GetSubDomains(orgDB *mysql.DB, excludeTeamIDs []int, filter map[string]interface{}) ([]*model.SubDomain, error)

func GetVPCs

func GetVPCs(orgID int, filter map[string]interface{}) ([]*mysqlmodel.VPC, error)

func KubernetesSetVtap

func KubernetesSetVtap(lcuuid, value string, isSubDomain bool, db *mysql.DB) error

func ListDomainAdditionalResource

func ListDomainAdditionalResource(resourceType, resourceName string, orgDB *mysql.DB) (map[string]interface{}, error)

func UpdateDomain

func UpdateDomain(lcuuid string, domainUpdate map[string]interface{}, userInfo *httpcommon.UserInfo, cfg *config.ControllerConfig, db *mysql.DB) (*model.Domain, error)

func UpdateSubDomain

func UpdateSubDomain(lcuuid string, db *mysql.DB, userInfo *httpcommon.UserInfo, cfg *config.ControllerConfig, subDomainUpdate map[string]interface{}) (*model.SubDomain, error)

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()

Jump to

Keyboard shortcuts

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