api

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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 NewOAMApplication

func NewOAMApplication() Interface

NewOAMApplication new oam application

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

Directories

Path Synopsis
assembler
v1
dto
v1

Jump to

Keyboard shortcuts

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