namer

package
v0.0.0-...-97cf01e Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 1 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namer

type Namer struct {
	// contains filtered or unexported fields
}

Namer provides a naming schema for GCP resources

func NewNamer

func NewNamer(prefix, lbName string) *Namer

NewNamer returns a new namer using the given prefix and load balancer name.

func (*Namer) BeServiceName

func (n *Namer) BeServiceName(port int64) string

BeServiceName returns the name for the backend service on the given port.

func (*Namer) FirewallRuleName

func (n *Namer) FirewallRuleName() string

FirewallRuleName returns a name for a firewall.

func (*Namer) HTTPForwardingRuleName

func (n *Namer) HTTPForwardingRuleName() string

HTTPForwardingRuleName returns the forwarding rule name.

func (*Namer) HTTPSForwardingRuleName

func (n *Namer) HTTPSForwardingRuleName() string

HTTPSForwardingRuleName returns the forwarding rule name.

func (*Namer) HealthCheckName

func (n *Namer) HealthCheckName(port int64) string

HealthCheckName returns the name for a health check on the given port.

func (*Namer) SSLCertName

func (n *Namer) SSLCertName() string

SSLCertName returns a name for SSL certificates.

func (*Namer) TargetHTTPProxyName

func (n *Namer) TargetHTTPProxyName() string

TargetHTTPProxyName returns a name for the http proxy.

func (*Namer) TargetHTTPSProxyName

func (n *Namer) TargetHTTPSProxyName() string

TargetHTTPSProxyName returns a name for the https proxy.

func (*Namer) Truncate

func (n *Namer) Truncate(key string) string

Truncate truncates the given key to a GCE length limit.

func (*Namer) URLMapName

func (n *Namer) URLMapName() string

URLMapName returns the name for a url map.

Jump to

Keyboard shortcuts

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