docs(judgement,events): state comments plainly
This commit is contained in:
12 files changed
+37
-35
No files matched your search
@@ -50,7 +50,7 @@ type Reset struct {
|
||||
|
||||
const actionTypeColumns = `id, org_id, connector, action, target_kind, environment, read_only, level, created_at, reset_at, tightened_at, tightened_because`
|
||||
|
||||
// EnsureActionType returns the action type c names, creating it at c.Level when it is
|
||||
// EnsureActionType returns the action type c identifies, creating it at c.Level when it is
|
||||
// new. An existing action type keeps its level.
|
||||
func (s *Store) EnsureActionType(ctx context.Context, c ActionType) (ActionType, error) {
|
||||
var out ActionType
|
||||
@@ -67,7 +67,7 @@ func (s *Store) EnsureActionType(ctx context.Context, c ActionType) (ActionType,
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Action types returns every action type, most recently decided first.
|
||||
// ActionTypes returns every action type, most recently decided first.
|
||||
func (s *Store) ActionTypes(ctx context.Context, orgID string) ([]ActionTypeSummary, error) {
|
||||
var out []ActionTypeSummary
|
||||
err := s.db.SelectContext(ctx, &out, `
|
||||
|
||||
@@ -53,7 +53,8 @@ func (s *Store) ActionTypeOfDecision(ctx context.Context, orgID string, decision
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ActionTypeByKey returns the action type named by its four names.
|
||||
// ActionTypeByKey returns the action type with c's connector, action, target
|
||||
// kind and environment.
|
||||
func (s *Store) ActionTypeByKey(ctx context.Context, c ActionType) (ActionType, error) {
|
||||
var out ActionType
|
||||
err := s.db.GetContext(ctx, &out, `
|
||||
|
||||
Reference in new issue
Block a user