Documentation
¶
Index ¶
- func AuthenticateAppCli(appname string) error
- func GetActionAIResponseWrapper(ctx context.Context, input shuffle.QueryInput) ([]byte, error)
- func GetActionFromLabel(ctx context.Context, app shuffle.WorkflowApp, label string, fixLabels bool, ...) (shuffle.WorkflowAppAction, shuffle.AppCategory, []string)
- func GetAppOpenapi(appname string) (openapi3.Swagger, error)
- func GetLocalAuth() ([]shuffle.AppAuthenticationStorage, error)
- func GetOrgspecificParameters(ctx context.Context, org shuffle.Org, action shuffle.WorkflowAppAction) shuffle.WorkflowAppAction
- func GetTranslatedHttpAction(app shuffle.WorkflowApp, action shuffle.WorkflowAppAction) shuffle.WorkflowAppAction
- func GetUpdatedHttpValue(value shuffle.CategoryAction) shuffle.CategoryAction
- func HandleSingulStartnode(execution shuffle.WorkflowExecution, action shuffle.Action, urls []string) (shuffle.Action, []string)
- func LocalizeAppscript(appname string) (string, error)
- func RunAction(ctx context.Context, value shuffle.CategoryAction, retries ...int) (string, error)
- func RunActionWrapper(ctx context.Context, user shuffle.User, value shuffle.CategoryAction, ...) ([]byte, error)
- func RunCategoryAction(resp http.ResponseWriter, request *http.Request)
- func SetupRequirements(requirementsPath string) error
- func Setupvenv(appscriptFolder string) (string, error)
- func StoreTranslationOutput(user shuffle.User, fieldHash string, parsedParameterMap map[string]interface{}, ...)
- type FakeResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateAppCli ¶
func GetActionFromLabel ¶
func GetActionFromLabel(ctx context.Context, app shuffle.WorkflowApp, label string, fixLabels bool, fields []shuffle.Valuereplace, count int) (shuffle.WorkflowAppAction, shuffle.AppCategory, []string)
func GetLocalAuth ¶
func GetLocalAuth() ([]shuffle.AppAuthenticationStorage, error)
func GetOrgspecificParameters ¶
func GetOrgspecificParameters(ctx context.Context, org shuffle.Org, action shuffle.WorkflowAppAction) shuffle.WorkflowAppAction
func GetTranslatedHttpAction ¶ added in v0.0.19
func GetTranslatedHttpAction(app shuffle.WorkflowApp, action shuffle.WorkflowAppAction) shuffle.WorkflowAppAction
Translates and action IF custom_action is available Uses OpenAPI spec to do so func GetTranslatedHttpAction(app shuffle.WorkflowApp, action shuffle.Action) shuffle.Action {
func GetUpdatedHttpValue ¶ added in v0.0.18
func GetUpdatedHttpValue(value shuffle.CategoryAction) shuffle.CategoryAction
Auto-parser of incoming data if not handle-able otherwise
func HandleSingulStartnode ¶ added in v0.0.16
func HandleSingulStartnode(execution shuffle.WorkflowExecution, action shuffle.Action, urls []string) (shuffle.Action, []string)
Controls action mapping
func LocalizeAppscript ¶
func RunActionWrapper ¶
func RunCategoryAction ¶
func RunCategoryAction(resp http.ResponseWriter, request *http.Request)
1. Check the category, if it has the label in it 2. Get the app (openapi & app config) 3. Check if the label exists for the app in any action 4. Do the translation~ (workflow or direct) 5. Run app action/workflow 6. Return result from the app
func SetupRequirements ¶
Types ¶
type FakeResponseWriter ¶
type FakeResponseWriter struct {
HeaderMap http.Header
Body bytes.Buffer
StatusCode int
WroteHeader bool
}
For handling the function without changing ALL the resp.X functions
func NewFakeResponseWriter ¶
func NewFakeResponseWriter() *FakeResponseWriter
func (*FakeResponseWriter) Header ¶
func (f *FakeResponseWriter) Header() http.Header
func (*FakeResponseWriter) WriteHeader ¶
func (f *FakeResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.