service

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolTCP   string = "tcp"
	ProtocolHTTP  string = "http"
	ProtocolHTTP2 string = "http2"
)

Variables

This section is empty.

Functions

func RequiredBridges

func RequiredBridges(services map[string]*ServiceBindings, siteId string) *qdr.BridgeConfig

Types

type EgressBindings

type EgressBindings struct {
	Selector string
	// contains filtered or unexported fields
}

func (*EgressBindings) GetLocalTargetPorts

func (target *EgressBindings) GetLocalTargetPorts(desired *ServiceBindings) map[int]int

type ExternalBridge

type ExternalBridge interface {
	Realise() error
	Matches(def *types.ServiceInterface) bool
}

type NullTargetResolver

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

func (*NullTargetResolver) Close

func (o *NullTargetResolver) Close()

func (*NullTargetResolver) HasTarget

func (o *NullTargetResolver) HasTarget() bool

func (*NullTargetResolver) List

func (o *NullTargetResolver) List() []string

type ServiceBindingContext

type ServiceBindingContext interface {
	NewTargetResolver(address string, selector string, skipTargetStatus bool) (TargetResolver, error)
	NewServiceIngress(def *types.ServiceInterface) ServiceIngress
	NewExternalBridge(def *types.ServiceInterface) ExternalBridge
}

type ServiceBindings

type ServiceBindings struct {
	Address string

	Labels      map[string]string
	Annotations map[string]string

	TlsCredentials           string
	TlsCertAuthority         string
	PublishNotReadyAddresses bool
	// contains filtered or unexported fields
}

func NewServiceBindings

func NewServiceBindings(required types.ServiceInterface, ports []int, bindingContext ServiceBindingContext) *ServiceBindings

func (*ServiceBindings) AsServiceInterface

func (bindings *ServiceBindings) AsServiceInterface() types.ServiceInterface

func (*ServiceBindings) FindLocalTarget

func (s *ServiceBindings) FindLocalTarget() *EgressBindings

func (*ServiceBindings) GetIngressPorts

func (s *ServiceBindings) GetIngressPorts() []int

func (*ServiceBindings) HeadlessName

func (sb *ServiceBindings) HeadlessName() string

func (*ServiceBindings) IsHeadless

func (sb *ServiceBindings) IsHeadless() bool

func (*ServiceBindings) PortMap

func (s *ServiceBindings) PortMap() map[int]int

func (*ServiceBindings) Protocol

func (s *ServiceBindings) Protocol() string

func (*ServiceBindings) RealiseExternalBridge

func (bindings *ServiceBindings) RealiseExternalBridge() error

func (*ServiceBindings) RealiseIngress

func (bindings *ServiceBindings) RealiseIngress() error

func (*ServiceBindings) RequiresExternalBridge

func (s *ServiceBindings) RequiresExternalBridge() bool

func (*ServiceBindings) SetIngressPorts

func (s *ServiceBindings) SetIngressPorts(ports []int)

func (*ServiceBindings) Stop

func (sb *ServiceBindings) Stop()

func (*ServiceBindings) Update

func (bindings *ServiceBindings) Update(required types.ServiceInterface, bindingContext ServiceBindingContext)

type ServiceIngress

type ServiceIngress interface {
	Realise(binding *ServiceBindings) error
	Mode() types.ServiceIngressMode
	Matches(def *types.ServiceInterface) bool
}

type TargetResolver

type TargetResolver interface {
	Close()
	List() []string
	HasTarget() bool
}

func NewNullTargetResolver

func NewNullTargetResolver(targets []string) TargetResolver

Jump to

Keyboard shortcuts

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