Documentation ¶
Index ¶
- Constants
- func InitAPIBean() []interface{}
- func NewReverseProxy(target *url.URL) *httputil.ReverseProxy
- func NewWorkflow() interface{}
- func RegisterAPI(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 CloudShell
- type CloudShellView
- type Cluster
- type Interface
- func Config() Interface
- func ConfigTemplate() Interface
- func GetRegisteredAPI() []Interface
- func NewAddon() Interface
- func NewAddonRegistry() Interface
- func NewApplication() Interface
- func NewAuthentication() Interface
- func NewDefinition() Interface
- func NewEnabledAddon() Interface
- func NewEnv() Interface
- func NewOAMApplication() Interface
- func NewPayloadTypes() Interface
- func NewPipeline() Interface
- func NewProject() Interface
- func NewRBAC() Interface
- func NewRepository() Interface
- func NewSystemInfo() Interface
- func NewTarget() Interface
- func NewUser() Interface
- func NewVelaQL() Interface
- func NewWebhook() Interface
- type Target
- type Workflow
Constants ¶
const ( // Project is the project name key of query param Project string = "projectName" // Pipeline is the pipeline name of query param Pipeline string = "pipelineName" // PipelineRun is the pipeline run name of query param PipelineRun string = "runName" // ContextName is the context name of query param ContextName string = "contextName" )
Variables ¶
This section is empty.
Functions ¶
func InitAPIBean ¶
func InitAPIBean() []interface{}
InitAPIBean inits all API handlers, pass in the required parameter object. It can be implemented using the idea of dependency injection.
func NewReverseProxy ¶ added in v1.5.0
func NewReverseProxy(target *url.URL) *httputil.ReverseProxy
NewReverseProxy proxy for requests of the cloud shell
func NewWorkflow ¶ added in v1.7.0
func NewWorkflow() interface{}
NewWorkflow new workflow api interface
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 CloudShell ¶ added in v1.7.0
type CloudShell struct { RbacService service.RBACService `inject:""` CloudShellService service.CloudShellService `inject:""` }
CloudShell provide the API for preparing the cloud shell environment
func NewCloudShell ¶ added in v1.7.0
func NewCloudShell() *CloudShell
NewCloudShell create the cloudshell api instance
func (*CloudShell) GetWebServiceRoute ¶ added in v1.7.0
func (c *CloudShell) GetWebServiceRoute() *restful.WebService
GetWebServiceRoute -
type CloudShellView ¶ added in v1.5.0
type CloudShellView struct { RbacService service.RBACService `inject:""` CloudShellService service.CloudShellService `inject:""` }
CloudShellView provide the view handler
func NewCloudShellView ¶ added in v1.5.0
func NewCloudShellView() *CloudShellView
NewCloudShellView new cloud share
func (*CloudShellView) GetWebServiceRoute ¶ added in v1.5.0
func (c *CloudShellView) GetWebServiceRoute() *restful.WebService
GetWebServiceRoute -
type Cluster ¶ added in v1.7.0
type Cluster struct { ClusterService service.ClusterService `inject:""` RbacService service.RBACService `inject:""` }
Cluster cluster manage
func (*Cluster) GetWebServiceRoute ¶ added in v1.7.0
func (c *Cluster) GetWebServiceRoute() *restful.WebService
GetWebServiceRoute -
type Interface ¶
type Interface interface {
GetWebServiceRoute() *restful.WebService
}
Interface the API should define the http route
func ConfigTemplate ¶ added in v1.7.0
func ConfigTemplate() Interface
ConfigTemplate returns config web service
func GetRegisteredAPI ¶ added in v1.7.0
func GetRegisteredAPI() []Interface
GetRegisteredAPI return all API handlers
func NewAddonRegistry ¶ added in v1.7.0
func NewAddonRegistry() Interface
NewAddonRegistry returns addon registry web service
func NewApplication ¶ added in v1.7.0
func NewApplication() Interface
NewApplication new application manage
func NewAuthentication ¶ added in v1.7.0
func NewAuthentication() Interface
NewAuthentication is the of authentication
func NewEnabledAddon ¶ added in v1.7.0
func NewEnabledAddon() Interface
NewEnabledAddon returns enabled addon web service
func NewRepository ¶ added in v1.7.0
func NewRepository() Interface
NewRepository will return the repository
type Target ¶ added in v1.7.0
type Target struct { TargetService service.TargetService `inject:""` ApplicationService service.ApplicationService `inject:""` RbacService service.RBACService `inject:""` }
Target target web service
func (*Target) GetWebServiceRoute ¶ added in v1.7.0
func (dt *Target) GetWebServiceRoute() *restful.WebService
GetWebServiceRoute get web service
type Workflow ¶ added in v1.7.0
type Workflow struct { WorkflowService service.WorkflowService `inject:""` ApplicationService service.ApplicationService `inject:""` }
Workflow workflow api