interfaces

package
v0.0.0-...-8fce991 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* PPPOE VNF main file * * Created by João Correia(Altice Labs) on 20/03/2023

* PPPOE VNF main file * * Created by João Correia(Altice Labs) on 20/03/2023

* PPPOE VNF main file * * Created by João Correia(Altice Labs) on 20/03/2023

Index

Constants

View Source
const (
	CREATE  = "create"
	DELETE  = "delete"
	REMOVE  = "remove"
	REPLACE = "replace"
	MERGE   = "merge"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultVNFCollection

type DefaultVNFCollection struct{}

func (*DefaultVNFCollection) Get

func (*DefaultVNFCollection) VNFDocuments

func (*DefaultVNFCollection) VNFDocuments() []VNFDocument

func (*DefaultVNFCollection) VNFSubCollections

func (*DefaultVNFCollection) VNFSubCollections() map[string]VNFCollection

type DefaultVNFDatabase

type DefaultVNFDatabase struct{}

func (*DefaultVNFDatabase) Get

type DefaultVNFDocument

type DefaultVNFDocument struct{}

func (*DefaultVNFDocument) Get

func (*DefaultVNFDocument) Get(*mongo.Collection) ([]interface{}, error)

type NetconfAttributes

type NetconfAttributes struct {
	Op string `bson:"-" json:"ietf-netconf:operation,omitempty"`
}

func (*NetconfAttributes) Operation

func (n *NetconfAttributes) Operation() string

type VNFCollection

type VNFCollection interface {
	Operation() string
	Collection(*mongo.Database, string) (*mongo.Collection, error)
	VNFSubCollections() map[string]VNFCollection
	VNFDocuments() []VNFDocument
	Get(*mongo.Database, string) (VNFCollection, error)
}

type VNFDatabase

type VNFDatabase interface {
	Database(*mongo.Client) *mongo.Database
	VNFCollections() map[string]VNFCollection
	Get(*mongo.Client) (VNFDatabase, error)
}

type VNFDocument

type VNFDocument interface {
	Operation() string
	Create(*mongo.Collection) error
	Delete(*mongo.Collection) error
	Remove(*mongo.Collection) error
	Replace(*mongo.Collection) error
	Merge(*mongo.Collection) error
	Get(*mongo.Collection) ([]interface{}, error)
}

Jump to

Keyboard shortcuts

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