clusters

package
v0.0.0-...-8e5ec8a Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package clusters contains the cluster router controller

Index

Constants

View Source
const (
	ProtectedServicesPrefix = "protected-services-cluster-guid-"
	ClusterGuidPrefix       = "cluster-guid-"
)

Variables

This section is empty.

Functions

func RegisterClusterRouter

func RegisterClusterRouter(env *env.Env, router *gin.RouterGroup)

Types

type ClusterInfo

type ClusterInfo struct {
	Name                  string             `json:"name"`
	GUID                  string             `json:"guid"`
	Type                  string             `json:"type"`
	Location              string             `json:"location"`
	LastActivityTimestamp time.Time          `json:"lastActivityTimestamp"`
	Services              map[string]Service `json:"services,string"`
}

ClusterInfo encapsulates the Kubernetes cluster information to be sent to App ID

type DashboardPolicyRequest

type DashboardPolicyRequest struct {
	ServiceName         string `json:"serviceName"`
	IsProtectionEnabled bool   `json:"protectionEnabled"`
}

DashboardPolicyRequest Service encapsulates a Kubernetes Service

type Service

type Service struct {
	Name                string `json:"name"`
	Namespace           string `json:"namespace"`
	IsProtectionEnabled bool   `json:"protectionEnabled"`
}

Service encapsulates a Kubernetes Service

Jump to

Keyboard shortcuts

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