fixture

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjectMeta

func ObjectMeta(nameStr string) metav1.ObjectMeta

ObjectMeta cracks a Kubernetes object name string of the form "namespace/name" into a metav1.ObjectMeta struct. If the namespace portion is omitted, then the default namespace is filled in.

Types

type ProxyBuilder

type ProxyBuilder v1.HTTPProxy

ProxyBuilder is a builder object to make creating HTTPProxy fixtures more succinct.

func NewProxy

func NewProxy(name string) *ProxyBuilder

NewProxy creates a new ProxyBuilder with the specified object name.

func (*ProxyBuilder) Annotate

func (b *ProxyBuilder) Annotate(k string, v string) *ProxyBuilder

Label adds the given values as metadata annotations.

func (*ProxyBuilder) Label

func (b *ProxyBuilder) Label(k string, v string) *ProxyBuilder

Label adds the given values as metadata labels.

func (*ProxyBuilder) WithFQDN

func (b *ProxyBuilder) WithFQDN(fqdn string) *ProxyBuilder

func (*ProxyBuilder) WithSpec

func (b *ProxyBuilder) WithSpec(spec v1.HTTPProxySpec) *v1.HTTPProxy

WithSpec updates the builder's Spec field, returning the build proxy.

Jump to

Keyboard shortcuts

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