Documentation ¶
Index ¶
- Constants
- func ComputeWerfBinPath() []byte
- func ContainerRegistryImplementationListToCheck(withOptionalContainerRegistry bool) []string
- func GenerateUniqProjectName() string
- func MakeTestSuiteEntrypointFunc(description string, opts TestSuiteEntrypointFuncOptions) func(t *testing.T)
- func SetupK8sDockerRegistryRepo(repo *string, projectName *string, stubs *gostub.Stubs) bool
- func SetupProjectName(projectName *string, stubs *gostub.Stubs) bool
- func SetupStubs(stubs *gostub.Stubs) bool
- func SetupTmpDir(tmpDir, testDirPath *string) bool
- type ContainerRegistryPerImplementationData
- type K8sDockerRegistryData
- type ProjectNameData
- type StubsData
- type SuiteData
- func (data *SuiteData) GetBuildReportPath(filename string) string
- func (data *SuiteData) GetTestRepoPath(dirname string) string
- func (data *SuiteData) InitTestRepo(dirname, fixtureRelPath string)
- func (data *SuiteData) SetupContainerRegistryPerImplementation(setupData *ContainerRegistryPerImplementationData) bool
- func (data *SuiteData) SetupK8sDockerRegistry(setupData *K8sDockerRegistryData) bool
- func (data *SuiteData) SetupProjectName(setupData *ProjectNameData) bool
- func (data *SuiteData) SetupStubs(setupData *StubsData) bool
- func (data *SuiteData) SetupSynchronizedSuiteCallbacks(setupData *SynchronizedSuiteCallbacksData) bool
- func (data *SuiteData) SetupTmp(setupData *TmpDirData) bool
- func (data *SuiteData) SetupWerfBinary(setupData *WerfBinaryData) bool
- func (data *SuiteData) UpdateTestRepo(dirname, fixtureRelPath string)
- type SynchronizedSuiteCallbacksData
- func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedAfterSuiteAllNodesFunc(f func()) bool
- func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedAfterSuiteNode1Func(f func()) bool
- func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedBeforeSuiteAllNodesFunc(f func([]byte)) bool
- func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedBeforeSuiteNode1Func(f func()) bool
- func (data *SynchronizedSuiteCallbacksData) SetSynchronizedBeforeSuiteNode1FuncWithReturnValue(f func() []byte) bool
- type TestSuiteEntrypointFuncOptions
- type TmpDirData
- type WerfBinaryData
Constants ¶
View Source
const LocalRegistryImplementationName = ":local_container_registry"
Variables ¶
This section is empty.
Functions ¶
func ComputeWerfBinPath ¶
func ComputeWerfBinPath() []byte
func GenerateUniqProjectName ¶
func GenerateUniqProjectName() string
func MakeTestSuiteEntrypointFunc ¶
func MakeTestSuiteEntrypointFunc(description string, opts TestSuiteEntrypointFuncOptions) func(t *testing.T)
func SetupStubs ¶
func SetupTmpDir ¶
Types ¶
type ContainerRegistryPerImplementationData ¶
type ContainerRegistryPerImplementationData struct {
ContainerRegistryPerImplementation map[string]*containerRegistryImplementationData
}
func NewContainerRegistryPerImplementationData ¶
func NewContainerRegistryPerImplementationData(synchronizedSuiteCallbacksData *SynchronizedSuiteCallbacksData, withOptionalContainerRegistry bool) *ContainerRegistryPerImplementationData
func (*ContainerRegistryPerImplementationData) TeardownRepo ¶
type K8sDockerRegistryData ¶
type K8sDockerRegistryData struct {
K8sDockerRegistryRepo string
}
func NewK8sDockerRegistryData ¶
func NewK8sDockerRegistryData(projectNameData *ProjectNameData, stubsData *StubsData) *K8sDockerRegistryData
type ProjectNameData ¶
type ProjectNameData struct {
ProjectName string
}
func NewProjectNameData ¶
func NewProjectNameData(stubsData *StubsData) *ProjectNameData
type StubsData ¶
func NewStubsData ¶
func NewStubsData() *StubsData
type SuiteData ¶
type SuiteData struct { *StubsData *SynchronizedSuiteCallbacksData *WerfBinaryData *ProjectNameData *K8sDockerRegistryData *TmpDirData *ContainerRegistryPerImplementationData }
func (*SuiteData) GetBuildReportPath ¶
func (*SuiteData) GetTestRepoPath ¶
func (*SuiteData) InitTestRepo ¶
func (*SuiteData) SetupContainerRegistryPerImplementation ¶
func (data *SuiteData) SetupContainerRegistryPerImplementation(setupData *ContainerRegistryPerImplementationData) bool
func (*SuiteData) SetupK8sDockerRegistry ¶
func (data *SuiteData) SetupK8sDockerRegistry(setupData *K8sDockerRegistryData) bool
func (*SuiteData) SetupProjectName ¶
func (data *SuiteData) SetupProjectName(setupData *ProjectNameData) bool
func (*SuiteData) SetupStubs ¶
func (*SuiteData) SetupSynchronizedSuiteCallbacks ¶
func (data *SuiteData) SetupSynchronizedSuiteCallbacks(setupData *SynchronizedSuiteCallbacksData) bool
func (*SuiteData) SetupTmp ¶
func (data *SuiteData) SetupTmp(setupData *TmpDirData) bool
func (*SuiteData) SetupWerfBinary ¶
func (data *SuiteData) SetupWerfBinary(setupData *WerfBinaryData) bool
func (*SuiteData) UpdateTestRepo ¶
type SynchronizedSuiteCallbacksData ¶
type SynchronizedSuiteCallbacksData struct {
// contains filtered or unexported fields
}
func NewSynchronizedSuiteCallbacksData ¶
func NewSynchronizedSuiteCallbacksData() *SynchronizedSuiteCallbacksData
func (*SynchronizedSuiteCallbacksData) AppendSynchronizedAfterSuiteAllNodesFunc ¶
func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedAfterSuiteAllNodesFunc(f func()) bool
func (*SynchronizedSuiteCallbacksData) AppendSynchronizedAfterSuiteNode1Func ¶
func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedAfterSuiteNode1Func(f func()) bool
func (*SynchronizedSuiteCallbacksData) AppendSynchronizedBeforeSuiteAllNodesFunc ¶
func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedBeforeSuiteAllNodesFunc(f func([]byte)) bool
func (*SynchronizedSuiteCallbacksData) AppendSynchronizedBeforeSuiteNode1Func ¶
func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedBeforeSuiteNode1Func(f func()) bool
func (*SynchronizedSuiteCallbacksData) SetSynchronizedBeforeSuiteNode1FuncWithReturnValue ¶
func (data *SynchronizedSuiteCallbacksData) SetSynchronizedBeforeSuiteNode1FuncWithReturnValue(f func() []byte) bool
type TmpDirData ¶
func NewTmpDirData ¶
func NewTmpDirData() *TmpDirData
func (*TmpDirData) CommitProjectWorktree ¶
func (data *TmpDirData) CommitProjectWorktree(projectName, worktreeFixtureDir, commitMessage string)
func (*TmpDirData) GetProjectWorktree ¶
func (data *TmpDirData) GetProjectWorktree(projectName string) string
type WerfBinaryData ¶
type WerfBinaryData struct {
WerfBinPath string
}
func NewWerfBinaryData ¶
func NewWerfBinaryData(synchronizedSuiteCallbacksData *SynchronizedSuiteCallbacksData) *WerfBinaryData
Click to show internal directories.
Click to hide internal directories.