fake

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 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
	FakeIsActive          bool
	FakeUpdate            bool
}

func NewBundleManager

func NewBundleManager() *FakeBundleManager

func (*FakeBundleManager) ActiveBundle

func (bm *FakeBundleManager) ActiveBundle(ctx context.Context,
	client client.Client) (*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