Documentation ¶
Index ¶
- Variables
- func TagsKVToMap(tagsKV []string) map[string]string
- type DataplaneBuilder
- func (d *DataplaneBuilder) AddInbound(inbound *InboundBuilder) *DataplaneBuilder
- func (d *DataplaneBuilder) AddInboundHttpOfService(service string) *DataplaneBuilder
- func (d *DataplaneBuilder) AddInboundOfService(service string) *DataplaneBuilder
- func (d *DataplaneBuilder) AddInboundOfTags(tags ...string) *DataplaneBuilder
- func (d *DataplaneBuilder) AddInboundOfTagsMap(tags map[string]string) *DataplaneBuilder
- func (d *DataplaneBuilder) AddOutbound(outbound *OutboundBuilder) *DataplaneBuilder
- func (d *DataplaneBuilder) AddOutboundToService(service string) *DataplaneBuilder
- func (d *DataplaneBuilder) AddOutbounds(outbounds []*OutboundBuilder) *DataplaneBuilder
- func (d *DataplaneBuilder) AddOutboundsToServices(services ...string) *DataplaneBuilder
- func (d *DataplaneBuilder) Build() *core_mesh.DataplaneResource
- func (d *DataplaneBuilder) Create(s store.ResourceStore) error
- func (d *DataplaneBuilder) Key() core_model.ResourceKey
- func (d *DataplaneBuilder) With(fn func(*core_mesh.DataplaneResource)) *DataplaneBuilder
- func (d *DataplaneBuilder) WithAddress(address string) *DataplaneBuilder
- func (d *DataplaneBuilder) WithAdminPort(i int) *DataplaneBuilder
- func (d *DataplaneBuilder) WithHttpServices(services ...string) *DataplaneBuilder
- func (d *DataplaneBuilder) WithInboundOfTags(tagsKV ...string) *DataplaneBuilder
- func (d *DataplaneBuilder) WithInboundOfTagsMap(tags map[string]string) *DataplaneBuilder
- func (d *DataplaneBuilder) WithMesh(mesh string) *DataplaneBuilder
- func (d *DataplaneBuilder) WithName(name string) *DataplaneBuilder
- func (d *DataplaneBuilder) WithServices(services ...string) *DataplaneBuilder
- func (d *DataplaneBuilder) WithVersion(version string) *DataplaneBuilder
- func (d *DataplaneBuilder) WithoutInbounds() *DataplaneBuilder
- type InboundBuilder
- func (b *InboundBuilder) Build() *mesh_proto.Dataplane_Networking_Inbound
- func (b *InboundBuilder) WithAddress(addr string) *InboundBuilder
- func (b *InboundBuilder) WithPort(port uint32) *InboundBuilder
- func (b *InboundBuilder) WithService(name string) *InboundBuilder
- func (b *InboundBuilder) WithServicePort(port uint32) *InboundBuilder
- func (b *InboundBuilder) WithTags(tags map[string]string) *InboundBuilder
- type OutboundBuilder
- func (b *OutboundBuilder) Build() *mesh_proto.Dataplane_Networking_Outbound
- func (b *OutboundBuilder) WithAddress(addr string) *OutboundBuilder
- func (b *OutboundBuilder) WithPort(port uint32) *OutboundBuilder
- func (b *OutboundBuilder) WithService(name string) *OutboundBuilder
- func (b *OutboundBuilder) WithTags(tags map[string]string) *OutboundBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FirstInboundPort = uint32(80) FirstInboundServicePort = uint32(8080) FirstOutboundPort = uint32(10001) )
Functions ¶
func TagsKVToMap ¶
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 (d *DataplaneBuilder) Build() *core_mesh.DataplaneResource
func (*DataplaneBuilder) Create ¶
func (d *DataplaneBuilder) Create(s store.ResourceStore) error
func (*DataplaneBuilder) Key ¶
func (d *DataplaneBuilder) Key() core_model.ResourceKey
func (*DataplaneBuilder) With ¶
func (d *DataplaneBuilder) With(fn func(*core_mesh.DataplaneResource)) *DataplaneBuilder
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 (b *InboundBuilder) Build() *mesh_proto.Dataplane_Networking_Inbound
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 (b *OutboundBuilder) Build() *mesh_proto.Dataplane_Networking_Outbound
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
Click to show internal directories.
Click to hide internal directories.