123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- package proxy
- import (
- "fmt"
- "k8s.io/api/core/v1"
- "k8s.io/apimachinery/pkg/types"
- "k8s.io/kubernetes/pkg/proxy/config"
- )
- type ProxyProvider interface {
- config.EndpointsHandler
- config.ServiceHandler
-
- Sync()
-
-
-
- SyncLoop()
- }
- type ServicePortName struct {
- types.NamespacedName
- Port string
- }
- func (spn ServicePortName) String() string {
- return fmt.Sprintf("%s:%s", spn.NamespacedName.String(), spn.Port)
- }
- type ServicePort interface {
-
- String() string
-
- ClusterIPString() string
-
- ExternalIPStrings() []string
-
- LoadBalancerIPStrings() []string
-
- GetProtocol() v1.Protocol
-
- GetHealthCheckNodePort() int
-
- GetNodePort() int
- }
- type Endpoint interface {
-
-
- String() string
-
- GetIsLocal() bool
-
- IP() string
-
- Port() (int, error)
-
- Equal(Endpoint) bool
- }
- type ServiceEndpoint struct {
- Endpoint string
- ServicePortName ServicePortName
- }
|