builders

package
v0.0.0-...-ed96a3d Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Namespaces = []*NamespaceBuilder{
	buildFrontEndDev(),
	buildBackEndDev(),
}

Functions

This section is empty.

Types

type K8sBuilder

type K8sBuilder interface {
	Build() (string, string, runtime.Object)
}

type NamespaceBuilder

type NamespaceBuilder struct {
	corev1.Namespace
	Objects []K8sBuilder
}

func NewNamespaceBuilder

func NewNamespaceBuilder(name string) *NamespaceBuilder

func (*NamespaceBuilder) NewNetPolBuilder

func (b *NamespaceBuilder) NewNetPolBuilder(policyName string) *NetPolBuilder

func (*NamespaceBuilder) NewPodBuilder

func (b *NamespaceBuilder) NewPodBuilder(podName string) *PodBuilder

type NetPolBuilder

type NetPolBuilder struct {
	nwv1.NetworkPolicy
}

func (*NetPolBuilder) Build

func (b *NetPolBuilder) Build() (string, string, runtime.Object)

type PodBuilder

type PodBuilder struct {
	corev1.Pod
}

func (*PodBuilder) AddPort

func (b *PodBuilder) AddPort(name string, num int32) *PodBuilder

func (*PodBuilder) Build

func (b *PodBuilder) Build() (string, string, runtime.Object)

Jump to

Keyboard shortcuts

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