kubernetes

package
v0.0.0-...-bcded96 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Deploy allows one to specify in a seperate package whether or not the app should be deployed to kubernetes
	Deploy bool
)

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateDeployment(DeploymentConfig) error
}

Client ...

func NewKubernetesClient

func NewKubernetesClient(path string) (Client, error)

NewKubernetesClient ...

type Configuration

type Configuration struct {
}

Configuration ...

type DeploymentConfig

type DeploymentConfig struct {
	Annotations map[string]string
	Args        []string
	Env         map[string]string
	BURL        string // binary url
	Name        string
	Labels      map[string]string
}

DeploymentConfig are the configuration parameters for a deployment (constructed from the flags)

type RealClient

type RealClient struct {
	ClientSet *kubernetes.Clientset
}

RealClient ...

func (*RealClient) CreateDeployment

func (c *RealClient) CreateDeployment(config DeploymentConfig) error

CreateDeployment ...

Jump to

Keyboard shortcuts

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