cluster

package
v0.0.0-...-19fb9ea Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const CLUSTER_DELETE_SUCCESS_RESP = "Cluster deleted successfully."
View Source
const ENV_DELETE_SUCCESS_RESP = "Environment deleted successfully."

Variables

minimal wire to be used with EA

Functions

This section is empty.

Types

type ClusterRestHandler

type ClusterRestHandler interface {
	Save(w http.ResponseWriter, r *http.Request)
	FindOne(w http.ResponseWriter, r *http.Request)
	FindAll(w http.ResponseWriter, r *http.Request)

	FindById(w http.ResponseWriter, r *http.Request)
	Update(w http.ResponseWriter, r *http.Request)

	FindAllForAutoComplete(w http.ResponseWriter, r *http.Request)
	DeleteCluster(w http.ResponseWriter, r *http.Request)
}

type ClusterRestHandlerImpl

type ClusterRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewClusterRestHandlerImpl

func NewClusterRestHandlerImpl(clusterService cluster.ClusterService,
	logger *zap.SugaredLogger,
	userService user.UserService,
	validator *validator.Validate,
	enforcer casbin.Enforcer,
	deleteService delete2.DeleteService,
	argoUserService argo.ArgoUserService) *ClusterRestHandlerImpl

func (ClusterRestHandlerImpl) DeleteCluster

func (impl ClusterRestHandlerImpl) DeleteCluster(w http.ResponseWriter, r *http.Request)

func (ClusterRestHandlerImpl) FindAll

func (ClusterRestHandlerImpl) FindAllForAutoComplete

func (impl ClusterRestHandlerImpl) FindAllForAutoComplete(w http.ResponseWriter, r *http.Request)

func (ClusterRestHandlerImpl) FindById

func (impl ClusterRestHandlerImpl) FindById(w http.ResponseWriter, r *http.Request)

func (ClusterRestHandlerImpl) FindOne

func (ClusterRestHandlerImpl) Save

func (ClusterRestHandlerImpl) Update

type ClusterRouter

type ClusterRouter interface {
	InitClusterRouter(clusterRouter *mux.Router)
}

type ClusterRouterImpl

type ClusterRouterImpl struct {
	// contains filtered or unexported fields
}

func NewClusterRouterImpl

func NewClusterRouterImpl(handler ClusterRestHandler) *ClusterRouterImpl

func (ClusterRouterImpl) InitClusterRouter

func (impl ClusterRouterImpl) InitClusterRouter(clusterRouter *mux.Router)

type EnvironmentRestHandler

type EnvironmentRestHandler interface {
	Create(w http.ResponseWriter, r *http.Request)
	Get(w http.ResponseWriter, r *http.Request)
	GetAll(w http.ResponseWriter, r *http.Request)
	GetAllActive(w http.ResponseWriter, r *http.Request)
	Update(w http.ResponseWriter, r *http.Request)
	FindById(w http.ResponseWriter, r *http.Request)
	GetEnvironmentListForAutocomplete(w http.ResponseWriter, r *http.Request)
	GetCombinedEnvironmentListForDropDown(w http.ResponseWriter, r *http.Request)
	DeleteEnvironment(w http.ResponseWriter, r *http.Request)
	GetCombinedEnvironmentListForDropDownByClusterIds(w http.ResponseWriter, r *http.Request)
}

type EnvironmentRestHandlerImpl

type EnvironmentRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewEnvironmentRestHandlerImpl

func NewEnvironmentRestHandlerImpl(svc request.EnvironmentService, logger *zap.SugaredLogger, userService user.UserService,
	validator *validator.Validate, enforcer casbin.Enforcer,
	deleteService delete2.DeleteService,
) *EnvironmentRestHandlerImpl

func (EnvironmentRestHandlerImpl) CheckAuthorizationForGlobalEnvironment

func (handler EnvironmentRestHandlerImpl) CheckAuthorizationForGlobalEnvironment(token string, object string) bool

func (EnvironmentRestHandlerImpl) Create

func (EnvironmentRestHandlerImpl) DeleteEnvironment

func (impl EnvironmentRestHandlerImpl) DeleteEnvironment(w http.ResponseWriter, r *http.Request)

func (EnvironmentRestHandlerImpl) FindById

func (EnvironmentRestHandlerImpl) Get

func (EnvironmentRestHandlerImpl) GetAll

func (EnvironmentRestHandlerImpl) GetAllActive

func (impl EnvironmentRestHandlerImpl) GetAllActive(w http.ResponseWriter, r *http.Request)

func (EnvironmentRestHandlerImpl) GetCombinedEnvironmentListForDropDown

func (impl EnvironmentRestHandlerImpl) GetCombinedEnvironmentListForDropDown(w http.ResponseWriter, r *http.Request)

func (EnvironmentRestHandlerImpl) GetCombinedEnvironmentListForDropDownByClusterIds

func (impl EnvironmentRestHandlerImpl) GetCombinedEnvironmentListForDropDownByClusterIds(w http.ResponseWriter, r *http.Request)

func (EnvironmentRestHandlerImpl) GetEnvironmentListForAutocomplete

func (impl EnvironmentRestHandlerImpl) GetEnvironmentListForAutocomplete(w http.ResponseWriter, r *http.Request)

func (EnvironmentRestHandlerImpl) Update

type EnvironmentRouter

type EnvironmentRouter interface {
	InitEnvironmentClusterMappingsRouter(clusterAccountsRouter *mux.Router)
}

type EnvironmentRouterImpl

type EnvironmentRouterImpl struct {
	// contains filtered or unexported fields
}

func NewEnvironmentRouterImpl

func NewEnvironmentRouterImpl(environmentClusterMappingsRestHandler EnvironmentRestHandler) *EnvironmentRouterImpl

func (EnvironmentRouterImpl) InitEnvironmentClusterMappingsRouter

func (impl EnvironmentRouterImpl) InitEnvironmentClusterMappingsRouter(environmentClusterMappingsRouter *mux.Router)

Jump to

Keyboard shortcuts

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