docker

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyticsFlowEngine

func AnalyticsFlowEngine(ctx context.Context, wg *sync.WaitGroup, pipelineApiUrl string, parserUrl string, rancherUrl string, mqttUrl string) (hostPort string, ipAddress string, err error)

func AnalyticsFlowRepo

func AnalyticsFlowRepo(ctx context.Context, wg *sync.WaitGroup, mongoIp string) (hostPort string, ipAddress string, err error)

func AnalyticsOperatorRepo

func AnalyticsOperatorRepo(ctx context.Context, wg *sync.WaitGroup, mongoIp string) (hostPort string, ipAddress string, err error)

func AnalyticsPipeline

func AnalyticsPipeline(ctx context.Context, wg *sync.WaitGroup, mongoIp string) (hostPort string, ipAddress string, err error)

func BrokerExports

func BrokerExports(ctx context.Context, wg *sync.WaitGroup, mongoUrl string, rancherUrl string, permv2Url string) (hostPort string, ipAddress string, err error)

func Dashboard

func Dashboard(ctx context.Context, wg *sync.WaitGroup, mongoIp string) (hostPort string, ipAddress string, err error)

func DatabaseExports

func DatabaseExports(ctx context.Context, wg *sync.WaitGroup, mysqlHost string, rancherUrl string, permSearchUrl string, influxDbHost string) (hostPort string, ipAddress string, err error)

func Dockerlog

func Dockerlog(container testcontainers.Container, name string) error

func Forward

func Forward(ctx context.Context, fromPort int, toAddr string) error

func GetFreePort

func GetFreePort() (string, error)

func GetHostIp

func GetHostIp() (string, error)

func Imports

func Imports(ctx context.Context, wg *sync.WaitGroup, mongoUrl string, importRepoUrl string, permissionsUrl string, kafkaUrl string, rancherUrl string, permV2Url string) (hostPort string, ipAddress string, err error)

func InfluxdbContainer

func InfluxdbContainer(ctx context.Context, wg *sync.WaitGroup) (hostport string, containerip string, err error)

func Kafka

func Kafka(ctx context.Context, wg *sync.WaitGroup, zookeeperUrl string) (kafkaUrl string, err error)

func LocalUrlToDockerUrl

func LocalUrlToDockerUrl(localUrl string) (dockerUrl string, err error)

transform local-address to address in docker container

func MongoContainer

func MongoContainer(ctx context.Context, wg *sync.WaitGroup) (hostport string, containerip string, err error)

func Mqtt added in v0.0.4

func Mqtt(ctx context.Context, wg *sync.WaitGroup) (hostPort string, ipAddress string, err error)

func MysqlContainer

func MysqlContainer(ctx context.Context, wg *sync.WaitGroup) (hostPort string, ipAddress string, err error)

func NotificationContainer

func NotificationContainer(ctx context.Context, wg *sync.WaitGroup, mongoIp string, vaultUrl string, keycloakUrl string) (hostPort string, ipAddress string, err error)

func PermissionsV2 added in v0.0.5

func PermissionsV2(ctx context.Context, wg *sync.WaitGroup, mongoUrl string) (hostPort string, ipAddress string, err error)

func PrintDockerLogs added in v0.0.10

func PrintDockerLogs(c testcontainers.Container, name string)

func ProcessScheduler

func ProcessScheduler(ctx context.Context, wg *sync.WaitGroup, mongoUrl string) (hostPort string, ipAddress string, err error)

func Start

func Start(basectx context.Context, wg *sync.WaitGroup, origConfig configuration.Config) (config configuration.Config, getDeviceRepoCalls func() []string, err error)

func WaitingRoom

func WaitingRoom(ctx context.Context, wg *sync.WaitGroup, mongoUrl string) (hostPort string, ipAddress string, err error)

func Zookeeper

func Zookeeper(ctx context.Context, wg *sync.WaitGroup) (hostPort string, ipAddress string, err error)

Types

type LogWriter

type LogWriter struct {
	// contains filtered or unexported fields
}

func (*LogWriter) Accept

func (this *LogWriter) Accept(l testcontainers.Log)

func (*LogWriter) Write

func (this *LogWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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