services

package
v0.8.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildServiceDiscovery

func BuildServiceDiscovery(om metav1.ObjectMeta, ips []string, mappingPorts map[string][]MappingPort) []resource.Resourcer

BuildServiceDiscovery the Egress Discovery resource, perhaps Service or DNS

Types

type MappingPort

type MappingPort struct {
	Name       string `json:"name,omitempty"`
	Protocol   string `json:"protocol,omitempty"`
	Port       int32  `json:"port,omitempty"`
	TargetPort int32  `json:"targetPort,omitempty"`
}

type Service

type Service struct {
	ExportHubName          string
	ExportServiceName      string
	ExportServiceNamespace string
	ImportServiceName      string
	ImportServiceNamespace string
	Ports                  []MappingPort
}

func ServiceFrom

func ServiceFrom(m map[string]string) (Service, error)

func (Service) ToMap

func (s Service) ToMap() (map[string]string, error)

Jump to

Keyboard shortcuts

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