Documentation ¶
Index ¶
- Constants
- func GetEndpointsPort(ep *v1.Endpoints, port intstr.IntOrString, protocol v1.Protocol) (val v1.EndpointPort, exists bool)
- func GetSecretCert(sec *v1.Secret) (cert []byte, exists bool)
- func GetServicePort(svc *v1.Service, port intstr.IntOrString, protocol v1.Protocol) (val v1.ServicePort, exists bool)
- func HasEndpointsAddresses(ep *v1.Endpoints) (exists bool)
- type Obj
- type ObjValue
Constants ¶
View Source
const (
// CertPem is the string constant used to locate a secrets cert
CertPem = "cert.pem"
)
Variables ¶
This section is empty.
Functions ¶
func GetEndpointsPort ¶
func GetEndpointsPort(ep *v1.Endpoints, port intstr.IntOrString, protocol v1.Protocol) (val v1.EndpointPort, exists bool)
GetEndpointsPort extracts the matching endpoints port
func GetSecretCert ¶
GetSecretCert extracts the 'cert.pem' from a secret
func GetServicePort ¶
func GetServicePort(svc *v1.Service, port intstr.IntOrString, protocol v1.Protocol) (val v1.ServicePort, exists bool)
GetServicePort extracts the matching service port
func HasEndpointsAddresses ¶
HasEndpointsAddresses verifies addresses are available
Types ¶
Click to show internal directories.
Click to hide internal directories.