api

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContainers

func CreateContainers(app Application) []v12.Container

func CreateDeployment

func CreateDeployment(app Application) (v1.Deployment, error)

func CreateIngress

func CreateIngress(app Application) (v1.Ingress, error)

func CreatePVCName

func CreatePVCName(app Application, path string) string

func CreatePersistentVolume

func CreatePersistentVolume(app Application, path string, size string) (v1.PersistentVolumeClaim, error)

func CreatePod

func CreatePod(app Application) (v1.Pod, error)

func CreateService

func CreateService(app Application) (v1.Service, error)

func CreateVolumes

func CreateVolumes(app Application) []v12.Volume

func Expand

func Expand(w io.Writer, app Application, podOnly bool) error

func FetchTemplate

func FetchTemplate(kaex Kaex, writer io.Writer, name string) error

func WriteCleanResource added in v0.1.4

func WriteCleanResource(w io.Writer, resource interface{}) error

func WriteResource

func WriteResource(w io.Writer, resource interface{}) error

Types

type Application

type Application struct {
	Name      string
	Namespace string

	Image           string
	Version         string
	ImagePullSecret string

	Url  string
	Port int32

	Replicas int32

	Environment map[string]string
	Volumes     []map[string]string

	Ingress IngressConfig
}

func ParseApplication

func ParseApplication(reader io.Reader) (Application, error)

type IngressConfig

type IngressConfig struct {
	Annotations map[string]string
}

type Kaex

type Kaex struct {
	Err io.Writer
	Out io.Writer
	In  io.Reader

	ConfigPath      string
	TemplatesDirURL string
}

Jump to

Keyboard shortcuts

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