Documentation ¶
Index ¶
- Constants
- func GetAPIPrefix() []string
- 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 GetAPIPrefix ¶
func GetAPIPrefix() []string
GetAPIPrefix return the prefix of the api route path
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 ¶
func NewReverseProxy(target *url.URL) *httputil.ReverseProxy
NewReverseProxy proxy for requests of the cloud shell
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 ¶
type CloudShell struct { RbacService service.RBACService `inject:""` CloudShellService service.CloudShellService `inject:""` }
CloudShell provide the API for preparing the cloud shell environment
func NewCloudShell ¶
func NewCloudShell() *CloudShell
NewCloudShell create the cloudshell api instance
func (*CloudShell) GetWebServiceRoute ¶
func (c *CloudShell) GetWebServiceRoute() *restful.WebService
GetWebServiceRoute -
type CloudShellView ¶
type CloudShellView struct { RbacService service.RBACService `inject:""` CloudShellService service.CloudShellService `inject:""` }
CloudShellView provide the view handler
func (*CloudShellView) GetWebServiceRoute ¶
func (c *CloudShellView) GetWebServiceRoute() *restful.WebService
GetWebServiceRoute -
type Cluster ¶
type Cluster struct { ClusterService service.ClusterService `inject:""` RbacService service.RBACService `inject:""` }
Cluster cluster manage
func (*Cluster) GetWebServiceRoute ¶
func (c *Cluster) GetWebServiceRoute() *restful.WebService
GetWebServiceRoute -
type Interface ¶
type Interface interface {
GetWebServiceRoute() *restful.WebService
}
Interface the API should define the http route
func GetRegisteredAPI ¶
func GetRegisteredAPI() []Interface
GetRegisteredAPI return all API handlers
func NewAddonRegistry ¶
func NewAddonRegistry() Interface
NewAddonRegistry returns addon registry web service
func NewAuthentication ¶
func NewAuthentication() Interface
NewAuthentication is the of authentication
func NewEnabledAddon ¶
func NewEnabledAddon() Interface
NewEnabledAddon returns enabled addon web service
type Target ¶
type Target struct { TargetService service.TargetService `inject:""` ApplicationService service.ApplicationService `inject:""` RbacService service.RBACService `inject:""` }
Target target web service
func (*Target) GetWebServiceRoute ¶
func (dt *Target) GetWebServiceRoute() *restful.WebService
GetWebServiceRoute get web service
type Workflow ¶
type Workflow struct { WorkflowService service.WorkflowService `inject:""` ApplicationService service.ApplicationService `inject:""` }
Workflow workflow api