crdreader

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: 8 Imported by: 0

Documentation

Overview

Package crdreader is a generated GoMock package.

Package crdreader is a generated GoMock package.

Package crdreader is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRDReader

type CRDReader interface {

	// ReadCRDFiles : This method reads all the yaml files from the given directory
	// and stores them in an in-memory map
	ReadCRDFiles(directory string) error

	// GetUPFTypeObject : This method returns a UpfType object based on its metadata name
	GetUPFTypeObject(crdName string) (types.UPFType, error)

	// GetSMFTypeObject : This method returns an SmfType object based on its metadata name
	GetSMFTypeObject(crdName string) (types.SMFType, error)

	// GetUPFCapacityProfileObject : This method returns a UPFCapacityProfile
	// object based on its metadata name
	GetUPFCapacityProfileObject(crdName string) (types.UPFCapacityProfile, error)

	// GetSMFCapacityProfileObject : This method returns an SMFCapacityProfile object
	// based on its metadata name
	GetSMFCapacityProfileObject(crdName string) (types.SMFCapacityProfile, error)
}

CRDReader : CRDReader interface exposes CRD config files and optionally converts them to corresponding Objects.

type CRDSet

type CRDSet struct {
	// contains filtered or unexported fields
}

func (*CRDSet) GetSMFCapacityProfileObject

func (crdSet *CRDSet) GetSMFCapacityProfileObject(crdName string) (
	types.SMFCapacityProfile, error,
)

GetSMFCapacityProfileObject : This method returns an SMFCapacityProfile object based on its metadata name

func (*CRDSet) GetSMFTypeObject

func (crdSet *CRDSet) GetSMFTypeObject(crdName string) (types.SMFType, error)

GetSMFTypeObject : This method returns an SmfType object based on its metadata name

func (*CRDSet) GetUPFCapacityProfileObject

func (crdSet *CRDSet) GetUPFCapacityProfileObject(crdName string) (
	types.UPFCapacityProfile, error,
)

GetUPFCapacityProfileObject : This method returns a UPFCapacityProfile object based on its metadata name

func (*CRDSet) GetUPFTypeObject

func (crdSet *CRDSet) GetUPFTypeObject(crdName string) (types.UPFType, error)

GetUPFTypeObject : This method returns a UpfType object based on its metadata name

func (*CRDSet) ReadCRDFiles

func (crdSet *CRDSet) ReadCRDFiles(directory string) error

ReadCRDFiles : This method reads all the yaml files from the given directory and stores them in an in-memory map

type MockCRDReader

type MockCRDReader struct {
	// contains filtered or unexported fields
}

MockCRDReader is a mock of CRDReader interface.

func NewMockCRDReader

func NewMockCRDReader(ctrl *gomock.Controller) *MockCRDReader

NewMockCRDReader creates a new mock instance.

func (*MockCRDReader) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCRDReader) GetSMFCapacityProfileObject

func (m *MockCRDReader) GetSMFCapacityProfileObject(crdName string) (nfdeploy.SMFCapacityProfile, error)

GetSMFCapacityProfileObject mocks base method.

func (*MockCRDReader) GetSMFTypeObject

func (m *MockCRDReader) GetSMFTypeObject(crdName string) (nfdeploy.SMFType, error)

GetSMFTypeObject mocks base method.

func (*MockCRDReader) GetUPFCapacityProfileObject

func (m *MockCRDReader) GetUPFCapacityProfileObject(crdName string) (nfdeploy.UPFCapacityProfile, error)

GetUPFCapacityProfileObject mocks base method.

func (*MockCRDReader) GetUPFTypeObject

func (m *MockCRDReader) GetUPFTypeObject(crdName string) (nfdeploy.UPFType, error)

GetUPFTypeObject mocks base method.

func (*MockCRDReader) ReadCRDFiles

func (m *MockCRDReader) ReadCRDFiles(directory string) error

ReadCRDFiles mocks base method.

type MockCRDReaderMockRecorder

type MockCRDReaderMockRecorder struct {
	// contains filtered or unexported fields
}

MockCRDReaderMockRecorder is the mock recorder for MockCRDReader.

func (*MockCRDReaderMockRecorder) GetSMFCapacityProfileObject

func (mr *MockCRDReaderMockRecorder) GetSMFCapacityProfileObject(crdName interface{}) *gomock.Call

GetSMFCapacityProfileObject indicates an expected call of GetSMFCapacityProfileObject.

func (*MockCRDReaderMockRecorder) GetSMFTypeObject

func (mr *MockCRDReaderMockRecorder) GetSMFTypeObject(crdName interface{}) *gomock.Call

GetSMFTypeObject indicates an expected call of GetSMFTypeObject.

func (*MockCRDReaderMockRecorder) GetUPFCapacityProfileObject

func (mr *MockCRDReaderMockRecorder) GetUPFCapacityProfileObject(crdName interface{}) *gomock.Call

