cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidUsage = errors.New("kubeformation: invalid command usage")

Functions

func Execute

func Execute() error

func GetVersion

func GetVersion() string

GetVersion returns the current version string

func RenderProviderTemplate

func RenderProviderTemplate(l *log.Logger) http.Handler

Types

type Kubeformation

type Kubeformation struct {
	// Input Flags
	ProviderValue string
	InputFile     string
	OutputDir     string

	// Processed Data
	Data     []byte
	Provider provider.ProviderType

	// Rendered Files
	OutputFiles map[string][]byte

	// Handler to generate files
	Handler spec.VersionedSpecHandler
}

func (*Kubeformation) GetHandler

func (k *Kubeformation) GetHandler() error

func (*Kubeformation) ParseInputFlags

func (k *Kubeformation) ParseInputFlags() error

func (*Kubeformation) ParseProvider

func (k *Kubeformation) ParseProvider()

func (*Kubeformation) PrintFiles

func (k *Kubeformation) PrintFiles()

func (*Kubeformation) RenderOutputFiles

func (k *Kubeformation) RenderOutputFiles() error

func (*Kubeformation) WriteFilesToDir

func (k *Kubeformation) WriteFilesToDir() error

Jump to

Keyboard shortcuts

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