Documentation ¶
Overview ¶
Package northbound implements the northbound API of the device provisioner
Index ¶
- type Server
- func (s *Server) Add(ctx context.Context, request *api.AddConfigRequest) (*api.AddConfigResponse, error)
- func (s *Server) Delete(ctx context.Context, request *api.DeleteConfigRequest) (*api.DeleteConfigResponse, error)
- func (s *Server) Get(ctx context.Context, request *api.GetConfigRequest) (*api.GetConfigResponse, error)
- func (s *Server) List(request *api.ListConfigsRequest, server api.ProvisionerService_ListServer) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements the grpc device provisioner service
func (*Server) Add ¶ added in v0.2.3
func (s *Server) Add(ctx context.Context, request *api.AddConfigRequest) (*api.AddConfigResponse, error)
Add registers new pipeline configuration
func (*Server) Delete ¶ added in v0.2.3
func (s *Server) Delete(ctx context.Context, request *api.DeleteConfigRequest) (*api.DeleteConfigResponse, error)
Delete removes a pipeline configuration
func (*Server) Get ¶ added in v0.2.3
func (s *Server) Get(ctx context.Context, request *api.GetConfigRequest) (*api.GetConfigResponse, error)
Get returns pipeline configuration based on a given ID
func (*Server) List ¶ added in v0.2.3
func (s *Server) List(request *api.ListConfigsRequest, server api.ProvisionerService_ListServer) error
List returns all registered pipelines
type Service ¶
type Service struct { northbound.Service // contains filtered or unexported fields }
Service implements the device provisioner NB gRPC
func NewService ¶
func NewService(controller *controller.Controller, configStore store.ConfigStore) Service
NewService allocates a Service struct with the given parameters
Click to show internal directories.
Click to hide internal directories.