api

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
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 RegisterAPI added in v1.7.0

func RegisterAPI(ws Interface)

RegisterAPI register API handler

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 NewCluster added in v1.7.0

func NewCluster() *Cluster

NewCluster new cluster

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 Config added in v1.7.0

func Config() Interface

Config returns config web service

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 NewAddon added in v1.7.0

func NewAddon() Interface

NewAddon returns addon web service

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 NewDefinition added in v1.7.0

func NewDefinition() Interface

NewDefinition new definition

func NewEnabledAddon added in v1.7.0

func NewEnabledAddon() Interface

NewEnabledAddon returns enabled addon web service

func NewEnv added in v1.7.0

func NewEnv() Interface

NewEnv new env

func NewOAMApplication

func NewOAMApplication() Interface

NewOAMApplication new oam application

func NewPayloadTypes added in v1.7.0

func NewPayloadTypes() Interface

NewPayloadTypes new -

func NewPipeline added in v1.7.0

func NewPipeline() Interface

NewPipeline new pipeline manage

func NewProject added in v1.7.0

func NewProject() Interface

NewProject new project

func NewRBAC added in v1.7.0

func NewRBAC() Interface

NewRBAC new rbac

func NewRepository added in v1.7.0

func NewRepository() Interface

NewRepository will return the repository

func NewSystemInfo added in v1.7.0

func NewSystemInfo() Interface

NewSystemInfo return systemInfo

func NewTarget added in v1.7.0

func NewTarget() Interface

NewTarget new Target Interface

func NewUser added in v1.7.0

func NewUser() Interface

NewUser is the of user

func NewVelaQL added in v1.7.0

func NewVelaQL() Interface

NewVelaQL new velaQL

func NewWebhook added in v1.7.0

func NewWebhook() Interface

NewWebhook new application manage

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

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