Documentation ¶
Index ¶
- func NewGitLocation(log logr.Logger, testDefLocation *tmv1beta1.TestLocation) (testdefinition.Location, error)
- func NewLocalLocation(log logr.Logger, testDefLocation *tmv1beta1.TestLocation) testdefinition.Location
- type GitLocation
- type LocalLocation
- func (l *LocalLocation) GetLocation() *tmv1beta1.TestLocation
- func (l *LocalLocation) GetVolume() apiv1.Volume
- func (l *LocalLocation) GitInfo() testdefinition.GitInfo
- func (l *LocalLocation) Name() string
- func (l *LocalLocation) SetTestDefs(testDefMap map[string]*testdefinition.TestDefinition) error
- func (l *LocalLocation) Type() tmv1beta1.LocationType
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 ¶
func (l *GitLocation) Type() tmv1beta1.LocationType
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 ¶
func (l *LocalLocation) Type() tmv1beta1.LocationType
Type returns the tmv1beta1.LocationTypeLocal.