suite_init

package
v1.2.18 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const LocalRegistryImplementationName = ":local_container_registry"

Variables

This section is empty.

Functions

func ComputeWerfBinPath

func ComputeWerfBinPath() []byte

func ContainerRegistryImplementationListToCheck

func ContainerRegistryImplementationListToCheck(withOptionalContainerRegistry bool) []string

func GenerateUniqProjectName

func GenerateUniqProjectName() string

func MakeTestSuiteEntrypointFunc

func MakeTestSuiteEntrypointFunc(description string, opts TestSuiteEntrypointFuncOptions) func(t *testing.T)

func SetupK8sDockerRegistryRepo

func SetupK8sDockerRegistryRepo(repo *string, projectName *string, stubs *gostub.Stubs) bool

func SetupProjectName

func SetupProjectName(projectName *string, stubs *gostub.Stubs) bool

func SetupStubs

func SetupStubs(stubs *gostub.Stubs) bool

func SetupTmpDir

func SetupTmpDir(tmpDir, testDirPath *string) bool

Types

type ContainerRegistryPerImplementationData

type ContainerRegistryPerImplementationData struct {
	ContainerRegistryPerImplementation map[string]*containerRegistryImplementationData
}

func NewContainerRegistryPerImplementationData

func NewContainerRegistryPerImplementationData(synchronizedSuiteCallbacksData *SynchronizedSuiteCallbacksData, withOptionalContainerRegistry bool) *ContainerRegistryPerImplementationData

func (*ContainerRegistryPerImplementationData) SetupRepo added in v1.2.6

func (data *ContainerRegistryPerImplementationData) SetupRepo(ctx context.Context, repo, implementationName string, stubsData *StubsData) bool

func (*ContainerRegistryPerImplementationData) TeardownRepo added in v1.2.6

func (data *ContainerRegistryPerImplementationData) TeardownRepo(ctx context.Context, repo, implementationName string, _ *StubsData) bool

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

type StubsData struct {
	Stubs *gostub.Stubs
}

func NewStubsData

func NewStubsData() *StubsData

type SuiteData

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 (data *SuiteData) SetupStubs(setupData *StubsData) bool

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

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 TestSuiteEntrypointFuncOptions

type TestSuiteEntrypointFuncOptions struct {
	RequiredSuiteTools []string
	RequiredSuiteEnvs  []string
}

type TmpDirData

type TmpDirData struct {
	TmpDir      string
	TestDirPath string
}

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

Jump to

Keyboard shortcuts

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