webservice

package
v0.0.0-...-2c539bb Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ds datastore.DataStore, addonCacheTime time.Duration)

Init init all webservice, pass in the required parameter object. It can be implemented using the idea of dependency injection.

func RegisterWebService

func RegisterWebService(ws WebService)

RegisterWebService regist webservice

func ValidateAlias

func ValidateAlias(fl validator.FieldLevel) bool

ValidateAlias custom check alias field

func ValidateName

func ValidateName(fl validator.FieldLevel) bool

ValidateName custom check name field

func ValidatePayloadType

func ValidatePayloadType(fl validator.FieldLevel) bool

ValidatePayloadType check PayloadType

Types

type ClusterWebService

type ClusterWebService struct {
	// contains filtered or unexported fields
}

ClusterWebService cluster manage webservice

func NewClusterWebService

func NewClusterWebService(clusterUsecase usecase.ClusterUsecase) *ClusterWebService

NewClusterWebService new cluster webservice

func (*ClusterWebService) GetWebService

func (c *ClusterWebService) GetWebService() *restful.WebService

GetWebService -

type TargetWebService

type TargetWebService struct {
	TargetUsecase usecase.TargetUsecase
	// contains filtered or unexported fields
}

TargetWebService target web service

func (*TargetWebService) GetWebService

func (dt *TargetWebService) GetWebService() *restful.WebService

GetWebService get web service

type WebService

type WebService interface {
	GetWebService() *restful.WebService
}

WebService webservice interface

func GetRegisteredWebService

func GetRegisteredWebService() []WebService

GetRegisteredWebService return registeredWebService

func NewAddonRegistryWebService

func NewAddonRegistryWebService(u usecase.AddonHandler) WebService

NewAddonRegistryWebService returns addon registry web service

func NewAddonWebService

func NewAddonWebService(u usecase.AddonHandler) WebService

NewAddonWebService returns addon web service

func NewApplicationWebService

func NewApplicationWebService(applicationUsecase usecase.ApplicationUsecase, envBindingUsecase usecase.EnvBindingUsecase, workflowUsecase usecase.WorkflowUsecase) WebService

NewApplicationWebService new application manage webservice

func NewDefinitionWebservice

func NewDefinitionWebservice(du usecase.DefinitionUsecase) WebService

NewDefinitionWebservice new definition webservice

func NewEnabledAddonWebService

func NewEnabledAddonWebService(u usecase.AddonHandler) WebService

NewEnabledAddonWebService returns enabled addon web service

func NewEnvWebService

func NewEnvWebService(envUsecase usecase.EnvUsecase, appUseCase usecase.ApplicationUsecase) WebService

NewEnvWebService new env webservice

func NewOAMApplication

func NewOAMApplication(oamApplicationUsecase usecase.OAMApplicationUsecase) WebService

NewOAMApplication new oam application

func NewProjectWebService

func NewProjectWebService(projectUsecase usecase.ProjectUsecase) WebService

NewProjectWebService new project webservice

func NewSystemInfoWebService

func NewSystemInfoWebService(systemInfoUseCase usecase.SystemInfoUsecase) WebService

NewSystemInfoWebService return systemInfo webservice

func NewTargetWebService

func NewTargetWebService(targetUsecase usecase.TargetUsecase, applicationUsecase usecase.ApplicationUsecase) WebService

NewTargetWebService new Target webservice

func NewVelaQLWebService

func NewVelaQLWebService(velaQLUsecase usecase.VelaQLUsecase) WebService

NewVelaQLWebService new velaQL webservice

func NewWebhookWebService

func NewWebhookWebService(webhookUsecase usecase.WebhookUsecase, applicationUsecase usecase.ApplicationUsecase) WebService

NewWebhookWebService new application manage webservice

Jump to

Keyboard shortcuts

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