runner

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 12 Imported by: 0

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