Documentation ¶
Index ¶
- type ActionsConfiguration
- type ActionsExecutions
- type GroupActionExecutionStatusResume
- type Main
- func (main Main) CreateNewExecution(groupActionID string) (ActionsExecutions, error)
- func (main Main) DeleteGroupAction(id string) error
- func (main Main) FindGroupActionById(id string) (MetricsGroupAction, error)
- func (main Main) ListGroupActionExecutionResumeByGroup(groupID string) ([]GroupActionExecutionStatusResume, error)
- func (main Main) ParseGroupAction(metricsGroupAction io.ReadCloser) (MetricsGroupAction, error)
- func (main Main) SaveGroupAction(metricsGroupAction MetricsGroupAction) (MetricsGroupAction, error)
- func (main Main) SetExecutionFailed(actionExecutionID string, executionLog string) (ActionsExecutions, error)
- func (main Main) SetExecutionSuccess(actionExecutionID string, executionLog string) (ActionsExecutions, error)
- func (main Main) UpdateGroupAction(id string, metricsGroupAction MetricsGroupAction) (MetricsGroupAction, error)
- func (main Main) ValidateActionCanBeExecuted(metricsGroupAction MetricsGroupAction) bool
- func (main Main) ValidateGroupAction(metricsGroupAction MetricsGroupAction, workspaceID uuid.UUID) []util.ErrorUtil
- type MetricsGroupAction
- type UseCases
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionsConfiguration ¶
type ActionsExecutions ¶
type Main ¶
type Main struct {
// contains filtered or unexported fields
}
func (Main) CreateNewExecution ¶
func (main Main) CreateNewExecution(groupActionID string) (ActionsExecutions, error)
func (Main) DeleteGroupAction ¶
func (Main) FindGroupActionById ¶
func (main Main) FindGroupActionById(id string) (MetricsGroupAction, error)
func (Main) ListGroupActionExecutionResumeByGroup ¶
func (main Main) ListGroupActionExecutionResumeByGroup(groupID string) ([]GroupActionExecutionStatusResume, error)
func (Main) ParseGroupAction ¶
func (main Main) ParseGroupAction(metricsGroupAction io.ReadCloser) (MetricsGroupAction, error)
func (Main) SaveGroupAction ¶
func (main Main) SaveGroupAction(metricsGroupAction MetricsGroupAction) (MetricsGroupAction, error)
func (Main) SetExecutionFailed ¶
func (main Main) SetExecutionFailed(actionExecutionID string, executionLog string) (ActionsExecutions, error)
func (Main) SetExecutionSuccess ¶
func (main Main) SetExecutionSuccess(actionExecutionID string, executionLog string) (ActionsExecutions, error)
func (Main) UpdateGroupAction ¶
func (main Main) UpdateGroupAction(id string, metricsGroupAction MetricsGroupAction) (MetricsGroupAction, error)
func (Main) ValidateActionCanBeExecuted ¶
func (main Main) ValidateActionCanBeExecuted(metricsGroupAction MetricsGroupAction) bool
func (Main) ValidateGroupAction ¶
type MetricsGroupAction ¶
type MetricsGroupAction struct { util.BaseModel MetricsGroupID uuid.UUID `json:"metricsGroupId"` ActionID uuid.UUID `json:"actionId"` Nickname string `json:"nickname"` ExecutionParameters json.RawMessage `json:"executionParameters"` ActionsConfiguration ActionsConfiguration `json:"configuration"` DeletedAt *time.Time `json:"-"` }
type UseCases ¶
type UseCases interface { ValidateGroupAction(metricsGroupAction MetricsGroupAction, workspaceID uuid.UUID) []util.ErrorUtil ParseGroupAction(metricsGroupAction io.ReadCloser) (MetricsGroupAction, error) FindGroupActionById(id string) (MetricsGroupAction, error) SaveGroupAction(metricsGroupAction MetricsGroupAction) (MetricsGroupAction, error) ListGroupActionExecutionResumeByGroup(groupID string) ([]GroupActionExecutionStatusResume, error) UpdateGroupAction(id string, metricsGroupAction MetricsGroupAction) (MetricsGroupAction, error) DeleteGroupAction(id string) error SetExecutionFailed(actionExecutionID string, executionLog string) (ActionsExecutions, error) SetExecutionSuccess(actionExecutionID string, executionLog string) (ActionsExecutions, error) ValidateActionCanBeExecuted(metricsGroupAction MetricsGroupAction) bool CreateNewExecution(groupActionID string) (ActionsExecutions, error) }
Click to show internal directories.
Click to hide internal directories.