service

package
v0.0.0-...-5620f93 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder is the builder object for Service

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns new instance of Builder

func (*Builder) Build

func (b *Builder) Build() (*corev1.Service, error)

Build returns the Service API instance

func (*Builder) WithLabels

func (b *Builder) WithLabels(labels map[string]string) *Builder

WithLabels sets the labels field of Service provided arguments

func (*Builder) WithName

func (b *Builder) WithName(name string) *Builder

WithName sets the Name field of Service with provided value.

func (*Builder) WithNamespace

func (b *Builder) WithNamespace(namespace string) *Builder

WithNamespace sets the Namespace field of Service provided arguments

func (*Builder) WithPorts

func (b *Builder) WithPorts(ports []corev1.ServicePort) *Builder

WithPorts sets the ports field of Service provided arguments

func (*Builder) WithSelectorsNew

func (b *Builder) WithSelectorsNew(selectors map[string]string) *Builder

WithSelectorsNew resets existing selectors if any with ones that are provided here

type Service

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

Service is a wrapper over service api object. It provides build, validations and other common logic to be used by various feature specific callers.

Jump to

Keyboard shortcuts

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