session

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package session contains targets which helps to work with bake session

Index

Constants

This section is empty.

Variables

View Source
var (
	// BakeSessionLocation where current bake session file is located
	BakeSessionLocation = "test/.bakesession"
	// ServiceName name of service under test
	// use name as it appears in the .bakesession file
	ServiceName = ""
	// ExtraRules allows to add extra replacement rules
	ExtraRules = env.ReplacementRuleList{}
	// OutputFileLocation where to dump output envs
	OutputFileLocation = ".env.localhost"
)

Functions

This section is empty.

Types

type Session

type Session mg.Namespace

Session groups together interactions with bake session services

func (Session) DumpEnv

func (Session) DumpEnv() error

DumpEnv outputs envs variables from the service. It Replaces docker hosts with corresponding localhost endpoints substituting docker-to-docker addresses to host-to-docker ones. Extra replacement rules can be added.

Jump to

Keyboard shortcuts

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