Documentation
¶
Overview ¶
Package params provide common tool parameter types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
LocationRequired
ClusterName string `json:"cluster_name" jsonschema:"Required. GKE cluster name."`
}
Cluster contains the location and GKE cluster name.
func (*Cluster) ClusterPath ¶
ClusterPath returns the full GKE cluster resource path.
type LocationOptional ¶
type LocationOptional struct {
Project
Location string `json:"location,omitempty" jsonschema:"Optional. GCP region or zone."`
}
LocationOptional contains the project and an optional GKE cluster location.
func (*LocationOptional) LocationPath ¶
func (l *LocationOptional) LocationPath() string
LocationPath returns the GKE location resource path, using "-" for all locations if empty.
type LocationRequired ¶
type LocationRequired struct {
Project
Location string `json:"location" jsonschema:"Required to be a valid GCP region or zone. MUST NOT be empty."`
}
LocationRequired contains the project and GKE cluster location.
func (*LocationRequired) LocationPath ¶
func (l *LocationRequired) LocationPath() string
LocationPath returns the GKE location resource path.
Click to show internal directories.
Click to hide internal directories.