Documentation ¶
Index ¶
- func ParseYaml(relativePath string, kind schema.GroupVersionKind) (map[string]interface{}, error)
- type FakeCRDSet
- func (fakeCRDSet *FakeCRDSet) GetSMFCapacityProfileObject(crdName string) (types.SMFCapacityProfile, error)
- func (fakeCRDSet *FakeCRDSet) GetSMFTypeObject(crdName string) (types.SMFType, error)
- func (fakeCRDSet *FakeCRDSet) GetUPFCapacityProfileObject(crdName string) (types.UPFCapacityProfile, error)
- func (fakeCRDSet *FakeCRDSet) GetUPFTypeObject(crdName string) (types.UPFType, error)
- func (fakeCRDSet *FakeCRDSet) ReadCRDFiles(directory string) error
- type FakeDeploymentManager
- type FakeHydration
- type FakePackageService
- func (fakeps *FakePackageService) CreateDeployPackage(ctx context.Context, contents map[string]string, nc util.NamingContext) (string, error)
- func (fakeps *FakePackageService) CreateNFDeployActuators(ctx context.Context, nc util.NamingContext, key ps.VendorNFKey) (string, bool, error)
- func (fakeps *FakePackageService) DeleteDeployPackage(ctx context.Context, nc util.NamingContext) error
- func (fakeps *FakePackageService) GetNFProfiles(ctx context.Context, req []ps.GetResourceRequest, nc util.NamingContext) (map[int][]string, error)
- func (fakeps *FakePackageService) GetVendorExtensionPackage(ctx context.Context, nc util.NamingContext, key ps.VendorNFKey) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.