app

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 9 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 {
	Toolsets           *toolset.Toolsets
	ToolsDirectoryPath string
	CrdDirectoryPath   string
	GitCrds            []GitCrd
	Crds               map[string]Crd
	// contains filtered or unexported fields
}

func New

func New(logger logging.Logger, toolsDirectoryPath, crdDirectoryPath, toolsetsPath string) (*App, error)

func (*App) AddGitCrd

func (a *App) AddGitCrd(url string, privateKey []byte, crdPath string) error

func (*App) CleanUp

func (a *App) CleanUp() error

func (*App) ReconcileCrd

func (a *App) ReconcileCrd(version, namespacedName string, getToolset func(obj runtime.Object) error) error

func (*App) ReconcileGitCrds

func (a *App) ReconcileGitCrds() error

func (*App) ReloadCurrentToolsets

func (a *App) ReloadCurrentToolsets(toolsDirectoryPath string, toolsetsPath string) error

type Crd

type Crd interface {
	ReconcileWithFunc(func(obj runtime.Object) error, string, *toolset.Toolsets) error
	CleanUp() error
}

func NewCrd

func NewCrd(logger logging.Logger, version string, getToolset func(obj runtime.Object) error, toolsDirectoryPath string, toolsets *toolset.Toolsets) (Crd, error)

type GitCrd

type GitCrd interface {
	Reconcile(string, *toolset.Toolsets) error
	CleanUp() error
}

func NewGitCrd

func NewGitCrd(logger logging.Logger, crdDirectoryPath, crdUrl string, privateKey []byte, crdPath, toolsDirectoryPath string, toolsets *toolset.Toolsets) (GitCrd, error)

Jump to

Keyboard shortcuts

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