device

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: 11 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

Index

Constants

View Source
const SUBSCRIBER_PROFILE_COLL = "subscriber-profiles"
View Source
const VSI_COLL = "vsi-list"

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	interfaces.NetconfAttributes `bson:"-" json:"@,omitempty"`
	Name                         string                                 `bson:"name" json:"name"`
	AccessNodeId                 string                                 `bson:"access-node-id,omitempty" json:"access-node-id,omitempty"`
	VsiList                      *vsi.VsiList                           `bson:"-" json:"vsi-list,omitempty"`
	SubscriberProfiles           *subscriber_profile.SubscriberProfiles `bson:"-" json:"subscriber-profiles,omitempty"`
}

func (*Device) Create

func (d *Device) Create(collection *mongo.Collection) error

func (*Device) Delete

func (d *Device) Delete(collection *mongo.Collection) error

func (*Device) Get

func (d *Device) Get(collection *mongo.Collection) ([]interface{}, error)

func (*Device) Merge

func (d *Device) Merge(collection *mongo.Collection) error

func (*Device) Remove

func (d *Device) Remove(collection *mongo.Collection) error

func (*Device) Replace

func (d *Device) Replace(collection *mongo.Collection) error

type Devices

type Devices struct {
	interfaces.NetconfAttributes    `bson:"-" json:"@,omitempty"`
	interfaces.DefaultVNFCollection `bson:"-" json:"-"`
	Device                          []Device `json:"device"`
}

func (*Devices) Collection

func (d *Devices) Collection(db *mongo.Database, collName string) (*mongo.Collection, error)

func (*Devices) Get

func (d *Devices) Get(db *mongo.Database, collName string) (interfaces.VNFCollection, error)

func (*Devices) VNFDocuments

func (d *Devices) VNFDocuments() []interfaces.VNFDocument

Directories

Path Synopsis
* 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
* PPPOE VNF main file * * Created by João Correia(Altice Labs) on 20/03/2023

Jump to

Keyboard shortcuts

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