Documentation
¶
Index ¶
- func APIInt(api string) int
- func Container(port uint16) *basev0.NetworkInstance
- func GetPidUsingPort(port int) (string, error)
- func HashInt(s string, low, high int) int
- func IsPortAvailable(port int) bool
- func KillProcess(pid string) error
- func KillProcessUsingPort(port int) error
- func KubernetesService(service *configurations.Service, port uint16) *basev0.NetworkInstance
- func Namespace(service *configurations.Service) string
- func Native(port uint16) *basev0.NetworkInstance
- func Public(port uint16) *basev0.NetworkInstance
- func ToNamedPort(_ context.Context, app string, svc string, name string, api string) uint16
- type DeployManager
- type FixedStrategy
- type Manager
- type RuntimeManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Container ¶
func Container(port uint16) *basev0.NetworkInstance
func GetPidUsingPort ¶ added in v0.1.64
func IsPortAvailable ¶
func KillProcess ¶ added in v0.1.64
func KillProcessUsingPort ¶ added in v0.1.64
func KubernetesService ¶ added in v0.1.65
func KubernetesService(service *configurations.Service, port uint16) *basev0.NetworkInstance
func Namespace ¶ added in v0.1.65
func Namespace(service *configurations.Service) string
func Native ¶
func Native(port uint16) *basev0.NetworkInstance
func Public ¶ added in v0.1.64
func Public(port uint16) *basev0.NetworkInstance
Types ¶
type DeployManager ¶ added in v0.1.65
type DeployManager struct { }
func NewDeployManager ¶ added in v0.1.65
func NewDeployManager(_ context.Context) (*DeployManager, error)
func (*DeployManager) GenerateNetworkMappings ¶ added in v0.1.65
func (m *DeployManager) GenerateNetworkMappings(_ context.Context, service *configurations.Service, endpoints []*basev0.Endpoint) ([]*basev0.NetworkMapping, error)
GenerateNetworkMappings generates network mappings for a service endpoints
type FixedStrategy ¶
type FixedStrategy struct { }
type Manager ¶ added in v0.1.65
type Manager interface {
GenerateNetworkMappings(ctx context.Context, service *configurations.Service, endpoints []*basev0.Endpoint) ([]*basev0.NetworkMapping, error)
}
type RuntimeManager ¶
type RuntimeManager struct {
// contains filtered or unexported fields
}
func NewRuntimeManager ¶ added in v0.1.64
func NewRuntimeManager(_ 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.