context.go 533 B

12345678910111213141516
  1. package models
  2. // Context represents the configuration for a single cluster-user pair
  3. type Context struct {
  4. // Name is the name of the context
  5. Name string `json:"name"`
  6. // Server is the endpoint of the kube apiserver for a cluster
  7. Server string `json:"server"`
  8. // Cluster is the name of the cluster
  9. Cluster string `json:"cluster"`
  10. // User is the name of the user for a cluster
  11. User string `json:"user"`
  12. // Selected determines if the context has been selected for use in the
  13. // dashboard
  14. Selected bool `json:"selected"`
  15. }