Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientInCluster ¶
func ClientInCluster() (kubeclient.Interface, error)
ClientInCluster is a convenience function for calling NewInCluster inside the github.com/jchauncey/kubeclient/client/unversioned package
Types ¶
type ErrInvalidPort ¶
type ErrInvalidPort struct {
// contains filtered or unexported fields
}
func (ErrInvalidPort) Error ¶
func (e ErrInvalidPort) Error() string
type ErrNoSuchEnvVar ¶
type ErrNoSuchEnvVar struct {
// contains filtered or unexported fields
}
func (ErrNoSuchEnvVar) Error ¶
func (e ErrNoSuchEnvVar) Error() string
type Service ¶
func ServiceFromEnvVars ¶
ServiceFromEnvVars looks up the service discovery environment variables described in http://kubernetes.io/v1.1/docs/user-guide/services.html#environment-variables.
Returns an error if any of the environment variables don't exist or any were invalid.
func StaticService ¶
StaticService creates a service that contains the given values. It's useful for unit testing in environments outside Kubernetes
Click to show internal directories.
Click to hide internal directories.