config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLoadTestManifestEmpty         = sdkerrors.Register(codespace, 2100, "empty load test manifest")
	ErrLoadTestManifestUnmarshalYAML = sdkerrors.Register(codespace, 2101, "manifest reader cannot unmarshal yaml content")
	ErrLoadTestInvalidManifest       = sdkerrors.Register(codespace, 2102, "invalid load test manifest")
)

Functions

This section is empty.

Types

type LoadTestManifestYAML

type LoadTestManifestYAML struct {
	Suppliers []ProvisionedActorConfig `yaml:"suppliers"`
	Gateways  []ProvisionedActorConfig `yaml:"gateways"`
}

LoadTestManifestYAML is the struct which the load test manifest is deserialized into. It contains the list of suppliers and gateways that the load test expects to be pre-provisioned.

func ParseLoadTestManifest

func ParseLoadTestManifest(manifestContent []byte) (*LoadTestManifestYAML, error)

ParseLoadTestManifest reads the load test manifest from the given byte slice and returns the parsed LoadTestManifestYAML struct. It returns an error if the manifest is empty, or if it fails to unmarshal.

type ProvisionedActorConfig

type ProvisionedActorConfig struct {
	// KeyName is the **name** of the key in the keyring to be used by the given actor.
	KeyName string `yaml:"key_name"`
	// ExposedUrl is the URL where the actor is expected to be reachable.
	ExposedUrl string `yaml:"exposed_url"`
}

ProvisionedActorConfig is used to represent the signing key used & URL exposed by the pre-provisioned gateway & supplier actors that the load test expects.

Jump to

Keyboard shortcuts

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