Documentation ¶
Index ¶
- type ClientDbInfo
- type SfcClient
- func (v *SfcClient) CreateSfcClientIntent(ctx context.Context, intent model.SfcClientIntent, pr, ca, caver, dig string, ...) (model.SfcClientIntent, error)
- func (v *SfcClient) DeleteSfcClientIntent(ctx context.Context, name, pr, ca, caver, dig string) error
- func (v *SfcClient) GetAllSfcClientIntents(ctx context.Context, pr, ca, caver, dig string) ([]model.SfcClientIntent, error)
- func (v *SfcClient) GetSfcClientIntent(ctx context.Context, name, pr, ca, caver, dig string) (model.SfcClientIntent, error)
- type SfcManager
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
Click to show internal directories.
Click to hide internal directories.