server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

nolint: golint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	KubeClient client.Client
	// contains filtered or unexported fields
}

APIServer run a restful API server for dashboard

func New added in v0.1.1

func New(c types.Args, port, staticPath string) (*APIServer, error)

New will create APIServer

func (*APIServer) AddCapabilityCenter added in v0.1.1

func (s *APIServer) AddCapabilityCenter(c *gin.Context)

func (*APIServer) AddCapabilityIntoCluster added in v0.1.1

func (s *APIServer) AddCapabilityIntoCluster(c *gin.Context)

func (*APIServer) AttachTrait added in v0.1.1

func (s *APIServer) AttachTrait(c *gin.Context)

Trait related handlers

func (*APIServer) CreateEnv added in v0.1.1

func (s *APIServer) CreateEnv(c *gin.Context)

environment related handlers

func (*APIServer) CreateScope added in v0.1.1

func (s *APIServer) CreateScope(c *gin.Context)

Scope related handlers

func (*APIServer) CreateWorkload added in v0.1.1

func (s *APIServer) CreateWorkload(c *gin.Context)

Workload related handlers

func (*APIServer) DeleteApps added in v0.1.1

func (s *APIServer) DeleteApps(c *gin.Context)

func (*APIServer) DeleteCapabilityCenter added in v0.1.1

func (s *APIServer) DeleteCapabilityCenter(c *gin.Context)

func (*APIServer) DeleteComponent added in v0.1.1

func (s *APIServer) DeleteComponent(c *gin.Context)

func (*APIServer) DeleteEnv added in v0.1.1

func (s *APIServer) DeleteEnv(c *gin.Context)

func (*APIServer) DeleteScope added in v0.1.1

func (s *APIServer) DeleteScope(c *gin.Context)

func (*APIServer) DetachTrait added in v0.1.1

func (s *APIServer) DetachTrait(c *gin.Context)

func (*APIServer) DoAttachTrait added in v0.1.1

func (s *APIServer) DoAttachTrait(c *gin.Context, body apis.TraitBody) (string, error)

func (*APIServer) DoDetachTrait added in v0.1.1

func (s *APIServer) DoDetachTrait(c *gin.Context, envName string, traitType string, componentName string, appName string, staging bool) (string, error)

func (*APIServer) GetApp added in v0.1.1

func (s *APIServer) GetApp(c *gin.Context)

func (*APIServer) GetComponent added in v0.1.1

func (s *APIServer) GetComponent(c *gin.Context)

func (*APIServer) GetEnv added in v0.1.1

func (s *APIServer) GetEnv(c *gin.Context)

func (*APIServer) GetScope added in v0.1.1

func (s *APIServer) GetScope(c *gin.Context)

func (*APIServer) GetTrait added in v0.1.1

func (s *APIServer) GetTrait(c *gin.Context)

func (*APIServer) GetVersion added in v0.1.1

func (s *APIServer) GetVersion(c *gin.Context)

func (*APIServer) GetWorkload added in v0.1.1

func (s *APIServer) GetWorkload(c *gin.Context)

func (*APIServer) Launch

func (s *APIServer) Launch(errChan chan<- error)

Launch will start the apiserver

func (*APIServer) ListApps added in v0.1.1

func (s *APIServer) ListApps(c *gin.Context)

func (*APIServer) ListCapabilities added in v0.1.1

func (s *APIServer) ListCapabilities(c *gin.Context)

func (*APIServer) ListCapabilityCenters added in v0.1.1

func (s *APIServer) ListCapabilityCenters(c *gin.Context)

func (*APIServer) ListEnv added in v0.1.1

func (s *APIServer) ListEnv(c *gin.Context)

func (*APIServer) ListScope added in v0.1.1

func (s *APIServer) ListScope(c *gin.Context)

func (*APIServer) ListTrait added in v0.1.1

func (s *APIServer) ListTrait(c *gin.Context)

func (*APIServer) ListWorkload added in v0.1.1

func (s *APIServer) ListWorkload(c *gin.Context)

func (*APIServer) RemoveCapabilityFromCluster added in v0.1.1

func (s *APIServer) RemoveCapabilityFromCluster(c *gin.Context)

func (*APIServer) SetEnv added in v0.1.1

func (s *APIServer) SetEnv(c *gin.Context)

func (*APIServer) Shutdown

func (s *APIServer) Shutdown(ctx context.Context) error

Shutdown will close the apiserver

func (*APIServer) SyncCapabilityCenter added in v0.1.1

func (s *APIServer) SyncCapabilityCenter(c *gin.Context)

func (*APIServer) UpdateApps added in v0.1.1

func (s *APIServer) UpdateApps(c *gin.Context)

func (*APIServer) UpdateEnv added in v0.1.1

func (s *APIServer) UpdateEnv(c *gin.Context)

func (*APIServer) UpdateScope added in v0.1.1

func (s *APIServer) UpdateScope(c *gin.Context)

func (*APIServer) UpdateWorkload added in v0.1.1

func (s *APIServer) UpdateWorkload(c *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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