Skip to content
Snippets Groups Projects
sbi.go 821 B
Newer Older
  • Learn to ignore specific revisions
  • package southbound
    
    import (
    
    	spb "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/southbound"
    
    	"github.com/openconfig/ygot/ygot"
    
    
    	"github.com/google/uuid"
    	gpb "github.com/openconfig/gnmi/proto/gnmi"
    	"github.com/openconfig/goyang/pkg/yang"
    	"github.com/openconfig/ygot/ytypes"
    )
    
    // SouthboundInterface provides an
    // interface for SBI implementations
    type SouthboundInterface interface { // nolint
    	// SetNode injects SBI specific model
    	// representation to the transport.
    	// Needed for type assertion.
    
    	SetNode(schema *yang.Entry, root interface{}, path *gpb.Path, val interface{}, opts ...ytypes.SetNodeOpt) error
    
    	Schema() *ytypes.Schema
    
    	ID() uuid.UUID
    
    	Type() spb.Type
    
    	Unmarshal([]byte, *gpb.Path, ygot.ValidatedGoStruct, ...ytypes.UnmarshalOpt) error