builders

package
v0.0.0-...-fcd5a22 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FirstInboundPort        = uint32(80)
	FirstInboundServicePort = uint32(8080)
	FirstOutboundPort       = uint32(10001)
)

Functions

func TagsKVToMap

func TagsKVToMap(tagsKV []string) map[string]string

Types

type DataplaneBuilder

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

func Dataplane

func Dataplane() *DataplaneBuilder

func (*DataplaneBuilder) AddInbound

func (d *DataplaneBuilder) AddInbound(inbound *InboundBuilder) *DataplaneBuilder

func (*DataplaneBuilder) AddInboundHttpOfService

func (d *DataplaneBuilder) AddInboundHttpOfService(service string) *DataplaneBuilder

func (*DataplaneBuilder) AddInboundOfService

func (d *DataplaneBuilder) AddInboundOfService(service string) *DataplaneBuilder

func (*DataplaneBuilder) AddInboundOfTags

func (d *DataplaneBuilder) AddInboundOfTags(tags ...string) *DataplaneBuilder

func (*DataplaneBuilder) AddInboundOfTagsMap

func (d *DataplaneBuilder) AddInboundOfTagsMap(tags map[string]string) *DataplaneBuilder

func (*DataplaneBuilder) AddOutbound

func (d *DataplaneBuilder) AddOutbound(outbound *OutboundBuilder) *DataplaneBuilder

func (*DataplaneBuilder) AddOutboundToService

func (d *DataplaneBuilder) AddOutboundToService(service string) *DataplaneBuilder

func (*DataplaneBuilder) AddOutbounds

func (d *DataplaneBuilder) AddOutbounds(outbounds []*OutboundBuilder) *DataplaneBuilder

func (*DataplaneBuilder) AddOutboundsToServices

func (d *DataplaneBuilder) AddOutboundsToServices(services ...string) *DataplaneBuilder

func (*DataplaneBuilder) Build

func (*DataplaneBuilder) Create

func (*DataplaneBuilder) Key

func (*DataplaneBuilder) With

func (*DataplaneBuilder) WithAddress

func (d *DataplaneBuilder) WithAddress(address string) *DataplaneBuilder

func (*DataplaneBuilder) WithAdminPort

func (d *DataplaneBuilder) WithAdminPort(i int) *DataplaneBuilder

func (*DataplaneBuilder) WithHttpServices

func (d *DataplaneBuilder) WithHttpServices(services ...string) *DataplaneBuilder

func (*DataplaneBuilder) WithInboundOfTags

func (d *DataplaneBuilder) WithInboundOfTags(tagsKV ...string) *DataplaneBuilder

func (*DataplaneBuilder) WithInboundOfTagsMap

func (d *DataplaneBuilder) WithInboundOfTagsMap(tags map[string]string) *DataplaneBuilder

func (*DataplaneBuilder) WithMesh

func (d *DataplaneBuilder) WithMesh(mesh string) *DataplaneBuilder

func (*DataplaneBuilder) WithName

func (d *DataplaneBuilder) WithName(name string) *DataplaneBuilder

func (*DataplaneBuilder) WithServices

func (d *DataplaneBuilder) WithServices(services ...string) *DataplaneBuilder

func (*DataplaneBuilder) WithVersion

func (d *DataplaneBuilder) WithVersion(version string) *DataplaneBuilder

func (*DataplaneBuilder) WithoutInbounds

func (d *DataplaneBuilder) WithoutInbounds() *DataplaneBuilder

type InboundBuilder

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

func Inbound

func Inbound() *InboundBuilder

func (*InboundBuilder) Build

func (*InboundBuilder) WithAddress

func (b *InboundBuilder) WithAddress(addr string) *InboundBuilder

func (*InboundBuilder) WithPort

func (b *InboundBuilder) WithPort(port uint32) *InboundBuilder

func (*InboundBuilder) WithService

func (b *InboundBuilder) WithService(name string) *InboundBuilder

func (*InboundBuilder) WithServicePort

func (b *InboundBuilder) WithServicePort(port uint32) *InboundBuilder

func (*InboundBuilder) WithTags

func (b *InboundBuilder) WithTags(tags map[string]string) *InboundBuilder

type OutboundBuilder

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

func Outbound

func Outbound() *OutboundBuilder

func (*OutboundBuilder) Build

func (*OutboundBuilder) WithAddress

func (b *OutboundBuilder) WithAddress(addr string) *OutboundBuilder

func (*OutboundBuilder) WithPort

func (b *OutboundBuilder) WithPort(port uint32) *OutboundBuilder

func (*OutboundBuilder) WithService

func (b *OutboundBuilder) WithService(name string) *OutboundBuilder

func (*OutboundBuilder) WithTags

func (b *OutboundBuilder) WithTags(tags map[string]string) *OutboundBuilder

Jump to

Keyboard shortcuts

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