compiler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler interface {
	// Compile a model
	Compile(opts *CompilerOptions, svc *models.Service) (Plan, error)
	// Delete a model
	Delete(opts *CompilerOptions, svc *models.Service) (Plan, error)
	// Tail the logs for an existing service
	Logs(svc *models.Service, stdout, stderr io.Writer) error
}

Compiler is an interface for things that know how to compile metaparticle models

func NewAciCompiler

func NewAciCompiler() Compiler

func NewDockerCompiler

func NewDockerCompiler() Compiler

func NewKubernetesCompiler

func NewKubernetesCompiler() (Compiler, error)

NewKubernetesCompiler creates an Kubernetes Compiler instance

type CompilerOptions

type CompilerOptions struct {
	WorkingDirectory string
}

type Plan

type Plan interface {
	Execute(dryrun bool) error
	Dump(directory string) error
}

Jump to

Keyboard shortcuts

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