api

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: EPL-2.0 Imports: 9 Imported by: ? 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

Overview

* Copyright contributors to the Galasa project * * SPDX-License-Identifier: EPL-2.0

* Copyright contributors to the Galasa project * * SPDX-License-Identifier: EPL-2.0

Index

Constants

View Source
const (
	BOOTSTRAP_PROPERTY_NAME_REMOTE_API_SERVER_URL              string = "framework.api.server.url"
	BOOTSTRAP_PROPERTY_NAME_LOCAL_JVM_LAUNCH_OPTIONS           string = "galasactl.jvm.local.launch.options"
	BOOTSTRAP_PROPERTY_NAME_LOCAL_JVM_LAUNCH_OPTIONS_SEPARATOR string = " "

	// A uint32 value, says which port will be used when the testcase JVM connects to a Java Debugger.
	BOOTSTRAP_PROPERTY_NAME_LOCAL_JVM_LAUNCH_DEBUG_PORT string = "galasactl.jvm.local.launch.debug.port"
	// When the JVM connects to a Java Debugger, should it :
	// 'listen' on the debug port, waiting for the java debugger to connect,
	// or
	// 'attach' to the debug port, which already has the java debugger set up.
	BOOTSTRAP_PROPERTY_NAME_LOCAL_JVM_LAUNCH_DEBUG_MODE string = "galasactl.jvm.local.launch.debug.mode"
)

Variables

This section is empty.

Functions

func GetBootstrapLocation added in v0.34.0

func GetBootstrapLocation(env spi.Environment, galasaHome spi.GalasaHome, explicitUserBootstrap string) string

func InitialiseAPI

func InitialiseAPI(apiServerUrl string) *galasaapi.APIClient

func InitialiseAuthenticatedAPI

func InitialiseAuthenticatedAPI(apiServerUrl string, bearerToken string) *galasaapi.APIClient

Types

type BootstrapData

type BootstrapData struct {
	// Path - the raw path that a user has given us, either from the command-line
	// option or the GALASA_BOOTSTRAP environment variable.
	Path string

	// URL - The URL on which can be followed to reach the bootstrap contents.
	ApiServerURL string

	// Properties - The properties which are read from the bootstrap
	Properties props.JavaProperties
}

func LoadBootstrap

func LoadBootstrap(
	galasaHome spi.GalasaHome,
	fileSystem spi.FileSystem,
	env spi.Environment,
	bootstrapPath string,
	urlResolutionService UrlResolutionService,
) (*BootstrapData, error)

loadBootstrap - Loads the contents of a bootstrap file into memory. bootstrapPath - Where do we find the bootstrap contents from ? This can be a URL must end in /bootstrap

type RealUrlResolutionService

type RealUrlResolutionService struct {
}

func (*RealUrlResolutionService) Get

get - Gets the string contents from a URL

type UrlResolutionService

type UrlResolutionService interface {
	Get(url string) (string, error)
}

Jump to

Keyboard shortcuts

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