remote_server

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessPoint

type AccessPoint struct {
	Name                    string                  `bson:"name" json:"name"`
	GrpcTransportParameters GrpcTransportParameters `bson:"grpc-transport-parameters" json:"grpc-transport-parameters"`
}

type CaCerts

type CaCerts struct {
	InlineDefinition InlineDefinition `bson:"inline-definition" json:"inline-definition"`
}

type Certificate

type Certificate struct {
	Name     string `bson:"name" json:"name"`
	CertData string `bson:"cert-data" json:"cert-data"`
}

type GrpcClient

type GrpcClient struct {
	AccessPoint []AccessPoint `bson:"access-point" json:"access-point"`
}

type GrpcTransportParameters

type GrpcTransportParameters struct {
	TCPClientParameters TCPClientParameters `bson:"tcp-client-parameters" json:"tcp-client-parameters"`
	TLSClientParameters TLSClientParameters `bson:"tls-client-parameters" json:"tls-client-parameters"`
}

type Initiate

type Initiate struct {
	interfaces.NetconfAttributes    `bson:"-" json:"@,omitempty"`
	interfaces.DefaultVNFCollection `bson:"-" json:"-"`
	RemoteServer                    []RemoteServer `bson:"remote-server" json:"remote-server"`
}

func (*Initiate) Collection

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

func (*Initiate) VNFDocuments

func (in *Initiate) VNFDocuments() []interfaces.VNFDocument

type InlineDefinition

type InlineDefinition struct {
	Certificate []Certificate `bson:"certificate" json:"certificate"`
}

type RemoteServer

type RemoteServer struct {
	interfaces.NetconfAttributes `bson:"-" json:"@,omitempty"`
	interfaces.VNFDocument       `bson:"-" json:"-"`
	Name                         string     `bson:"name" json:"name"`
	NfType                       string     `bson:"nf-type" json:"nf-type"`
	OnDemand                     bool       `bson:"on-demand" json:"on-demand"`
	GrpcClient                   GrpcClient `bson:"grpc-client" json:"grpc-client"`
	MfcType                      string     `bson:"mfc-type" json:"mfc-type"`
}

func (*RemoteServer) Create

func (r *RemoteServer) Create(collection *mongo.Collection) error

func (*RemoteServer) Delete

func (r *RemoteServer) Delete(collection *mongo.Collection) error

func (*RemoteServer) Merge

func (r *RemoteServer) Merge(collection *mongo.Collection) error

func (*RemoteServer) Operation

func (r *RemoteServer) Operation() string

func (*RemoteServer) Remove

func (r *RemoteServer) Remove(collection *mongo.Collection) error

func (*RemoteServer) Replace

func (r *RemoteServer) Replace(collection *mongo.Collection) error

type ServerAuthentication

type ServerAuthentication struct {
	CaCerts CaCerts `bson:"ca-certs" json:"ca-certs"`
}

type TCPClientParameters

type TCPClientParameters struct {
	RemoteAddress string `bson:"remote-address" json:"remote-address"`
	RemotePort    uint32 `bson:"remote-port" json:"remote-port"`
}

type TLSClientParameters

type TLSClientParameters struct {
	ServerAuthentication ServerAuthentication `bson:"server-authentication" json:"server-authentication"`
}

Jump to

Keyboard shortcuts

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