kubeapp

package module
v0.0.0-...-d1fd2e1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

README

kubeapp

Utilities for writing and testing Go applications to run in a Kubernetes cluster

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 Secret

type Secret interface {
	fmt.Stringer
	Value() string
}

func SecretFromFile

func SecretFromFile(filename string) (Secret, error)

func StaticSecret

func StaticSecret(val string) Secret

type Service

type Service interface {
	Host() string
	Port() int
	HostStr() string
}

func ServiceFromEnvVars

func ServiceFromEnvVars(name string) (Service, error)

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

func StaticService(host string, port int) Service

StaticService creates a service that contains the given values. It's useful for unit testing in environments outside Kubernetes

Directories

Path Synopsis
api
pod
rc

Jump to

Keyboard shortcuts

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