Documentation ¶
Index ¶
- type Context
- func (ctx Context) DocsDir() string
- func (ctx Context) GetExamples() ([]string, error)
- func (ctx Context) GetExamplesDocs() ([]string, error)
- func (ctx Context) GetModules() ([]string, error)
- func (ctx Context) GetModulesDocs() ([]string, error)
- func (ctx Context) GithubDir() string
- func (ctx Context) GithubWorkflowsDir() string
- func (ctx Context) GoModFile() string
- func (ctx Context) MkdocsConfigFile() string
- func (ctx Context) SonarProjectFile() string
- func (ctx Context) VSCodeWorkspaceFile() string
- type TestcontainersModule
- func (m *TestcontainersModule) ContainerName() string
- func (m *TestcontainersModule) Entrypoint() string
- func (m *TestcontainersModule) Lower() string
- func (m *TestcontainersModule) ParentDir() string
- func (m *TestcontainersModule) Title() string
- func (m *TestcontainersModule) Type() string
- func (m *TestcontainersModule) Validate() error
- type TestcontainersModuleVar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
RootDir string
}
func GetRootContext ¶
func (Context) GetExamples ¶
func (Context) GetExamplesDocs ¶
func (Context) GetModules ¶
func (Context) GetModulesDocs ¶
func (Context) GithubWorkflowsDir ¶
func (Context) MkdocsConfigFile ¶
func (Context) SonarProjectFile ¶
func (Context) VSCodeWorkspaceFile ¶
type TestcontainersModule ¶
type TestcontainersModule struct { Image string // fully qualified name of the Docker image IsModule bool // if true, the module will be generated as a Go module, otherwise an example Name string TitleName string // title of the name: m.g. "mongodb" -> "MongoDB" TCVersion string // Testcontainers for Go version }
func (*TestcontainersModule) ContainerName ¶
func (m *TestcontainersModule) ContainerName() string
ContainerName returns the name of the container, which is the lower-cased title of the example If the title is set, it will be used instead of the name
func (*TestcontainersModule) Entrypoint ¶
func (m *TestcontainersModule) Entrypoint() string
Entrypoint returns the name of the entrypoint function, which is the lower-cased title of the example If the example is a module, the entrypoint will be "RunContainer"
func (*TestcontainersModule) Lower ¶
func (m *TestcontainersModule) Lower() string
func (*TestcontainersModule) ParentDir ¶
func (m *TestcontainersModule) ParentDir() string
func (*TestcontainersModule) Title ¶
func (m *TestcontainersModule) Title() string
func (*TestcontainersModule) Type ¶
func (m *TestcontainersModule) Type() string
func (*TestcontainersModule) Validate ¶
func (m *TestcontainersModule) Validate() error
type TestcontainersModuleVar ¶
Click to show internal directories.
Click to hide internal directories.