runner

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Version         string                  `yaml:"version"`
	Name            string                  `yaml:"name"`
	NeedReportToken bool                    `yaml:"need_report_token"`
	Workflow        []ConfigurationWorkflow `yaml:"workflow"`
}

type ConfigurationActions

type ConfigurationActions struct {
	Name        string   `yaml:"name"`
	Description string   `yaml:"description"`
	Params      []string `yaml:"params"`
}

type ConfigurationWorkflow

type ConfigurationWorkflow struct {
	Index       int                           `yaml:"index"`
	Action      string                        `yaml:"action"`
	Description string                        `yaml:"description"`
	Params      []string                      `yaml:"params"`
	Result      []ConfigurationWorkflowResult `yaml:"result"`
	Retry       int                           `yaml:"retry"`
	Failback    *ConfigurationWorkflow        `yaml:"failback"`
	Workflow    []ConfigurationWorkflow       `yaml:"workflow"`
}

type ConfigurationWorkflowFailback

type ConfigurationWorkflowFailback struct {
	Action      string                        `yaml:"action"`
	Description string                        `yaml:"description"`
	Params      []string                      `yaml:"params"`
	Result      []ConfigurationWorkflowResult `yaml:"result"`
}

type ConfigurationWorkflowResult

type ConfigurationWorkflowResult struct {
	ResultIndex int                                `yaml:"result_index"`
	Name        string                             `yaml:"name"`
	Type        string                             `yaml:"type"`
	Policy      *ConfigurationWorkflowResultPolicy `yaml:"policy"`
}

type ConfigurationWorkflowResultPolicy

type ConfigurationWorkflowResultPolicy struct {
	IsTrue   string `yaml:"is_true"`
	IsFalse  string `yaml:"is_false"`
	HasError string `yaml:"has_error"`
	NoError  string `yaml:"no_error"`
}

type RunnerManager

type RunnerManager struct {
	// contains filtered or unexported fields
}

func NewRunnerManager

func NewRunnerManager(name string, appConfigRunner config.AppConfigRunner, page *playwright.Page, debug bool) (*RunnerManager, error)

func (*RunnerManager) Abort

func (rm *RunnerManager) Abort()

func (*RunnerManager) GetTokenReport

func (rm *RunnerManager) GetTokenReport() (uint64, uint64, uint64)

func (*RunnerManager) LoadConfiguration

func (rm *RunnerManager) LoadConfiguration(name, path string) error

func (*RunnerManager) LoadConfigurations

func (rm *RunnerManager) LoadConfigurations() error

LoadConfigurations scans all yaml files in the runner directory and calls LoadConfiguration method by filename

func (*RunnerManager) NeedReportToken

func (rm *RunnerManager) NeedReportToken(name string) bool

func (*RunnerManager) Run

func (rm *RunnerManager) Run(name string) error

func (*RunnerManager) SetVariable

func (rm *RunnerManager) SetVariable(name string, value any, valueType string)

type RunnerResult

type RunnerResult struct {
	Value any
	Type  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL