Documentation ¶
Overview ¶
Package names implements name generator
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NameGenerator ¶
A NameGenerator finds a free/available name for a resource with a specified metadata.generateName value. The name is temporary available, but might be taken by the time the resource is created.
func NewNameGenerator ¶
func NewNameGenerator(c client.Client) NameGenerator
NewNameGenerator returns a new NameGenerator.
type NameGeneratorFn ¶
A NameGeneratorFn is a function that satisfies NameGenerator.
func (NameGeneratorFn) GenerateName ¶
GenerateName generates a name using the same algorithm as the API server, and verifies temporary name availability. It does not submit the resource to the API server and hence it does not fall over validation errors.
Click to show internal directories.
Click to hide internal directories.