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
Click to show internal directories.
Click to hide internal directories.