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 ¶ added in v1.2.0
func RegisterWebService(ws WebService)
RegisterWebService regist webservice
func ValidateAlias ¶ added in v1.2.0
func ValidateAlias(fl validator.FieldLevel) bool
ValidateAlias custom check alias field
func ValidateName ¶ added in v1.2.0
func ValidateName(fl validator.FieldLevel) bool
ValidateName custom check name field
func ValidatePayloadType ¶ added in v1.2.0
func ValidatePayloadType(fl validator.FieldLevel) bool
ValidatePayloadType check PayloadType
Types ¶
type ClusterWebService ¶ added in v1.2.0
type ClusterWebService struct {
// contains filtered or unexported fields
}
ClusterWebService cluster manage webservice
func NewClusterWebService ¶ added in v1.2.0
func NewClusterWebService(clusterUsecase usecase.ClusterUsecase) *ClusterWebService
NewClusterWebService new cluster webservice
func (*ClusterWebService) GetWebService ¶ added in v1.2.0
func (c *ClusterWebService) GetWebService() *restful.WebService
GetWebService -
type TargetWebService ¶ added in v1.2.0
type TargetWebService struct { TargetUsecase usecase.TargetUsecase // contains filtered or unexported fields }
TargetWebService target web service
func (*TargetWebService) GetWebService ¶ added in v1.2.0
func (dt *TargetWebService) GetWebService() *restful.WebService
GetWebService get web service
type WebService ¶
type WebService interface {
GetWebService() *restful.WebService
}
WebService webservice interface
func GetRegisteredWebService ¶ added in v1.2.0
func GetRegisteredWebService() []WebService
GetRegisteredWebService return registeredWebService
func NewAddonRegistryWebService ¶ added in v1.2.0
func NewAddonRegistryWebService(u usecase.AddonHandler) WebService
NewAddonRegistryWebService returns addon registry web service
func NewAddonWebService ¶ added in v1.2.0
func NewAddonWebService(u usecase.AddonHandler) WebService
NewAddonWebService returns addon web service
func NewApplicationWebService ¶ added in v1.2.0
func NewApplicationWebService(applicationUsecase usecase.ApplicationUsecase, envBindingUsecase usecase.EnvBindingUsecase, workflowUsecase usecase.WorkflowUsecase) WebService
NewApplicationWebService new application manage webservice
func NewDefinitionWebservice ¶ added in v1.2.0
func NewDefinitionWebservice(du usecase.DefinitionUsecase) WebService
NewDefinitionWebservice new definition webservice
func NewEnabledAddonWebService ¶ added in v1.2.0
func NewEnabledAddonWebService(u usecase.AddonHandler) WebService
NewEnabledAddonWebService returns enabled addon web service
func NewEnvWebService ¶ added in v1.2.0
func NewEnvWebService(envUsecase usecase.EnvUsecase, appUseCase usecase.ApplicationUsecase) WebService
NewEnvWebService new env webservice
func NewOAMApplication ¶ added in v1.2.0
func NewOAMApplication(oamApplicationUsecase usecase.OAMApplicationUsecase) WebService
NewOAMApplication new oam application
func NewProjectWebService ¶ added in v1.2.0
func NewProjectWebService(projectUsecase usecase.ProjectUsecase) WebService
NewProjectWebService new project webservice
func NewSystemInfoWebService ¶ added in v1.2.0
func NewSystemInfoWebService(systemInfoUseCase usecase.SystemInfoUsecase) WebService
NewSystemInfoWebService return systemInfo webservice
func NewTargetWebService ¶ added in v1.2.0
func NewTargetWebService(targetUsecase usecase.TargetUsecase, applicationUsecase usecase.ApplicationUsecase) WebService
NewTargetWebService new Target webservice
func NewVelaQLWebService ¶ added in v1.2.0
func NewVelaQLWebService(velaQLUsecase usecase.VelaQLUsecase) WebService
NewVelaQLWebService new velaQL webservice
func NewWebhookWebService ¶ added in v1.2.0
func NewWebhookWebService(webhookUsecase usecase.WebhookUsecase, applicationUsecase usecase.ApplicationUsecase) WebService
NewWebhookWebService new application manage webservice