MCPcopy
hub / github.com/cloudfoundry/cli / NewSecurityGroupName

Function NewSecurityGroupName

integration/helpers/name_generator.go:104–110  ·  view source on GitHub ↗

NewSecurityGroupName provides a random name prefixed with INTEGRATION-SEC-GROUP. If an infix is provided, it is placed between INTEGRATION-SEC-GROUP and the random string.

(infix ...string)

Source from the content-addressed store, hash-verified

102// NewSecurityGroupName provides a random name prefixed with INTEGRATION-SEC-GROUP. If an infix is provided, it
103// is placed between INTEGRATION-SEC-GROUP and the random string.
104func NewSecurityGroupName(infix ...string) string {
105 if len(infix) > 0 {
106 return PrefixedRandomName("INTEGRATION-SEC-GROUP-" + infix[0])
107 }
108
109 return PrefixedRandomName("INTEGRATION-SEC-GROUP")
110}
111
112// NewSpaceName provides a random name prefixed with INTEGRATION-SPACE
113func NewSpaceName() string {

Calls 1

PrefixedRandomNameFunction · 0.85

Tested by

no test coverage detected