dockerconfig

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dockerconfig loads the api-server config from a running Docker stack. Used by developer utility scripts that need database / Canton connectivity without a manually specified config path.

Index

Constants

View Source
const (
	// ContainerName is the api-server container used as the config source.
	ContainerName = "erc20-api-server"
)

Variables

This section is empty.

Functions

func Load

func Load() (*config.APIServer, error)

Load pulls config from the running Docker stack:

  • env vars are read from the api-server container via docker inspect and exported into the current process so ${VAR} placeholders expand correctly
  • the bootstrap-resolved YAML is fetched via docker exec cat and docker- internal hostnames are rewritten to localhost for host-side access

Types

This section is empty.

Jump to

Keyboard shortcuts

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