Documentation
¶
Index ¶
- func GetGKEClusterFromDB(ctx context.Context, name string) (models.GKECluster, error)
- func ProjectFQN(s string) string
- func RegionFromZone(zone string) string
- func ResourceNameFromURL(s string) string
- func UnqualifyRegion(s string) string
- func UnqualifyZone(s string) string
- func ZoneFQN(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGKEClusterFromDB ¶ added in v0.1.2
GetGKEClusterFromDB returns the models.GKECluster with the given name by looking up the database.
func ProjectFQN ¶
ProjectFQN returns the fully-qualified name for the given project id.
func RegionFromZone ¶
RegionFromZone returns the region name from a given zone according to the GCP Naming Convention. If the provided zone name is invalid or empty, the function returns an empty string.
func ResourceNameFromURL ¶
ResourceNameFromURL returns the name of a resource from the specified URL.
See Resource Names for more details.
func UnqualifyRegion ¶
UnqualifyRegion returns the unqualified name for a region.
func UnqualifyZone ¶
UnqualifyZone returns the unqualified name for a zone.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.