module

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 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(ctx context.Context, intent model.SfcClientIntent, pr, ca, caver, dig string, exists bool) (model.SfcClientIntent, error)

CreateSfcClientIntent - create a new SfcClientIntent

func (*SfcClient) DeleteSfcClientIntent

func (v *SfcClient) DeleteSfcClientIntent(ctx context.Context, name, pr, ca, caver, dig string) error

DeleteSfcClientIntent deletes the SfcClientIntent from the database

func (*SfcClient) GetAllSfcClientIntents

func (v *SfcClient) GetAllSfcClientIntents(ctx context.Context, pr, ca, caver, dig 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(ctx context.Context, name, pr, ca, caver, dig string) (model.SfcClientIntent, error)

GetSfcClientIntent returns the SfcClientIntent for corresponding name

type SfcManager

type SfcManager interface {
	// SFC Intent functions
	CreateSfcClientIntent(ctx context.Context, sfc model.SfcClientIntent, pr, ca, caver, dig string, exists bool) (model.SfcClientIntent, error)
	GetSfcClientIntent(ctx context.Context, name, pr, ca, caver, dig string) (model.SfcClientIntent, error)
	GetAllSfcClientIntents(ctx context.Context, pr, ca, caver, dig string) ([]model.SfcClientIntent, error)
	DeleteSfcClientIntent(ctx context.Context, name, pr, ca, caver, dig 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