a1

package
v0.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService() (service.Service, error)

NewService returns a new device Service

Types

type Server

type Server struct {
}

Server implements the C1 gRPC service for administrative facilities.

func (Server) CreateOrUpdate

func (s Server) CreateOrUpdate(ctx context.Context, req *a1.CreateOrUpdateRequest) (*a1.CreateOrUpdateResponse, error)

CreateOrUpdate creates or updates an A1 policy

func (Server) Delete

func (s Server) Delete(ctx context.Context, req *a1.DeleteRequest) (*a1.DeleteResponse, error)

Delete deletes an A1 policy

func (Server) Notify

func (s Server) Notify(stream a1.A1_NotifyServer) error

Notify notify about an enforcement status change of a policy between 'enforced' and 'not enforced'.

func (Server) Query

func (s Server) Query(req *a1.QueryRequest, stream a1.A1_QueryServer) error

Query queries about one or more than A1 policies

type Service

type Service struct {
	service.Service
}

Service is an implementation of C1 service.

func (Service) Register

func (s Service) Register(r *grpc.Server)

Register registers the C1 Service with the gRPC server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL