Documentation ¶
Index ¶
- func BuildServiceDiscovery(name, namespace string, labels map[string]string, ...) ([]resource.Resourcer, error)
- func ConvertChainsToResourcers(name, namespace string, labels map[string]string, cs map[string][]*Chain) (map[string][]resource.Resourcer, error)
- type Chain
- type HubsChain
- type HubsChainConfig
- type Router
- type RouterConfig
- type Solution
- type SolutionConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HubsChain ¶ added in v0.3.1
type HubsChain struct {
// contains filtered or unexported fields
}
func NewHubsChain ¶ added in v0.3.1
func NewHubsChain(conf HubsChainConfig) *HubsChain
type HubsChainConfig ¶ added in v0.3.1
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(conf RouterConfig) *Router
func (*Router) BuildResource ¶
type RouterConfig ¶
type RouterConfig struct { Namespace string Labels map[string]string ExportHubName string ImportHubName string GetIdentity func(hubName string) string GetHubGateway func(hubName string, forHub string) v1alpha2.HubSpecGateway ListServices func(name string) []*corev1.Service GetPortPeer func(importHubName string, cluster, namespace, name string, port int32) int32 }
type Solution ¶ added in v0.3.1
type Solution struct {
// contains filtered or unexported fields
}
func NewSolution ¶ added in v0.3.1
func NewSolution(conf SolutionConfig) *Solution
type SolutionConfig ¶ added in v0.3.1
type SolutionConfig struct {
GetHubGateway func(hubName string, forHub string) v1alpha2.HubSpecGateway
}
Click to show internal directories.
Click to hide internal directories.