service

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 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, filter filter.Filter, 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) 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"`
}

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, filter filter.Filter) Service

func (*Service) GetExtendServices added in v1.0.3

func (s *Service) GetExtendServices() (filter.K8sJson, error)

Jump to

Keyboard shortcuts

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