service

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func AddressHandle added in v1.2.2

func AddressHandle(param resourcemanage.ExtendParams) (interface{}, error)

func ExternalHandle added in v1.2.2

func ExternalHandle(param resourcemanage.ExtendParams) (interface{}, error)

func Handle added in v1.2.2

func Handle(param resourcemanage.ExtendParams) (interface{}, error)

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) GetExternalAccess

func (s *ExternalAccess) GetExternalAccess() ([]ExternalAccessInfo, error)

GetExternalAccess get external info

func (*ExternalAccess) GetExternalAccessConfigMap added in v1.7.0

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

func (*ExternalAccess) GetExternalIP

func (s *ExternalAccess) GetExternalIP() ([]string, error)

GetExternalIP ingress-nginx pod status host IPs

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

func (*Service) GetExtendServices added in v1.0.3

func (s *Service) GetExtendServices() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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