api

package
v5.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Parameters   *Parameters
	Clients      *Clients
	Settings     *settings.Settings
	Interceptors *interceptors.Multi
}

func New

func New(p *Parameters) (*App, error)

func (*App) Apply

func (app *App) Apply(project, branchName string) error

func (*App) Close

func (app *App) Close() error

func (*App) CurrentContext

func (app *App) CurrentContext() settings.Service

func (*App) Fetch

func (app *App) Fetch(project, branchName string) (*FetchResult, error)

func (*App) Generate

func (app *App) Generate(project, branchName string) ([]runtime.Object, error)

func (*App) Render

func (app *App) Render(fetched *FetchResult) ([]runtime.Object, error)

func (*App) StartInterceptors

func (app *App) StartInterceptors(service *settings.Service)

type Clients

type Clients struct {
	GitHub     gh.Interface
	Kubectl    kubectl.Interface
	Kubernetes kubernetes.Interface
	Statsd     statsdw.Interface
}

type FetchResult

type FetchResult struct {
	Branch    *gh.Branch
	Service   *settings.Service
	Templates []gh.File
}

type Parameters

type Parameters struct {
	Context string

	Kubeconfig  string
	KubectlPath string `mapstructure:"kubectl-path"`

	GitHubToken   string `mapstructure:"github-token"`
	HTTPCacheDir  string `mapstructure:"http-cache-dir"`
	GELFAddress   string `mapstructure:"gelf-address"`
	StatsdAddress string `mapstructure:"statsd-address"`

	Filename string
}

Jump to

Keyboard shortcuts

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