resource

package
v0.0.0-...-9634a1a Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 23 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 = []string{
	"admin_password", "secret_key", "password", "boss_secret_key", "manage_one_password",
}

Functions

func ApplyDomainAddtionalResource

func ApplyDomainAddtionalResource(reqData model.AdditionalResource) error

func CreateDomain

func CreateDomain(domainCreate model.DomainCreate, cfg *config.ControllerConfig) (*model.Domain, error)

func CreateSubDomain

func CreateSubDomain(subDomainCreate model.SubDomainCreate) (*model.SubDomain, error)

func DeleteDomain

func DeleteDomain(lcuuid string) (map[string]string, error)

func DeleteSubDomain

func DeleteSubDomain(lcuuid string) (map[string]string, error)

func GetDomains

func GetDomains(filter map[string]interface{}) (resp []model.Domain, err error)

func GetProcesses

func GetProcesses() ([]model.Process, error)

func GetSubDomains

func GetSubDomains(filter map[string]interface{}) ([]*model.SubDomain, error)

func GetVPCs

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

func UpdateDomain

func UpdateDomain(
	lcuuid string, domainUpdate map[string]interface{}, cfg *config.ControllerConfig,
) (*model.Domain, error)

func UpdateSubDomain

func UpdateSubDomain(lcuuid string, 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) Start

func (c *DomainChecker) Start()

func (*DomainChecker) Stop

func (c *DomainChecker) Stop()

func (*DomainChecker) TimedCheck

func (c *DomainChecker) TimedCheck()

Jump to

Keyboard shortcuts

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