container

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command []string

type Config

type Config struct {
	Workdir              string
	MountPathAbs         string
	EnvVars              map[string]string
	AddPrivateGitSupport bool
	ContainerImage       Image
	MountPathPrefix      string
	KeepEntryPoint       bool
	InvalidateCache      bool
}

func (*Config) GetCacheBusterEnvVar

func (o *Config) GetCacheBusterEnvVar() EnvVar

func (*Config) GetDir

func (o *Config) GetDir(dirPathAbs string, client *dagger.Client) *dagger.Directory

func (*Config) GetEnvVars

func (o *Config) GetEnvVars() map[string]string

func (*Config) GetGitSSHEnvVar

func (o *Config) GetGitSSHEnvVar() EnvVar

func (*Config) GetImageConfig

func (o *Config) GetImageConfig() Image

func (*Config) GetMountDir

func (o *Config) GetMountDir(client *dagger.Client) *dagger.Directory

func (*Config) GetMountDirPath

func (o *Config) GetMountDirPath() string

func (*Config) GetMountPathPrefix

func (o *Config) GetMountPathPrefix() string

func (*Config) GetSSHAuthSockEnvVar

func (o *Config) GetSSHAuthSockEnvVar() EnvVar

func (*Config) GetWorkdir

func (o *Config) GetWorkdir() string

func (*Config) IsCacheInvalidated

func (o *Config) IsCacheInvalidated() bool

func (*Config) IsKeepEntryPoint

func (o *Config) IsKeepEntryPoint() bool

func (*Config) IsPrivateGitSupportEnabled

func (o *Config) IsPrivateGitSupportEnabled() bool

type Container

type Container interface {
	GetMountDirPath() string
	GetMountDir(client *dagger.Client) *dagger.Directory
	GetDir(dirPathAbs string, client *dagger.Client) *dagger.Directory
	GetMountPathPrefix() string
	GetImageConfig() Image

	GetWorkdir() string

	IsKeepEntryPoint() bool
	GetEnvVars() map[string]string
	IsCacheInvalidated() bool
	IsPrivateGitSupportEnabled() bool
	GetCacheBusterEnvVar() EnvVar
	GetGitSSHEnvVar() EnvVar
	GetSSHAuthSockEnvVar() EnvVar
}

type EnvVar

type EnvVar struct {
	Name   string
	Value  string
	Expand bool
}

type Image

type Image interface {
	GetImageTerraform() string
	GetImageTerragrunt() string
	GetImageDefaultTerraform() string
	GetImageDefaultTerragrunt() string
	GetVersion() string
	GetVersionDefault() string
	GetTerraformContainerImage() string
	GetTerragruntContainerImage() string
}

func NewImageConfig

func NewImageConfig(image, version string) Image

type ImageConfig

type ImageConfig struct {
	// contains filtered or unexported fields
}

func (*ImageConfig) GetImageDefaultTerraform

func (o *ImageConfig) GetImageDefaultTerraform() string

func (*ImageConfig) GetImageDefaultTerragrunt

func (o *ImageConfig) GetImageDefaultTerragrunt() string

func (*ImageConfig) GetImageTerraform

func (o *ImageConfig) GetImageTerraform() string

func (*ImageConfig) GetImageTerragrunt

func (o *ImageConfig) GetImageTerragrunt() string

func (*ImageConfig) GetTerraformContainerImage

func (o *ImageConfig) GetTerraformContainerImage() string

func (*ImageConfig) GetTerragruntContainerImage

func (o *ImageConfig) GetTerragruntContainerImage() string

func (*ImageConfig) GetVersion

func (o *ImageConfig) GetVersion() string

func (*ImageConfig) GetVersionDefault

func (o *ImageConfig) GetVersionDefault() string

type Runtime

type Runtime interface {
	CreateContainer() *dagger.Container
	OverrideWorkdir(workdir string, container *dagger.Container) *dagger.Container
	AddCommands(commands []Command, container *dagger.Container) *dagger.Container
	RunAndGetStdout(container *dagger.Container) (string, error)
	ForwardUnixSockets(container *dagger.Container) *dagger.Container
	AddEnvVars(envVars map[string]string, container *dagger.Container) *dagger.Container
}

func New

func New(container Container, td *terradagger.TD) Runtime

Jump to

Keyboard shortcuts

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