service

package
v0.0.0-...-1d80bfb Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TCP = "TCP"
	UDP = "UDP"
)

Variables

This section is empty.

Functions

func ExternalHandle

func ExternalHandle(param resourcemanage.ExtendContext) (interface{}, *errcode.ErrorInfo)

Types

type ExternalAccess

type ExternalAccess struct {
	NginxNamespace           string
	NginxTcpServiceConfigMap string
	NginxUdpServiceConfigMap string
	// contains filtered or unexported fields
}

func NewExternalAccess

func NewExternalAccess(client client.Client, namespace string, name string, condition *filter.Condition, nginxNs string, tcpCm string, udpCm string) ExternalAccess

func (*ExternalAccess) DeleteExternalAccess

func (s *ExternalAccess) DeleteExternalAccess() error

DeleteExternalAccess delete external service

func (*ExternalAccess) GetExternalAccessConfigMap

func (s *ExternalAccess) GetExternalAccessConfigMap() (tcpResultMap map[int]*ExternalAccessInfo, udpResultMap map[int]*ExternalAccessInfo, err error)

func (*ExternalAccess) SetExternalAccess

func (s *ExternalAccess) SetExternalAccess(externalServices []ExternalAccessInfo) error

type ExternalAccessInfo

type ExternalAccessInfo struct {
	ServicePort     int    `json:"servicePort,omitempty"`
	Protocol        string `json:"protocol,omitempty"`
	ExternalPort    *int   `json:"externalPort,omitempty"`
	ServicePortName string `json:"servicePortName,omitempty"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(client mgrclient.Client, namespace string, condition *filter.Condition) Service

Jump to

Keyboard shortcuts

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