module

package
v0.0.0-...-7c77b90 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientDbInfo

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

ClientDbInfo structure for storing info about SFC DB

type SfcClient

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

SfcClient implements the Manager It will also be used to maintain some localized state

func NewSfcClient

func NewSfcClient() *SfcClient

NewSfcClient returns an instance of the SfcClient which implements the Manager

func (*SfcClient) CreateSfcClientIntent

func (v *SfcClient) CreateSfcClientIntent(intent model.SfcClientIntent, pr, ca, caver, dig, netctrlint string, exists bool) (model.SfcClientIntent, error)

CreateSfcClientIntent - create a new SfcClientIntent

func (*SfcClient) DeleteSfcClientIntent

func (v *SfcClient) DeleteSfcClientIntent(name, pr, ca, caver, dig, netctrlint string) error

DeleteSfcClientIntent deletes the SfcClientIntent from the database

func (*SfcClient) GetAllSfcClientIntents

func (v *SfcClient) GetAllSfcClientIntents(pr, ca, caver, dig, netctrlint string) ([]model.SfcClientIntent, error)

GetAllSfcClientIntent returns all of the SFC Client Intents for for the given network control intent

func (*SfcClient) GetSfcClientIntent

func (v *SfcClient) GetSfcClientIntent(name, pr, ca, caver, dig, netctrlint string) (model.SfcClientIntent, error)

GetSfcClientIntent returns the SfcClientIntent for corresponding name

type SfcManager

type SfcManager interface {
	// SFC Intent functions
	CreateSfcClientIntent(sfc model.SfcClientIntent, pr, ca, caver, dig, netctrlint string, exists bool) (model.SfcClientIntent, error)
	GetSfcClientIntent(name, pr, ca, caver, dig, netctrlint string) (model.SfcClientIntent, error)
	GetAllSfcClientIntents(pr, ca, caver, dig, netctrlint string) ([]model.SfcClientIntent, error)
	DeleteSfcClientIntent(name, pr, ca, caver, dig, netctrlint string) error
}

SfcIntentManager is an interface exposing the SFC Intent functionality

Jump to

Keyboard shortcuts

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