utils

package
v0.0.0-...-296b82f 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: 20 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 FakeCRDSet

type FakeCRDSet struct {
}

func (*FakeCRDSet) GetSMFCapacityProfileObject

func (fakeCRDSet *FakeCRDSet) GetSMFCapacityProfileObject(crdName string) (
	types.SMFCapacityProfile, error,
)

func (*FakeCRDSet) GetSMFTypeObject

func (fakeCRDSet *FakeCRDSet) GetSMFTypeObject(crdName string) (
	types.SMFType, error,
)

func (*FakeCRDSet) GetUPFCapacityProfileObject

func (fakeCRDSet *FakeCRDSet) GetUPFCapacityProfileObject(crdName string) (
	types.UPFCapacityProfile, error,
)

func (*FakeCRDSet) GetUPFTypeObject

func (fakeCRDSet *FakeCRDSet) GetUPFTypeObject(crdName string) (
	types.UPFType, error,
)

func (*FakeCRDSet) ReadCRDFiles

func (fakeCRDSet *FakeCRDSet) ReadCRDFiles(directory string) error

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 FakeHydration

type FakeHydration struct {
}

func (*FakeHydration) CreateNFDeployActuators

func (fakeHydration *FakeHydration) CreateNFDeployActuators(
	ctx context.Context, nfDeploy deployv1alpha1.NfDeploy,
) ([]string, error)

func (*FakeHydration) Hydrate

func (fakeHydration *FakeHydration) Hydrate(
	ctx context.Context, nfDeploy deployv1alpha1.NfDeploy,
) ([]string, error)

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