fake

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBundleManager

type FakeBundleManager struct {
	bundle.Manager
	FakeActiveBundleError             error
	FakeActiveBundle                  *api.PackageBundle
	FakeDownloadBundle                *api.PackageBundle
	FakeIsActive                      bool
	FakeUpdate                        bool
	FakeGetActiveBundleNamespacedName types.NamespacedName
}

func NewBundleManager

func NewBundleManager() *FakeBundleManager

func (*FakeBundleManager) DownloadBundle added in v0.1.7

func (bm *FakeBundleManager) DownloadBundle(ctx context.Context, ref string) (
	*api.PackageBundle, error)

func (*FakeBundleManager) IsActive

func (bm *FakeBundleManager) IsActive(ctx context.Context,
	client client.Client, name types.NamespacedName) (bool, error)

func (*FakeBundleManager) Update

func (bm *FakeBundleManager) Update(bundle *api.PackageBundle, active bool,
	allBundles []api.PackageBundle) bool

Jump to

Keyboard shortcuts

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