serviceimport

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointAddress

func EndpointAddress(endpoint takod.DiscoveryEndpoint) string

func RowUpstream

func RowUpstream(row Row) string

func RowsUpstreams

func RowsUpstreams(rows []Row) []string

func ServerNames

func ServerNames(cfg *config.Config, envName string, importConfig config.ImportConfig, requestedServer string) ([]string, error)

func ValidateEndpoint

func ValidateEndpoint(endpoint takod.DiscoveryEndpoint, serviceName string, port int) (takod.DiscoveryEndpoint, error)

Types

type PortSpec

type PortSpec struct {
	Name     string
	Target   int
	Protocol string
}

type ResolvedExport

type ResolvedExport struct {
	Target   int
	Protocol string
}

func ResolveExport

func ResolveExport(client takodclient.RequestExecutor, socket string, alias string, importConfig config.ImportConfig) (ResolvedExport, error)

type Row

type Row struct {
	Node      string
	Service   string
	Port      PortSpec
	Container string
	Host      string
	Address   string
}

func RowsFromResponse

func RowsFromResponse(
	serverName string,
	response takod.DiscoveryResponse,
	project string,
	environment string,
	serviceName string,
	port PortSpec,
) ([]Row, error)

Jump to

Keyboard shortcuts

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