env

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: GPL-3.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// CacheComposer is an identifier for composer cache.
	CacheComposer = "cache-composer"

	// CacheYarn is an identifier for yarn cache.
	CacheYarn = "cache-yarn"
)
View Source
const (
	// SecretSSH is the identifier for storing the "id_rsa" and known_hosts file
	// secrets are stored.
	SecretSSH = "ssh"
	// SecretDockerCfg is the identifier for storing Docker configuration.
	SecretDockerCfg = "dockercfg"
)

Variables

This section is empty.

Functions

func Ingress

func Ingress(input IngressInput) (*extensions.Ingress, error)

Ingress converts a Docker Compose file into a Kubernetes Ingress object.

func PersistentVolumeClaim

func PersistentVolumeClaim(input PersistentVolumeClaimInput) *v1.PersistentVolumeClaim

PersistentVolumeClaim is used for creating a new PersistentVolumeClaim object.

func Pod

func Pod(input PodInput) (*v1.Pod, error)

Pod converts a Docker Compose file into a Kubernetes Deployment object.

func Secret

func Secret(input SecretInput) (*v1.Secret, error)

Secret is used for generating a "basic auth" secret for our PR environment. @todo, Needs a test.

func Service

func Service(input ServiceInput) (*v1.Service, error)

Service converts a Docker Compose file into a Kubernetes Service object.

Types

type IngressInput added in v0.4.1

type IngressInput struct {
	Namespace   string
	Name        string
	Annotations []*pb.Annotation
	Secret      string
	Retention   string
	Domains     []string
}

IngressInput provides the Ingress function with information to produce a Kubernetes Ingress.

type PersistentVolumeClaimInput added in v0.4.1

type PersistentVolumeClaimInput struct {
	Namespace string
	Name      string
	Storage   string
}

PersistentVolumeClaimInput provides the PersistentVolumeClaim function with information to produce a Kubernetes PersistentVolumeClaim.

type PodInput added in v0.4.1

type PodInput struct {
	Namespace   string
	Name        string
	Annotations []*pb.Annotation
	Repository  string
	Revision    string
	Retention   string
	Services    []*pb.ComposeService
	Prometheus  int32
}

PodInput provides the Pod function with information to produce a Kubernetes Pod.

type SecretInput added in v0.4.1

type SecretInput struct {
	Namespace   string
	Name        string
	Annotations []*pb.Annotation
	User        string
	Pass        string
	Retention   string
}

SecretInput provides the Secret function with information to produce a Kubernetes Secret.

type ServiceInput added in v0.4.1

type ServiceInput struct {
	Namespace   string
	Name        string
	Annotations []*pb.Annotation
	Retention   string
}

ServiceInput provides the Service function with information to produce a Kubernetes Service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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