Skip to content

Commit

Permalink
return unimplemented error
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer committed Dec 10, 2024
1 parent cbccaa7 commit 9cd13c8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
11 changes: 6 additions & 5 deletions management/server/networks/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package networks

import (
"context"
"errors"

"github.com/netbirdio/netbird/management/server/networks/resources"
"github.com/netbirdio/netbird/management/server/networks/routers"
Expand Down Expand Up @@ -33,23 +34,23 @@ func NewManager(store store.Store) Manager {
}

func (m *managerImpl) GetAllNetworks(ctx context.Context, accountID, userID string) ([]*Network, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) CreateNetwork(ctx context.Context, userID string, network *Network) (*Network, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) GetNetwork(ctx context.Context, accountID, userID, networkID string) (*Network, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) UpdateNetwork(ctx context.Context, userID string, network *Network) (*Network, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) DeleteNetwork(ctx context.Context, accountID, userID, networkID string) error {
return nil
return errors.New("not implemented")
}

func (m *managerImpl) GetResourceManager() resources.Manager {
Expand Down
11 changes: 6 additions & 5 deletions management/server/networks/resources/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package resources

import (
"context"
"errors"

"github.com/netbirdio/netbird/management/server/store"
)
Expand All @@ -25,21 +26,21 @@ func NewManager(store store.Store) Manager {
}

func (m *managerImpl) GetAllResources(ctx context.Context, accountID, userID, networkID string) ([]*NetworkResource, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) CreateResource(ctx context.Context, accountID string, resource *NetworkResource) (*NetworkResource, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) GetResource(ctx context.Context, accountID, userID, networkID, resourceID string) (*NetworkResource, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) UpdateResource(ctx context.Context, userID string, resource *NetworkResource) (*NetworkResource, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) DeleteResource(ctx context.Context, accountID, userID, networkID, resourceID string) error {
return nil
return errors.New("not implemented")
}
11 changes: 6 additions & 5 deletions management/server/networks/routers/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package routers

import (
"context"
"errors"

"github.com/netbirdio/netbird/management/server/store"
)
Expand All @@ -25,21 +26,21 @@ func NewManager(store store.Store) Manager {
}

func (m *managerImpl) GetAllRouters(ctx context.Context, accountID, userID, networkID string) ([]*NetworkRouter, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) CreateRouter(ctx context.Context, userID string, router *NetworkRouter) (*NetworkRouter, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) GetRouter(ctx context.Context, accountID, userID, networkID, routerID string) (*NetworkRouter, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) UpdateRouter(ctx context.Context, userID string, router *NetworkRouter) (*NetworkRouter, error) {
return nil, nil
return nil, errors.New("not implemented")
}

func (m *managerImpl) DeleteRouter(ctx context.Context, accountID, userID, networkID, routerID string) error {
return nil
return errors.New("not implemented")
}

0 comments on commit 9cd13c8

Please sign in to comment.