app

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 20 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 {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(app v1alpha1.App, hooks AppHooks,
	fetchFactory fetch.Factory, templateFactory template.Factory, log logr.Logger) *App

func (*App) Name

func (a *App) Name() string

func (*App) Namespace

func (a *App) Namespace() string

func (*App) Reconcile

func (a *App) Reconcile() error

Reconcile is not expected to be called concurrently

func (*App) Status

func (a *App) Status() v1alpha1.AppStatus

func (*App) StatusAsYAMLBytes

func (a *App) StatusAsYAMLBytes() ([]byte, error)

type AppHooks

type AppHooks struct {
	BlockDeletion   func() error
	UnblockDeletion func() error
	UpdateStatus    func() error
	WatchChanges    func(func(v1alpha1.App), chan struct{}) error
}

type CRDApp

type CRDApp struct {
	// contains filtered or unexported fields
}

func NewCRDApp

func NewCRDApp(appModel *kcv1alpha1.App, log logr.Logger,
	appClient kcclient.Interface, fetchFactory fetch.Factory,
	templateFactory template.Factory) (*CRDApp, error)

func NewCRDAppFromName

func NewCRDAppFromName(nsName types.NamespacedName, log logr.Logger,
	appClient kcclient.Interface) *CRDApp

func (*CRDApp) Delete

func (a *CRDApp) Delete() (reconcile.Result, error)

func (*CRDApp) Reconcile

func (a *CRDApp) Reconcile() (reconcile.Result, error)

type CRDAppWatcher

type CRDAppWatcher struct {
	// contains filtered or unexported fields
}

func NewCRDAppWatcher

func NewCRDAppWatcher(app v1alpha1.App, appClient kcclient.Interface) CRDAppWatcher

func (CRDAppWatcher) Watch

func (w CRDAppWatcher) Watch(callback func(v1alpha1.App), cancelCh chan struct{}) error

Jump to

Keyboard shortcuts

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