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

Function QuotaName

integration/helpers/quota.go:5–10  ·  view source on GitHub ↗

QuotaName provides a random name prefixed with INTEGRATION-QUOTA. If given a name, it structures the name like INTEGRATION-QUOTA-name-randomstring.

(name ...string)

Source from the content-addressed store, hash-verified

3// QuotaName provides a random name prefixed with INTEGRATION-QUOTA. If given a name,
4// it structures the name like INTEGRATION-QUOTA-name-randomstring.
5func QuotaName(name ...string) string {
6 if len(name) > 0 {
7 return PrefixedRandomName("INTEGRATION-QUOTA-" + name[0])
8 }
9 return PrefixedRandomName("INTEGRATION-QUOTA")
10}

Calls 1

PrefixedRandomNameFunction · 0.85

Tested by

no test coverage detected