GetUPFCapacityProfileObject indicates an expected call of GetUPFCapacityProfileObject.

func (*MockCRDReaderMockRecorder) GetUPFTypeObject

func (mr *MockCRDReaderMockRecorder) GetUPFTypeObject(crdName interface{}) *gomock.Call

GetUPFTypeObject indicates an expected call of GetUPFTypeObject.

func (*MockCRDReaderMockRecorder) ReadCRDFiles

func (mr *MockCRDReaderMockRecorder) ReadCRDFiles(directory interface{}) *gomock.Call

ReadCRDFiles indicates an expected call of ReadCRDFiles.

type MockSMFIntentProcessor

type MockSMFIntentProcessor struct {
	// contains filtered or unexported fields
}

MockSMFIntentProcessor is a mock of SMFIntentProcessor interface.

func NewMockSMFIntentProcessor

func NewMockSMFIntentProcessor(ctrl *gomock.Controller) *MockSMFIntentProcessor

NewMockSMFIntentProcessor creates a new mock instance.

func (*MockSMFIntentProcessor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSMFIntentProcessor) GetSMFIntent

func (m *MockSMFIntentProcessor) GetSMFIntent(smfTypeName string, crdReader CRDReader) (SMFIntent, error)

GetSMFIntent mocks base method.

type MockSMFIntentProcessorMockRecorder

type MockSMFIntentProcessorMockRecorder struct {
	// contains filtered or unexported fields
}

MockSMFIntentProcessorMockRecorder is the mock recorder for MockSMFIntentProcessor.

func (*MockSMFIntentProcessorMockRecorder) GetSMFIntent

func (mr *MockSMFIntentProcessorMockRecorder) GetSMFIntent(smfTypeName, crdReader interface{}) *gomock.Call

GetSMFIntent indicates an expected call of GetSMFIntent.

type MockUPFIntentProcessor

type MockUPFIntentProcessor struct {
	// contains filtered or unexported fields
}

MockUPFIntentProcessor is a mock of UPFIntentProcessor interface.

func NewMockUPFIntentProcessor

func NewMockUPFIntentProcessor(ctrl *gomock.Controller) *MockUPFIntentProcessor

NewMockUPFIntentProcessor creates a new mock instance.

func (*MockUPFIntentProcessor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUPFIntentProcessor) GetUPFIntent

func (m *MockUPFIntentProcessor) GetUPFIntent(upfTypeName string, crdReader CRDReader) (UPFIntent, error)

GetUPFIntent mocks base method.

type MockUPFIntentProcessorMockRecorder

type MockUPFIntentProcessorMockRecorder struct {
	// contains filtered or unexported fields
}

MockUPFIntentProcessorMockRecorder is the mock recorder for MockUPFIntentProcessor.

func (*MockUPFIntentProcessorMockRecorder) GetUPFIntent

func (mr *MockUPFIntentProcessorMockRecorder) GetUPFIntent(upfTypeName, crdReader interface{}) *gomock.Call

GetUPFIntent indicates an expected call of GetUPFIntent.

type ObjectType

type ObjectType string
const (
	UPFTypeObject            ObjectType = "UpfType"
	SMFTypeObject            ObjectType = "SmfType"
	UPFCapacityProfileObject ObjectType = "UpfCapacityProfile"
	SMFCapacityProfileObject ObjectType = "SmfCapacityProfile"
)

type SMFIntent

type SMFIntent struct {
	MaxSessions string
}

func (*SMFIntent) GetSMFIntent

func (smfIntent *SMFIntent) GetSMFIntent(
	smfTypeName string, crdReader CRDReader,
) (SMFIntent, error)

GetSMFIntent : returns intent required from SMF using smfType Name

type SMFIntentProcessor

type SMFIntentProcessor interface {

	// GetSMFIntent : returns intent required from SMF using smfType Name
	GetSMFIntent(
		smfTypeName string, crdReader CRDReader,
	) (SMFIntent, error)
	// contains filtered or unexported methods
}

SMFIntentProcessor : SMFIntentProcessor is an interface which extracts smf specs and intent from CRDs specified in NFDeploy

type UPFIntent

type UPFIntent struct {
	Throughput string
}

func (*UPFIntent) GetUPFIntent

func (upfIntent *UPFIntent) GetUPFIntent(
	upfTypeName string, crdReader CRDReader,
) (UPFIntent, error)

GetUPFIntent : returns intent required from UPF using upfType Name

type UPFIntentProcessor

type UPFIntentProcessor interface {

	// GetUPFIntent : returns intent required from UPF using upfType Name
	GetUPFIntent(upfTypeName string, crdReader CRDReader) (UPFIntent, error)
	// contains filtered or unexported methods
}

UPFIntentProcessor : UPFIntentProcessor is an interface which extracts upf specs and intent from CRDs specified in NFDeploy

Directories

Path Synopsis
testfiles

Jump to

Keyboard shortcuts

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