namedports

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamedPort

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

NamedPort maintains instance groups named ports in sync with a provided PortList

func NewNamedPort

func NewNamedPort(zone, cluster, project string, dryrun bool, logger *logrus.Logger) *NamedPort

NewNamedPort returns a NamedPort instance

func (*NamedPort) ResyncNamedPorts

func (n *NamedPort) ResyncNamedPorts(expected PortList) error

ResyncNamedPorts ensure the GKE cluster's instance groups have the named ports described by the provided PortList.

type PortList

type PortList map[string]int64

PortList is a group of named ports (port name, port number)

Jump to

Keyboard shortcuts

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