Documentation ¶
Index ¶
- func InitAPIBean() []interface{}
- func NewWorkflowAPIInterface() interface{}
- func RegisterAPIInterface(ws Interface)
- 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 ClusterAPIInterface
- type Interface
- func ConfigAPIInterface() Interface
- func GetRegisteredAPIInterface() []Interface
- func NewAddonAPIInterface() Interface
- func NewAddonRegistryAPIInterface() Interface
- func NewApplicationAPIInterface() Interface
- func NewAuthenticationAPIInterface() Interface
- func NewDefinitionAPIInterface() Interface
- func NewEnabledAddonAPIInterface() Interface
- func NewEnvAPIInterface() Interface
- func NewOAMApplication() Interface
- func NewPayloadTypesAPIInterface() Interface
- func NewProjectAPIInterface() Interface
- func NewRBACAPIInterface() Interface
- func NewRepositoryAPIInterface() Interface
- func NewSystemInfoAPIInterface() Interface
- func NewTargetAPIInterface() Interface
- func NewUserAPIInterface() Interface
- func NewVelaQLAPIInterface() Interface
- func NewWebhookAPIInterface() Interface
- type TargetAPIInterface
- type WorkflowAPIInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAPIBean ¶
func InitAPIBean() []interface{}
InitAPIBean inits all APIInterface, pass in the required parameter object. It can be implemented using the idea of dependency injection.
func NewWorkflowAPIInterface ¶
func NewWorkflowAPIInterface() interface{}
NewWorkflowAPIInterface new workflow api interface
func RegisterAPIInterface ¶
func RegisterAPIInterface(ws Interface)
RegisterAPIInterface register APIInterface
func ValidateAlias ¶
func ValidateAlias(fl validator.FieldLevel) bool
ValidateAlias custom check alias field
func ValidateEmail ¶
func ValidateEmail(fl validator.FieldLevel) bool
ValidateEmail custom check email field
func ValidateName ¶
func ValidateName(fl validator.FieldLevel) bool
ValidateName custom check name field
func ValidatePassword ¶
func ValidatePassword(fl validator.FieldLevel) bool
ValidatePassword custom check password field
func ValidatePayloadType ¶
func ValidatePayloadType(fl validator.FieldLevel) bool
ValidatePayloadType check PayloadType
Types ¶
type ClusterAPIInterface ¶
type ClusterAPIInterface struct { ClusterService service.ClusterService `inject:""` RbacService service.RBACService `inject:""` }
ClusterAPIInterface cluster manage APIInterface
func NewClusterAPIInterface ¶
func NewClusterAPIInterface() *ClusterAPIInterface
NewClusterAPIInterface new cluster APIInterface
func (*ClusterAPIInterface) GetWebServiceRoute ¶
func (c *ClusterAPIInterface) GetWebServiceRoute() *restful.WebService
GetWebServiceRoute -
type Interface ¶
type Interface interface {
GetWebServiceRoute() *restful.WebService
}
Interface the API should define the http route
func ConfigAPIInterface ¶
func ConfigAPIInterface() Interface
ConfigAPIInterface returns config web service
func GetRegisteredAPIInterface ¶
func GetRegisteredAPIInterface() []Interface
GetRegisteredAPIInterface return registeredAPIInterface
func NewAddonAPIInterface ¶
func NewAddonAPIInterface() Interface
NewAddonAPIInterface returns addon web service
func NewAddonRegistryAPIInterface ¶
func NewAddonRegistryAPIInterface() Interface
NewAddonRegistryAPIInterface returns addon registry web service
func NewApplicationAPIInterface ¶
func NewApplicationAPIInterface() Interface
NewApplicationAPIInterface new application manage APIInterface
func NewAuthenticationAPIInterface ¶
func NewAuthenticationAPIInterface() Interface
NewAuthenticationAPIInterface is the APIInterface of authentication
func NewDefinitionAPIInterface ¶
func NewDefinitionAPIInterface() Interface
NewDefinitionAPIInterface new definition APIInterface
func NewEnabledAddonAPIInterface ¶
func NewEnabledAddonAPIInterface() Interface
NewEnabledAddonAPIInterface returns enabled addon web service
func NewEnvAPIInterface ¶
func NewEnvAPIInterface() Interface
NewEnvAPIInterface new env APIInterface
func NewPayloadTypesAPIInterface ¶
func NewPayloadTypesAPIInterface() Interface
NewPayloadTypesAPIInterface new -
func NewProjectAPIInterface ¶
func NewProjectAPIInterface() Interface
NewProjectAPIInterface new project APIInterface
func NewRBACAPIInterface ¶
func NewRBACAPIInterface() Interface
NewRBACAPIInterface new rbac APIInterface
func NewRepositoryAPIInterface ¶ added in v1.4.3
func NewRepositoryAPIInterface() Interface
NewRepositoryAPIInterface will return the repository APIInterface
func NewSystemInfoAPIInterface ¶
func NewSystemInfoAPIInterface() Interface
NewSystemInfoAPIInterface return systemInfo APIInterface
func NewTargetAPIInterface ¶
func NewTargetAPIInterface() Interface
NewTargetAPIInterface new Target Interface
func NewUserAPIInterface ¶
func NewUserAPIInterface() Interface
NewUserAPIInterface is the APIInterface of user
func NewVelaQLAPIInterface ¶
func NewVelaQLAPIInterface() Interface
NewVelaQLAPIInterface new velaQL APIInterface
func NewWebhookAPIInterface ¶
func NewWebhookAPIInterface() Interface
NewWebhookAPIInterface new application manage APIInterface
type TargetAPIInterface ¶
type TargetAPIInterface struct { TargetService service.TargetService `inject:""` ApplicationService service.ApplicationService `inject:""` RbacService service.RBACService `inject:""` }
TargetAPIInterface target web service
func (*TargetAPIInterface) GetWebServiceRoute ¶
func (dt *TargetAPIInterface) GetWebServiceRoute() *restful.WebService
GetWebServiceRoute get web service
type WorkflowAPIInterface ¶
type WorkflowAPIInterface struct { WorkflowService service.WorkflowService `inject:""` ApplicationService service.ApplicationService `inject:""` }
WorkflowAPIInterface workflow api