testcontroller

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateNode

func CreateOrUpdateNode(ctx context.Context, node *storage.MutableCINode) error

func CreateOrUpdateTestCase

func CreateOrUpdateTestCase(ctx context.Context, pk int64, testCaseType string, testCaseConfig interface{}, serdes serde.Registry) error

func DeleteNode

func DeleteNode(ctx context.Context, id string) error

func DeleteTestCase

func DeleteTestCase(pk int64) error

func ExecuteNextTestCase

func ExecuteNextTestCase(testMachines map[string]statemachines.TestMachine, store storage.TestControllerStorage, serdes serde.Registry) error

func GetNodes

func GetNodes(ctx context.Context, ids []string, tag *string) (map[string]*storage.CINode, error)

func GetTestCases

func GetTestCases(ctx context.Context, pks []int64, serdes serde.Registry) (map[int64]*UnmarshalledTestCase, error)

func LeaseNode

func LeaseNode(ctx context.Context, tag string) (*storage.NodeLease, error)

func ReleaseNode

func ReleaseNode(ctx context.Context, id string, leaseID string) error

func ReserveNode

func ReserveNode(ctx context.Context, id string) (*storage.NodeLease, error)

Types

type UnmarshalledTestCase

type UnmarshalledTestCase struct {
	*storage.TestCase
	UnmarshaledConfig interface{}
}

UnmarshalledTestCase encapsulates a TestCase and the unmarshaled representation of its TestConfig field.

Jump to

Keyboard shortcuts

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