webservice

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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

type InitUsecase interface {
	Init(ctx context.Context) error
}

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

Jump to

Keyboard shortcuts

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