Documentation ¶
Index ¶
- func ParseYaml(relativePath string, kind schema.GroupVersionKind) (map[string]interface{}, error)
- type FakeDeploymentManager
- 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 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)
Click to show internal directories.
Click to hide internal directories.