embedded

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: EPL-2.0 Imports: 8 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

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

Index

Constants

View Source
const (
	PROPERTY_NAME_GALASACTL_VERSION          = "galasactl.version"
	PROPERTY_NAME_GALASA_BOOT_JAR_VERSION    = "galasa.boot.jar.version"
	PROPERTY_NAME_GALASA_FRAMEWORK_VERSION   = "galasa.framework.version"
	PROPERTY_NAME_GALASACTL_REST_API_VERSION = "galasactl.rest.api.version"
)

Variables

View Source
var (
	PropsFileName = "templates/version/build.properties"
)

Functions

func GetBootJarVersion

func GetBootJarVersion() (string, error)

func GetGalasaCtlVersion

func GetGalasaCtlVersion() (string, error)

func GetGalasaVersion

func GetGalasaVersion() (string, error)

func GetGalasactlRestApiVersion

func GetGalasactlRestApiVersion() (string, error)

Types

type EmbeddedFileSystem

type EmbeddedFileSystem struct {
	// contains filtered or unexported fields
}

func (*EmbeddedFileSystem) ReadDir added in v0.32.0

func (fs *EmbeddedFileSystem) ReadDir(directoryPath string) ([]fs.DirEntry, error)

func (*EmbeddedFileSystem) ReadFile

func (fs *EmbeddedFileSystem) ReadFile(filePath string) ([]byte, error)

The only thing which this class actually supports.

type MockDirEntry added in v0.32.0

type MockDirEntry struct {
	os.DirEntry
	DirName string
}

func (MockDirEntry) Name added in v0.32.0

func (mockDirEntry MockDirEntry) Name() string

type MockReadOnlyFileSystem added in v0.32.0

type MockReadOnlyFileSystem struct {
	// contains filtered or unexported fields
}

func NewMockReadOnlyFileSystem added in v0.32.0

func NewMockReadOnlyFileSystem() *MockReadOnlyFileSystem

func (*MockReadOnlyFileSystem) ReadDir added in v0.32.0

func (fs *MockReadOnlyFileSystem) ReadDir(directoryPath string) ([]fs.DirEntry, error)

func (*MockReadOnlyFileSystem) ReadFile added in v0.32.0

func (fs *MockReadOnlyFileSystem) ReadFile(filePath string) ([]byte, error)

func (*MockReadOnlyFileSystem) WriteFile added in v0.32.0

func (fs *MockReadOnlyFileSystem) WriteFile(filePath string, content string)

WriteFile - This function is not on the ReadOnlyFileSystem interface, but does allow unit tests to add data files to the mock file system, so the code under test can read it back.

type ReadOnlyFileSystem

type ReadOnlyFileSystem interface {
	ReadFile(filePath string) ([]byte, error)
	ReadDir(directoryPath string) ([]fs.DirEntry, error)
}

func GetReadOnlyFileSystem

func GetReadOnlyFileSystem() ReadOnlyFileSystem

func NewReadOnlyFileSystem

func NewReadOnlyFileSystem() ReadOnlyFileSystem

Jump to

Keyboard shortcuts

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