Documentation ¶
Index ¶
Constants ¶
View Source
const Route = "/resources"
Route is the route under which the plugin should be registered in our router for the rest api.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Forbidden []string `json:"forbidden"` WebSocket WebSocket `json:"webSocket"` EphemeralContainers []corev1.EphemeralContainer `json:"ephemeralContainers"` }
Config is the structure of the configuration for the resources plugin. It only contains one filed to forbid access to the provided resources.
type Resources ¶
type Resources struct { Cluster string `json:"cluster"` Namespace string `json:"namespace"` Resources map[string]interface{} `json:"resources"` }
Resources is the structure for the getResources api call. It contains the cluster, namespace and the json representation of the retunred list object from the Kuberntes API.
Click to show internal directories.
Click to hide internal directories.