cmd

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GoalMapping = map[string]Goal{
		"fetch":  FetchServicesGoal,
		"render": RenderTemplatesGoal,
		"deploy": DeployServicesGoal,
	}
	GoalAliases = map[string][]string{
		"all": {"fetch", "render", "deploy"},
	}
	GoalOrder = []string{
		"fetch", "render", "deploy",
	}
)
View Source
var (
	BuildVersion     = "unknown"
	BuildDate        = "unknown"
	BuildHash        = "unknown"
	BuildEnvironment = "unknown"
)

Functions

func CopyFile

func CopyFile(src, dst string) error

yes, golang doesn't have any built-in function to copy a file ...

func DeployServicesGoal

func DeployServicesGoal(app *App) error

func FetchServicesGoal

func FetchServicesGoal(app *App) error

func FindFiles

func FindFiles(dir string, globs ...string) ([]string, error)

func Must

func Must(err error)

func NewDeployCommand

func NewDeployCommand(app *App) *cobra.Command

func NewRootCommand

func NewRootCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

func RenderTemplatesGoal

func RenderTemplatesGoal(app *App) error

Types

type App

type App struct {
	KubectlBuilder func(kubeconfig *string) (kubernetes.API, error)
	Kubectl        kubernetes.API

	Goals  []string
	Config settings.ProjectConfig

	SkipFetch  bool
	SkipDeploy bool
	Target     string
}

func (*App) DeployService

func (app *App) DeployService(service *settings.Service) error

func (*App) FetchService

func (app *App) FetchService(service *settings.Service) error

func (*App) PrepareConfig

func (app *App) PrepareConfig() error

func (*App) Run

func (app *App) Run() error

type Goal

type Goal func(app *App) error

func GetGoals

func GetGoals(names ...string) ([]Goal, error)

Jump to

Keyboard shortcuts

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