Documentation ¶
Index ¶
- type ContainerManager
- func (cm *ContainerManager) DestroyAllContainers() error
- func (cm *ContainerManager) GetContainerForStepGroup(groupID string) *RunningContainer
- func (cm *ContainerManager) GetServiceContainersForStepGroup(groupID string) []*RunningContainer
- func (cm *ContainerManager) StartContainerForStepGroup(container models.Container, groupID string, envs map[string]string) (*RunningContainer, error)
- func (cm *ContainerManager) StartServiceContainersForStepGroup(services map[string]models.Container, groupID string, envs map[string]string) ([]*RunningContainer, error)
- type EnvironmentSource
- type Logger
- type RunningContainer
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 log.Logger, secrets []string) *ContainerManager
func (*ContainerManager) DestroyAllContainers ¶
func (cm *ContainerManager) DestroyAllContainers() error
func (*ContainerManager) GetContainerForStepGroup ¶
func (cm *ContainerManager) GetContainerForStepGroup(groupID string) *RunningContainer
func (*ContainerManager) GetServiceContainersForStepGroup ¶
func (cm *ContainerManager) GetServiceContainersForStepGroup(groupID string) []*RunningContainer
func (*ContainerManager) StartContainerForStepGroup ¶
func (cm *ContainerManager) StartContainerForStepGroup( container models.Container, groupID string, envs map[string]string, ) (*RunningContainer, error)
func (*ContainerManager) StartServiceContainersForStepGroup ¶
func (cm *ContainerManager) StartServiceContainersForStepGroup( services map[string]models.Container, groupID string, envs map[string]string, ) ([]*RunningContainer, error)
type EnvironmentSource ¶
implementing 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 RunningContainer ¶
func (*RunningContainer) Destroy ¶
func (rc *RunningContainer) Destroy() error
func (*RunningContainer) ExecuteCommandArgs ¶
func (rc *RunningContainer) ExecuteCommandArgs(envs []string) []string