Skip to content
Snippets Groups Projects
restconf_transport.go 1.13 KiB
Newer Older
  • Learn to ignore specific revisions
  • import (
    	"context"
    
    	"code.fbi.h-da.de/danet/gosdn/controller/customerrs"
    
    	"github.com/openconfig/ygot/ytypes"
    )
    
    // Restconf implements the Transport interface and provides an SBI with the
    // possibility to access a Restconf endpoint.
    
    type Restconf struct{}
    
    func (r Restconf) Get(ctx context.Context, params ...string) (interface{}, error) {
    
    func (r Restconf) Set(ctx context.Context, params ...interface{}) error {
    
    func (r Restconf) Subscribe(ctx context.Context, params ...string) error {
    
    func (r Restconf) Type() string {
    
    Manuel Kieweg's avatar
    Manuel Kieweg committed
    	return "restconf"
    
    // GetOptions not yet implemented.
    
    func (r Restconf) GetOptions() interface{} {
    
    // ProcessResponse not yet implemented.
    
    func (r Restconf) ProcessResponse(resp interface{}, root interface{}, models *ytypes.Schema) error {
    
    Manuel Kieweg's avatar
    Manuel Kieweg committed
    }