test

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BackendPort      = intstr.IntOrString{Type: intstr.Int, IntVal: 80}
	DefaultBeSvcPort = utils.ServicePort{
		ID:       utils.ServicePortID{Service: types.NamespacedName{Namespace: "system", Name: "default"}, Port: BackendPort},
		NodePort: 30000,
		Protocol: annotations.ProtocolHTTP,
	}
)

Functions

func Backend

func Backend(name string, port intstr.IntOrString) *extensions.IngressBackend

Backend returns an IngressBackend with the given service name/port.

func DecodeIngress

func DecodeIngress(data []byte) (*extensions.Ingress, error)

DecodeIngress deserializes an Ingress object.

func NewBackendConfig

NewBackendConfig returns a BackendConfig with the given spec.

func NewIngress

NewIngress returns an Ingress with the given spec.

func NewService

func NewService(name types.NamespacedName, spec api_v1.ServiceSpec) *api_v1.Service

NewService returns a Service with the given spec.

Types

This section is empty.

Jump to

Keyboard shortcuts

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