embedded

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: EPL-2.0 Imports: 8 Imported by: 0

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