docker

package
v2.40.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerManager

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

func NewContainerManager

func NewContainerManager(logger *Logger) *ContainerManager

func (*ContainerManager) LoginAndRunContainer added in v2.38.0

func (cm *ContainerManager) LoginAndRunContainer(t ContainerType, containerDef models.Container, containerName string, envs map[string]string) (*RunningContainer, error)

type ContainerType added in v2.38.0

type ContainerType string
const (
	ExecutionContainerType ContainerType = "execution"
	ServiceContainerType   ContainerType = "service"
)

type EnvironmentSource

type EnvironmentSource struct {
	Logger log.Logger
}

EnvironmentSource implements env.EnvironmentSource

func (*EnvironmentSource) GetEnvironment

func (des *EnvironmentSource) GetEnvironment() map[string]string

GetEnvironment ... Where envman.ReadAndEvaluateEnvs(configs.InputEnvstorePath, env.EnvironmentSource) is called, and we are in the context of using containers, we cannot use the default env.EnvironmentSource implementation, as it promotes all the envs from the host to the container, which is not what we want. for instance, we may have envs inherited from Bitrise stacks, altering default behavior of certain containers (for instance Java). Instead, we have our own implementation, filtering for envs that are whitelisted, and that are the envs starting with BITRISE_, and additionally the PATH, PR, CI and ENVMAN_ENVSTORE_PATH envs.

type Logger

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

func NewLogger added in v2.38.0

func NewLogger(logger log.Logger, secrets []string) *Logger

func (*Logger) Debugf added in v2.39.0

func (dl *Logger) Debugf(format string, args ...interface{})

func (*Logger) Errorf

func (dl *Logger) Errorf(format string, args ...interface{})

func (*Logger) Infof

func (dl *Logger) Infof(format string, args ...interface{})

func (*Logger) Redact

func (dl *Logger) Redact(s string) (string, error)

func (*Logger) Warnf

func (dl *Logger) Warnf(format string, args ...interface{})

type RunningContainer

type RunningContainer struct {
	ID   string
	Name string
}

func (*RunningContainer) Destroy

func (rc *RunningContainer) Destroy() error

func (*RunningContainer) ExecuteCommandArgs

func (rc *RunningContainer) ExecuteCommandArgs(envs []string) []string

Jump to

Keyboard shortcuts

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