Documentation ¶
Index ¶
- func Init(ds datastore.DataStore, addonCacheTime time.Duration)
- func RegisterWebService(ws WebService)
- func ValidateAlias(fl validator.FieldLevel) bool
- func ValidateName(fl validator.FieldLevel) bool
- func ValidatePayloadType(fl validator.FieldLevel) bool
- type ClusterWebService
- type TargetWebService
- type WebService
- func GetRegisteredWebService() []WebService
- func NewAddonRegistryWebService(u usecase.AddonHandler) WebService
- func NewAddonWebService(u usecase.AddonHandler) WebService
- func NewApplicationWebService(applicationUsecase usecase.ApplicationUsecase, ...) WebService
- func NewDefinitionWebservice(du usecase.DefinitionUsecase) WebService
- func NewEnabledAddonWebService(u usecase.AddonHandler) WebService
- func NewEnvWebService(envUsecase usecase.EnvUsecase, appUseCase usecase.ApplicationUsecase) WebService
- func NewOAMApplication(oamApplicationUsecase usecase.OAMApplicationUsecase) WebService
- func NewProjectWebService(projectUsecase usecase.ProjectUsecase) WebService
- func NewSystemInfoWebService(systemInfoUseCase usecase.SystemInfoUsecase) WebService
- func NewTargetWebService(targetUsecase usecase.TargetUsecase, ...) WebService
- func NewVelaQLWebService(velaQLUsecase usecase.VelaQLUsecase) WebService
- func NewWebhookWebService(webhookUsecase usecase.WebhookUsecase, ...) WebService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
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