Interface IdentifierGenerator

Utility class for generating container identifiers.

interface IdentifierGenerator {
    extractPod: ((identifier: ResourceIdentifier) => ResourceIdentifier);
    generate: ((name: string) => ResourceIdentifier);
}

Implemented by

Properties

Properties

extractPod: ((identifier: ResourceIdentifier) => ResourceIdentifier)

Extracts the root pod this identifier would be in. This assumes the identifier of that pod was generated by the same instance of this interface.

generate: ((name: string) => ResourceIdentifier)

Generates container identifiers based on an input name. This is simply string generation, no resource-related checks are run.