location

package
v0.0.0-...-02c6b06 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitLocation

func NewGitLocation(log logr.Logger, testDefLocation *tmv1beta1.TestLocation) (testdefinition.Location, error)

NewGitLocation creates a TestDefLocation of type git.

func NewLocalLocation

func NewLocalLocation(log logr.Logger, testDefLocation *tmv1beta1.TestLocation) testdefinition.Location

NewLocalLocation creates a TestDefLocation of type git.

Types

type GitLocation

type GitLocation struct {
	Info *tmv1beta1.TestLocation
	// contains filtered or unexported fields
}

GitLocation represents the testDefLocation of type "git".

func (*GitLocation) GetLocation

func (l *GitLocation) GetLocation() *tmv1beta1.TestLocation

GetLocation returns the git location object.

func (*GitLocation) GitInfo

func (l *GitLocation) GitInfo() testdefinition.GitInfo

GitInfo returns the git info for the current test location.

func (*GitLocation) Name

func (l *GitLocation) Name() string

Name returns the unique name of the git location consisting of the repository's owner, name and revision.

func (*GitLocation) SetTestDefs

func (l *GitLocation) SetTestDefs(testDefMap map[string]*testdefinition.TestDefinition) error

SetTestDefs adds its TestDefinitions to the TestDefinition Map.

func (*GitLocation) Type

Type returns the tmv1beta1.LocationTypeGit.

type LocalLocation

type LocalLocation struct {
	Info *tmv1beta1.TestLocation
	// contains filtered or unexported fields
}

LocalLocation represents the testDefLocation of type "local".

func (*LocalLocation) GetLocation

func (l *LocalLocation) GetLocation() *tmv1beta1.TestLocation

GetLocation returns the local location object

func (*LocalLocation) GetVolume

func (l *LocalLocation) GetVolume() apiv1.Volume

GetVolume returns the k8s volume object to the hostPath.

func (*LocalLocation) GitInfo

func (l *LocalLocation) GitInfo() testdefinition.GitInfo

GitInfo implements the dummy func for the local git info.

func (*LocalLocation) Name

func (l *LocalLocation) Name() string

Name returns the generated name of the local location.

func (*LocalLocation) SetTestDefs

func (l *LocalLocation) SetTestDefs(testDefMap map[string]*testdefinition.TestDefinition) error

SetTestDefs adds its TestDefinitions to the TestDefinition Map.

func (*LocalLocation) Type

Type returns the tmv1beta1.LocationTypeLocal.

Jump to

Keyboard shortcuts

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