controller

package
v0.6.42 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTestJSONFileToString

func DecodeTestJSONFileToString(fileName string) (string, bool, error)

Types

type Controller

type Controller interface {
	Start(ctx context.Context) error
}

func NewSentinelRunController

func NewSentinelRunController(options ...Option) (Controller, error)

type Option

type Option func(*sentinelRunController)

func WithConsoleClient

func WithConsoleClient(client console.Client) Option

func WithConsoleToken

func WithConsoleToken(token string) Option

func WithConsoleURL

func WithConsoleURL(url string) Option

func WithOutputDir

func WithOutputDir(dir string) Option

func WithOutputFormat

func WithOutputFormat(format string) Option

func WithSentinelRun

func WithSentinelRun(id string) Option

func WithTestDir

func WithTestDir(dir string) Option

func WithTimeout

func WithTimeout(timeout string) Option

type TestCase

type TestCase struct {
	Configurations []client.TestCaseConfigurationFragment                           `json:"configurations,omitempty"`
	Defaults       *client.SentinelCheckIntegrationTestDefaultConfigurationFragment `json:"defaults,omitempty"`
}

type TestEvent

type TestEvent struct {
	Action  string  `json:"Action"`
	Test    string  `json:"Test,omitempty"`
	Output  string  `json:"Output,omitempty"`
	Elapsed float64 `json:"Elapsed,omitempty"`
	Package string  `json:"Package,omitempty"`
}

Jump to

Keyboard shortcuts

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