utils

package
v0.0.0-...-5eadde7 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseYaml

func ParseYaml(relativePath string, kind schema.GroupVersionKind) (map[string]interface{}, error)

Types

type FakeDeploymentManager

type FakeDeploymentManager struct {
	SignalChan          chan error
	DeploymentManager   deployment.DeploymentManager
	SubscriptionReqChan chan *edgewatcher.SubscriptionReq
}

FakeDeploymentManager : Implements Deployment Manager interface

func NewFakeDeploymentManager

func NewFakeDeploymentManager(
	reader client.Reader, writer client.StatusWriter, log logr.Logger,
) FakeDeploymentManager

NewFakeDeploymentManager : Returns new FakeDeploymentManager

func (*FakeDeploymentManager) ReportNFDeployDeleteEvent

func (fakeDeploymentManager *FakeDeploymentManager) ReportNFDeployDeleteEvent(
	deploy nfdeployv1alpha1.NfDeploy,
)

func (*FakeDeploymentManager) ReportNFDeployEvent

func (fakeDeploymentManager *FakeDeploymentManager) ReportNFDeployEvent(
	deploy nfdeployv1alpha1.NfDeploy, namespacedName types.NamespacedName,
)

ReportNFDeployEvent : Fake implementation. Currently, it checks if the given function is called

type FakePackageService

type FakePackageService struct {
}

func (*FakePackageService) CreateDeployPackage

func (fakeps *FakePackageService) CreateDeployPackage(ctx context.Context,
	contents map[string]string, nc util.NamingContext) (string, error)

func (*FakePackageService) CreateNFDeployActuators

func (fakeps *FakePackageService) CreateNFDeployActuators(ctx context.Context,
	nc util.NamingContext,
	key ps.VendorNFKey) (string, bool, error)

func (*FakePackageService) DeleteDeployPackage

func (fakeps *FakePackageService) DeleteDeployPackage(ctx context.Context,
	nc util.NamingContext) error

func (*FakePackageService) GetNFProfiles

func (fakeps *FakePackageService) GetNFProfiles(ctx context.Context,
	req []ps.GetResourceRequest, nc util.NamingContext) (map[int][]string, error)

func (*FakePackageService) GetVendorExtensionPackage

func (fakeps *FakePackageService) GetVendorExtensionPackage(ctx context.Context,
	nc util.NamingContext,
	key ps.VendorNFKey) ([]string, error)

Jump to

Keyboard shortcuts

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