Documentation
¶
Index ¶
- Constants
- func NewRegistration(ns string, dbRegister serviceregistry.DBRegister) *serviceregistry.Service[actionsconnect.ActionServiceHandler]
- func OnConfigUpdate(actionsSvc *ActionService) serviceregistry.OnConfigUpdateHook
- type ActionService
- func (a *ActionService) Close()
- func (a *ActionService) CreateAction(ctx context.Context, req *connect.Request[actions.CreateActionRequest]) (*connect.Response[actions.CreateActionResponse], error)
- func (a *ActionService) DeleteAction(ctx context.Context, req *connect.Request[actions.DeleteActionRequest]) (*connect.Response[actions.DeleteActionResponse], error)
- func (a *ActionService) GetAction(ctx context.Context, req *connect.Request[actions.GetActionRequest]) (*connect.Response[actions.GetActionResponse], error)
- func (a *ActionService) ListActions(ctx context.Context, req *connect.Request[actions.ListActionsRequest]) (*connect.Response[actions.ListActionsResponse], error)
- func (a *ActionService) UpdateAction(ctx context.Context, req *connect.Request[actions.UpdateActionRequest]) (*connect.Response[actions.UpdateActionResponse], error)
Constants ¶
View Source
const ( // Stored name of the standard 'create' action ActionNameCreate = string(policydb.ActionCreate) // Stored name of the standard 'read' action ActionNameRead = string(policydb.ActionRead) // Stored name of the standard 'update' action ActionNameUpdate = string(policydb.ActionUpdate) // Stored name of the standard 'delete' action ActionNameDelete = string(policydb.ActionDelete) )
Re-exported action names for consumers of ActionService protos
Variables ¶
This section is empty.
Functions ¶
func NewRegistration ¶
func NewRegistration(ns string, dbRegister serviceregistry.DBRegister) *serviceregistry.Service[actionsconnect.ActionServiceHandler]
func OnConfigUpdate ¶
func OnConfigUpdate(actionsSvc *ActionService) serviceregistry.OnConfigUpdateHook
Types ¶
type ActionService ¶
type ActionService struct {
// contains filtered or unexported fields
}
func (*ActionService) Close ¶ added in v0.5.5
func (a *ActionService) Close()
Close gracefully shuts down the actions service, closing the database client.
func (*ActionService) CreateAction ¶
func (a *ActionService) CreateAction(ctx context.Context, req *connect.Request[actions.CreateActionRequest]) (*connect.Response[actions.CreateActionResponse], error)
func (*ActionService) DeleteAction ¶
func (a *ActionService) DeleteAction(ctx context.Context, req *connect.Request[actions.DeleteActionRequest]) (*connect.Response[actions.DeleteActionResponse], error)
func (*ActionService) GetAction ¶
func (a *ActionService) GetAction(ctx context.Context, req *connect.Request[actions.GetActionRequest]) (*connect.Response[actions.GetActionResponse], error)
func (*ActionService) ListActions ¶
func (a *ActionService) ListActions(ctx context.Context, req *connect.Request[actions.ListActionsRequest]) (*connect.Response[actions.ListActionsResponse], error)
func (*ActionService) UpdateAction ¶
func (a *ActionService) UpdateAction(ctx context.Context, req *connect.Request[actions.UpdateActionRequest]) (*connect.Response[actions.UpdateActionResponse], error)
Click to show internal directories.
Click to hide internal directories.