service

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 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 added in v1.2.2

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 added in v1.7.0

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 added in v1.0.3

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

func NewService added in v1.0.3

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