{"modulePath":"github.com/smartcontractkit/chainlink-testing-framework/framework","version":"v0.17.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package postgres\n\n## Constants\n\n```go\nconst (\n\tUser              = \"chainlink\"\n\tPassword          = \"thispasswordislongenough\"\n\tPort              = \"5432\"\n\tExposedStaticPort = 13000\n\tDatabase          = \"chainlink\"\n\tJDDatabase        = \"job-distributor-db\"\n\tDBVolumeName      = \"postgresql_data\"\n)\n```\n\n## Types\n\n```go\ntype Input struct {\n\t// Image PostgreSQL Docker image in format: $registry:$tag\n\tImage string `toml:\"image\" validate:\"required\" comment:\"PostgreSQL Docker image in format: $registry:$tag\"`\n\t// Port PostgreSQL connection port\n\tPort int `toml:\"port\" comment:\"PostgreSQL connection port\"`\n\t// Name PostgreSQL container name\n\tName string `toml:\"name\" comment:\"PostgreSQL container name\"`\n\t// VolumeName PostgreSQL Docker volume name\n\tVolumeName string `toml:\"volume_name\" comment:\"PostgreSQL docker volume name\"`\n\t// Databases number of pre-created databases for Chainlink nodes\n\tDatabases int `toml:\"databases\" comment:\"Number of pre-created databases for Chainlink nodes\"`\n\t// JDDatabase whether to create JobDistributor database or not\n\tJDDatabase bool `toml:\"jd_database\" comment:\"Whether to create JobDistributor database or not\"`\n\t// JDSQLDumpPath JobDistributor SQL dump path to load\n\tJDSQLDumpPath string `toml:\"jd_sql_dump_path\" comment:\"JobDistributor database dump path to load\"`\n\t// PullImage whether to pull PostgreSQL image or not\n\tPullImage bool `toml:\"pull_image\" comment:\"Whether to pull PostgreSQL image or not\"`\n\t// ContainerResources Docker container resources\n\tContainerResources *framework.ContainerResources `toml:\"resources\" comment:\"Docker container resources\"`\n\t// Out PostgreSQL config output\n\tOut *Output `toml:\"out\" comment:\"PostgreSQL config output\"`\n}\n```\n\n```go\ntype Output struct {\n\t// Url PostgreSQL connection Url\n\tUrl string `toml:\"url\" comment:\"PostgreSQL connection URL\"`\n\t// ContainerName PostgreSQL Docker container name\n\tContainerName string `toml:\"container_name\" comment:\"Docker container name\"`\n\t// InternalURL PostgreSQL internal connection URL\n\tInternalURL string `toml:\"internal_url\" comment:\"PostgreSQL internal connection URL\"`\n\t// JDUrl PostgreSQL external connection URL to JobDistributor database\n\tJDUrl string `toml:\"jd_url\" comment:\"PostgreSQL internal connection URL to JobDistributor database\"`\n\t// JDInternalURL PostgreSQL internal connection URL to JobDistributor database\n\tJDInternalURL string `toml:\"jd_internal_url\" comment:\"PostgreSQL internal connection URL to JobDistributor database\"`\n\t// K8sService is a Kubernetes service spec used to connect locally\n\tK8sService *v1.Service `toml:\"k8s_service\" comment:\"Kubernetes service spec used to connect locally\"`\n}\n```\n\n```go\nfunc NewPostgreSQL(in *Input) (*Output, error)\n```\n\n```go\nfunc NewWithContext(ctx context.Context, in *Input) (*Output, error)\n```\n\n","path":"github.com/smartcontractkit/chainlink-testing-framework/framework/components/postgres","name":"postgres","synopsis":"","isRedistributable":true}
