fake

package
v3.0.0-...-c7e9b3a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

package fake provides a fake implementation of the coordinator for use in tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBuilder

type FakeBuilder struct {
}

func (*FakeBuilder) CreateKfAppCfgFile

func (b *FakeBuilder) CreateKfAppCfgFile(def *kfconfig.KfConfig) (string, error)

func (*FakeBuilder) LoadKfAppCfgFile

func (b *FakeBuilder) LoadKfAppCfgFile(cfgFile string) (kftypes.KfApp, error)

type FakeCoordinator

type FakeCoordinator struct {
	KfDef   *kfconfig.KfConfig
	Plugins map[string]kftypes.KfApp
}

func (*FakeCoordinator) Apply

func (f *FakeCoordinator) Apply(resources kftypes.ResourceEnum) error

func (*FakeCoordinator) Delete

func (f *FakeCoordinator) Delete(resources kftypes.ResourceEnum) error

func (*FakeCoordinator) Generate

func (f *FakeCoordinator) Generate(resources kftypes.ResourceEnum) error

func (*FakeCoordinator) GetKfDef

func (f *FakeCoordinator) GetKfDef() *kfconfig.KfConfig

func (*FakeCoordinator) GetPlugin

func (f *FakeCoordinator) GetPlugin(name string) (kftypes.KfApp, bool)

func (*FakeCoordinator) Init

func (f *FakeCoordinator) Init(resources kftypes.ResourceEnum) error

Jump to

Keyboard shortcuts

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