context

package
v0.0.0-...-1add9d3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 GetRootContext() (Context, error)

func New

func New(dir string) Context

func (Context) DocsDir

func (ctx Context) DocsDir() string

func (Context) GetExamples

func (ctx Context) GetExamples() ([]string, error)

func (Context) GetExamplesDocs

func (ctx Context) GetExamplesDocs() ([]string, error)

func (Context) GetModules

func (ctx Context) GetModules() ([]string, error)

func (Context) GetModulesDocs

func (ctx Context) GetModulesDocs() ([]string, error)

func (Context) GithubDir

func (ctx Context) GithubDir() string

func (Context) GithubWorkflowsDir

func (ctx Context) GithubWorkflowsDir() string

func (Context) GoModFile

func (ctx Context) GoModFile() string

func (Context) MkdocsConfigFile

func (ctx Context) MkdocsConfigFile() string

func (Context) SonarProjectFile

func (ctx Context) SonarProjectFile() string

func (Context) VSCodeWorkspaceFile

func (ctx Context) VSCodeWorkspaceFile() string

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

type TestcontainersModuleVar struct {
	Name      string
	NameTitle string
	Image     string
}

Jump to

Keyboard shortcuts

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