naming

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

View Source
const (
	PubsubMax       = 255
	LoggingSinkMax  = 100
	K8sNamespaceMax = 63
	K8sNameMax      = 253
)

Variables

This section is empty.

Functions

func TruncatedLoggingSinkResourceName

func TruncatedLoggingSinkResourceName(prefix, ns, n string, uid types.UID) string

TruncatedLoggingSinkResourceName generates a deterministic name for a StackDriver logging sink. If the name would be longer than allowed by StackDriver, the name is truncated to fit.

func TruncatedPubsubResourceName

func TruncatedPubsubResourceName(prefix, ns, n string, uid types.UID) string

TruncatedPubsubResourceName generates a deterministic name for a Pub/Sub resource. If the name would be longer than allowed by Pub/Sub, the name is truncated to fit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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