k8s

package
v0.0.0-...-44fb6e4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func GetSecretCert(sec *v1.Secret) (cert []byte, exists bool)

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

func HasEndpointsAddresses(ep *v1.Endpoints) (exists bool)

HasEndpointsAddresses verifies addresses are available

Types

type Obj

type Obj struct {
	Name, Namespace string
}

Obj is a name namespace tuple

type ObjValue

type ObjValue Obj

ObjValue is a meta namespace key variant implementing the Value interface

func ObjMixin

func ObjMixin(s kingpin.Settings) (val *ObjValue)

ObjMixin is a kingpin convenience function

func (*ObjValue) Set

func (o *ObjValue) Set(val string) error

Set values the object from a string or errors.

func (*ObjValue) String

func (o *ObjValue) String() (val string)

Jump to

Keyboard shortcuts

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