Documentation ¶
Index ¶
- func Init(ctx context.Context, ds datastore.DataStore, addonCacheTime time.Duration, ...) map[string]interface{}
- func RegisterWebService(ws WebService)
- func ValidateAlias(fl validator.FieldLevel) bool
- func ValidateEmail(fl validator.FieldLevel) bool
- func ValidateName(fl validator.FieldLevel) bool
- func ValidatePassword(fl validator.FieldLevel) bool
- func ValidatePayloadType(fl validator.FieldLevel) bool
- type ClusterWebService
- type InitUsecase
- type TargetWebService
- type WebService
- func ConfigWebService(u usecase.ConfigHandler, rbacUseCase usecase.RBACUsecase) WebService
- func GetRegisteredWebService() []WebService
- func NewAddonRegistryWebService(u usecase.AddonHandler, rbacUsecase usecase.RBACUsecase) WebService
- func NewAddonWebService(u usecase.AddonHandler, rbacUsecase usecase.RBACUsecase, ...) WebService
- func NewApplicationWebService(applicationUsecase usecase.ApplicationUsecase, ...) WebService
- func NewAuthenticationWebService(authenticationUsecase usecase.AuthenticationUsecase, ...) WebService
- func NewDefinitionWebservice(du usecase.DefinitionUsecase, rbacUsecase usecase.RBACUsecase) WebService
- func NewEnabledAddonWebService(u usecase.AddonHandler, rbacUsecase usecase.RBACUsecase) WebService
- func NewEnvWebService(envUsecase usecase.EnvUsecase, appUseCase usecase.ApplicationUsecase, ...) WebService
- func NewHelmWebService(u usecase.HelmHandler) WebService
- func NewOAMApplication(oamApplicationUsecase usecase.OAMApplicationUsecase, ...) WebService
- func NewProjectWebService(projectUsecase usecase.ProjectUsecase, rbacUsecase usecase.RBACUsecase, ...) WebService
- func NewRBACWebService(rbacUsecase usecase.RBACUsecase) WebService
- func NewSystemInfoWebService(systemInfoUseCase usecase.SystemInfoUsecase, rbacUsecase usecase.RBACUsecase) WebService
- func NewTargetWebService(targetUsecase usecase.TargetUsecase, ...) WebService
- func NewUserWebService(userUsecase usecase.UserUsecase, rbacUsecase usecase.RBACUsecase) WebService
- func NewVelaQLWebService(velaQLUsecase usecase.VelaQLUsecase, rbacUsecase usecase.RBACUsecase) WebService
- func NewWebhookWebService(webhookUsecase usecase.WebhookUsecase, ...) WebService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(ctx context.Context, ds datastore.DataStore, addonCacheTime time.Duration, initDatabase bool) map[string]interface{}
Init inits 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 register webservice
func ValidateAlias ¶ added in v1.2.0
func ValidateAlias(fl validator.FieldLevel) bool
ValidateAlias custom check alias field
func ValidateEmail ¶ added in v1.3.0
func ValidateEmail(fl validator.FieldLevel) bool
ValidateEmail custom check email field
func ValidateName ¶ added in v1.2.0
func ValidateName(fl validator.FieldLevel) bool
ValidateName custom check name field
func ValidatePassword ¶ added in v1.3.0
func ValidatePassword(fl validator.FieldLevel) bool
ValidatePassword custom check password 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, rbacUsecase usecase.RBACUsecase) *ClusterWebService
NewClusterWebService new cluster webservice
func (*ClusterWebService) GetWebService ¶ added in v1.2.0
func (c *ClusterWebService) GetWebService() *restful.WebService
GetWebService -
type InitUsecase ¶ added in v1.3.0
InitUsecase the usecase set that needs init data
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 ConfigWebService ¶ added in v1.3.0
func ConfigWebService(u usecase.ConfigHandler, rbacUseCase usecase.RBACUsecase) WebService
ConfigWebService returns config web service
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, rbacUsecase usecase.RBACUsecase) WebService
NewAddonRegistryWebService returns addon registry web service
func NewAddonWebService ¶ added in v1.2.0
func NewAddonWebService(u usecase.AddonHandler, rbacUsecase usecase.RBACUsecase, cluster usecase.ClusterUsecase) WebService
NewAddonWebService returns addon web service
func NewApplicationWebService ¶ added in v1.2.0
func NewApplicationWebService(applicationUsecase usecase.ApplicationUsecase, envBindingUsecase usecase.EnvBindingUsecase, workflowUsecase usecase.WorkflowUsecase, rbacUsecase usecase.RBACUsecase) WebService
NewApplicationWebService new application manage webservice
func NewAuthenticationWebService ¶ added in v1.3.0
func NewAuthenticationWebService(authenticationUsecase usecase.AuthenticationUsecase, userUsecase usecase.UserUsecase) WebService
NewAuthenticationWebService is the webservice of authentication
func NewDefinitionWebservice ¶ added in v1.2.0
func NewDefinitionWebservice(du usecase.DefinitionUsecase, rbacUsecase usecase.RBACUsecase) WebService
NewDefinitionWebservice new definition webservice
func NewEnabledAddonWebService ¶ added in v1.2.0
func NewEnabledAddonWebService(u usecase.AddonHandler, rbacUsecase usecase.RBACUsecase) WebService
NewEnabledAddonWebService returns enabled addon web service
func NewEnvWebService ¶ added in v1.2.0
func NewEnvWebService(envUsecase usecase.EnvUsecase, appUseCase usecase.ApplicationUsecase, rbacUsecase usecase.RBACUsecase) WebService
NewEnvWebService new env webservice
func NewHelmWebService ¶ added in v1.3.0
func NewHelmWebService(u usecase.HelmHandler) WebService
NewHelmWebService will return helm webService
func NewOAMApplication ¶ added in v1.2.0
func NewOAMApplication(oamApplicationUsecase usecase.OAMApplicationUsecase, rbacUsecase usecase.RBACUsecase) WebService
NewOAMApplication new oam application
func NewProjectWebService ¶ added in v1.2.0
func NewProjectWebService(projectUsecase usecase.ProjectUsecase, rbacUsecase usecase.RBACUsecase, targetUsecase usecase.TargetUsecase) WebService
NewProjectWebService new project webservice
func NewRBACWebService ¶ added in v1.3.0
func NewRBACWebService(rbacUsecase usecase.RBACUsecase) WebService
NewRBACWebService new rbac webservice
func NewSystemInfoWebService ¶ added in v1.2.0
func NewSystemInfoWebService(systemInfoUseCase usecase.SystemInfoUsecase, rbacUsecase usecase.RBACUsecase) WebService
NewSystemInfoWebService return systemInfo webservice
func NewTargetWebService ¶ added in v1.2.0
func NewTargetWebService(targetUsecase usecase.TargetUsecase, applicationUsecase usecase.ApplicationUsecase, rbacUsecase usecase.RBACUsecase) WebService
NewTargetWebService new Target webservice
func NewUserWebService ¶ added in v1.3.0
func NewUserWebService(userUsecase usecase.UserUsecase, rbacUsecase usecase.RBACUsecase) WebService
NewUserWebService is the webservice of user
func NewVelaQLWebService ¶ added in v1.2.0
func NewVelaQLWebService(velaQLUsecase usecase.VelaQLUsecase, rbacUsecase usecase.RBACUsecase) 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