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 GetGalasaCtlVersion ¶
func GetGalasaVersion ¶
Types ¶
type EmbeddedFileSystem ¶
type EmbeddedFileSystem struct {
// contains filtered or unexported fields
}
type MockDirEntry ¶ added in v0.32.0
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
Click to show internal directories.
Click to hide internal directories.