postgres

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	User              = "chainlink"
	Password          = "thispasswordislongenough"
	Port              = "5432"
	ExposedStaticPort = 13000
	Database          = "chainlink"
	DBVolumeName      = "postgresql_data"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Image              string                        `toml:"image" validate:"required"`
	Port               int                           `toml:"port"`
	Name               string                        `toml:"name"`
	VolumeName         string                        `toml:"volume_name"`
	Databases          int                           `toml:"databases"`
	JDDatabase         bool                          `toml:"jd_database"`
	PullImage          bool                          `toml:"pull_image"`
	ContainerResources *framework.ContainerResources `toml:"resources"`
	Out                *Output                       `toml:"out"`
}

type Output

type Output struct {
	Url                 string `toml:"url"`
	ContainerName       string `toml:"container_name"`
	DockerInternalURL   string `toml:"docker_internal_url"`
	JDUrl               string `toml:"jd_url"`
	JDDockerInternalURL string `toml:"jd_docker_internal_url"`
}

func NewPostgreSQL

func NewPostgreSQL(in *Input) (*Output, error)

Jump to

Keyboard shortcuts

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