Documentation ¶
Index ¶
- func NewService() (service.Service, error)
- type Server
- func (s Server) CreateOrUpdate(ctx context.Context, req *a1.CreateOrUpdateRequest) (*a1.CreateOrUpdateResponse, error)
- func (s Server) Delete(ctx context.Context, req *a1.DeleteRequest) (*a1.DeleteResponse, error)
- func (s Server) Notify(stream a1.A1_NotifyServer) error
- func (s Server) Query(req *a1.QueryRequest, stream a1.A1_QueryServer) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
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
Click to show internal directories.
Click to hide internal directories.