Documentation
¶
Index ¶
- func APIInt(api string) int
- func Container(port uint16) *basev0.NetworkInstance
- func HashInt(s string, low, high int) int
- func IsPortAvailable(port int) bool
- func Native(port uint16) *basev0.NetworkInstance
- func ToNamedPort(ctx context.Context, app string, svc string, name string, api string) uint16
- type DNSManager
- type FixedStrategy
- type RuntimeManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Container ¶
func Container(port uint16) *basev0.NetworkInstance
func IsPortAvailable ¶
func Native ¶
func Native(port uint16) *basev0.NetworkInstance
Types ¶
type DNSManager ¶
type DNSManager interface {
Get(service *configurations.Service, endpoint *configurations.Endpoint, env *configurations.Environment) (*basev0.DNS, error)
}
type FixedStrategy ¶
type FixedStrategy struct { }
type RuntimeManager ¶
type RuntimeManager struct { DNSManager DNSManager // contains filtered or unexported fields }
func NewManager ¶
func NewManager(_ context.Context) (*RuntimeManager, error)
func (RuntimeManager) GenerateNetworkMappings ¶
func (m RuntimeManager) GenerateNetworkMappings(ctx context.Context, service *configurations.Service, endpoints []*basev0.Endpoint) ([]*basev0.NetworkMapping, error)
GenerateNetworkMappings generates network mappings for a service endpoints
Click to show internal directories.
Click to hide internal directories.