Documentation ¶
Index ¶
- type APIServer
- func (s *APIServer) AddCapabilityCenter(c *gin.Context)
- func (s *APIServer) AddCapabilityIntoCluster(c *gin.Context)
- func (s *APIServer) AttachTrait(c *gin.Context)
- func (s *APIServer) CreateEnv(c *gin.Context)
- func (s *APIServer) CreateScope(c *gin.Context)
- func (s *APIServer) CreateWorkload(c *gin.Context)
- func (s *APIServer) DeleteApps(c *gin.Context)
- func (s *APIServer) DeleteCapabilityCenter(c *gin.Context)
- func (s *APIServer) DeleteComponent(c *gin.Context)
- func (s *APIServer) DeleteEnv(c *gin.Context)
- func (s *APIServer) DeleteScope(c *gin.Context)
- func (s *APIServer) DetachTrait(c *gin.Context)
- func (s *APIServer) DoAttachTrait(c context.Context, body apis.TraitBody) (string, error)
- func (s *APIServer) DoDetachTrait(c context.Context, envName string, traitType string, componentName string, ...) (string, error)
- func (s *APIServer) GetApp(c *gin.Context)
- func (s *APIServer) GetComponent(c *gin.Context)
- func (s *APIServer) GetEnv(c *gin.Context)
- func (s *APIServer) GetScope(c *gin.Context)
- func (s *APIServer) GetTrait(c *gin.Context)
- func (s *APIServer) GetVersion(c *gin.Context)
- func (s *APIServer) GetWorkload(c *gin.Context)
- func (s *APIServer) Launch(errChan chan<- error)
- func (s *APIServer) ListApps(c *gin.Context)
- func (s *APIServer) ListCapabilities(c *gin.Context)
- func (s *APIServer) ListCapabilityCenters(c *gin.Context)
- func (s *APIServer) ListEnv(c *gin.Context)
- func (s *APIServer) ListScope(c *gin.Context)
- func (s *APIServer) ListTrait(c *gin.Context)
- func (s *APIServer) ListWorkload(c *gin.Context)
- func (s *APIServer) RemoveCapabilityFromCluster(c *gin.Context)
- func (s *APIServer) SetEnv(c *gin.Context)
- func (s *APIServer) Shutdown(ctx context.Context) error
- func (s *APIServer) SyncCapabilityCenter(c *gin.Context)
- func (s *APIServer) UpdateApps(c *gin.Context)
- func (s *APIServer) UpdateEnv(c *gin.Context)
- func (s *APIServer) UpdateScope(c *gin.Context)
- func (s *APIServer) UpdateWorkload(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServer ¶
APIServer run a restful API server for dashboard
func (*APIServer) AddCapabilityCenter ¶ added in v0.1.1
AddCapabilityCenter adds and synchronizes a capability center from remote
func (*APIServer) AddCapabilityIntoCluster ¶ added in v0.1.1
AddCapabilityIntoCluster adds specific capability into cluster
func (*APIServer) AttachTrait ¶ added in v0.1.1
AttachTrait attaches a trait to a component
func (*APIServer) CreateScope ¶ added in v0.1.1
CreateScope creates a scope
func (*APIServer) CreateWorkload ¶ added in v0.1.1
CreateWorkload creates a workload
func (*APIServer) DeleteApps ¶ added in v0.1.1
DeleteApps deletes an application by the namespacedname in the gin.Context
func (*APIServer) DeleteCapabilityCenter ¶ added in v0.1.1
DeleteCapabilityCenter deltes a capability cernter already added
func (*APIServer) DeleteComponent ¶ added in v0.1.1
DeleteComponent deletes a component from cluster
func (*APIServer) DeleteScope ¶ added in v0.1.1
DeleteScope deletes a scope
func (*APIServer) DetachTrait ¶ added in v0.1.1
DetachTrait detaches a trait from a component
func (*APIServer) DoAttachTrait ¶ added in v0.1.1
DoAttachTrait executes attaching trait operation
func (*APIServer) DoDetachTrait ¶ added in v0.1.1
func (s *APIServer) DoDetachTrait(c context.Context, envName string, traitType string, componentName string, appName string, staging bool) (string, error)
DoDetachTrait executes detaching trait operation
func (*APIServer) GetApp ¶ added in v0.1.1
GetApp requests an application by the namespacedname in the gin.Context
func (*APIServer) GetComponent ¶ added in v0.1.1
GetComponent gets a comoponent from cluster
func (*APIServer) GetVersion ¶ added in v0.1.1
GetVersion will return version for dashboard
func (*APIServer) GetWorkload ¶ added in v0.1.1
GetWorkload gets a workload by name
func (*APIServer) ListApps ¶ added in v0.1.1
ListApps requests a list of application by the namespace in the gin.Context
func (*APIServer) ListCapabilities ¶ added in v0.1.1
ListCapabilities lists capabilities of a capability center
func (*APIServer) ListCapabilityCenters ¶ added in v0.1.1
ListCapabilityCenters list all added capability centers
func (*APIServer) ListWorkload ¶ added in v0.1.1
ListWorkload lists all workloads in the cluster
func (*APIServer) RemoveCapabilityFromCluster ¶ added in v0.1.1
RemoveCapabilityFromCluster remove a specific capability from cluster
func (*APIServer) SyncCapabilityCenter ¶ added in v0.1.1
SyncCapabilityCenter synchronizes capability center from remote
func (*APIServer) UpdateApps ¶ added in v0.1.1
UpdateApps is placeholder for updating applications
func (*APIServer) UpdateScope ¶ added in v0.1.1
UpdateScope updates a scope
func (*APIServer) UpdateWorkload ¶ added in v0.1.1
UpdateWorkload updates a workload