names

package
v0.176.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForCluster

func ForCluster(a, b string) string

ForCluster generates a name string when a and b are empty strings. If either a or b are non-empty, it returns whichever is non-empty. If neither a nor b are empty, it returns empty name, to indicate ambiguous usage.

func ForFargateProfile

func ForFargateProfile(name string) string

ForFargateProfile returns the provided name if non-empty, or else generates a random name matching: fp-[abcdef0123456789]{8}

func ForNodeGroup

func ForNodeGroup(a, b string) string

ForNodeGroup generates a name string when a and b are empty strings. If either a or b are non-empty, it returns whichever is non-empty. If neither a nor b are empty, it returns empty name, to indicate ambiguous usage. It uses a different naming scheme from ClusterName, so that users can easily distinguish a cluster name from nodegroup name.

func RandomName

func RandomName(length int, chars string) string

RandomName generates a string of the provided length by randomly selecting characters in the provided set.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL