@@ -180,7 +180,7 @@ const (
180180 RemoveImagesLocal
181181)
182182
183- type dockerCompose struct {
183+ type DockerCompose struct {
184184 // used to synchronize operations
185185 lock sync.RWMutex
186186
@@ -235,21 +235,21 @@ type dockerCompose struct {
235235 provider * testcontainers.DockerProvider
236236}
237237
238- func (d * dockerCompose ) ServiceContainer (ctx context.Context , svcName string ) (* testcontainers.DockerContainer , error ) {
238+ func (d * DockerCompose ) ServiceContainer (ctx context.Context , svcName string ) (* testcontainers.DockerContainer , error ) {
239239 d .lock .Lock ()
240240 defer d .lock .Unlock ()
241241
242242 return d .lookupContainer (ctx , svcName )
243243}
244244
245- func (d * dockerCompose ) Services () []string {
245+ func (d * DockerCompose ) Services () []string {
246246 d .lock .Lock ()
247247 defer d .lock .Unlock ()
248248
249249 return d .project .ServiceNames ()
250250}
251251
252- func (d * dockerCompose ) Down (ctx context.Context , opts ... StackDownOption ) error {
252+ func (d * DockerCompose ) Down (ctx context.Context , opts ... StackDownOption ) error {
253253 d .lock .Lock ()
254254 defer d .lock .Unlock ()
255255
@@ -271,7 +271,7 @@ func (d *dockerCompose) Down(ctx context.Context, opts ...StackDownOption) error
271271 return d .composeService .Down (ctx , d .name , options .DownOptions )
272272}
273273
274- func (d * dockerCompose ) Up (ctx context.Context , opts ... StackUpOption ) (err error ) {
274+ func (d * DockerCompose ) Up (ctx context.Context , opts ... StackUpOption ) (err error ) {
275275 d .lock .Lock ()
276276 defer d .lock .Unlock ()
277277
@@ -436,23 +436,23 @@ func (d *dockerCompose) Up(ctx context.Context, opts ...StackUpOption) (err erro
436436 return nil
437437}
438438
439- func (d * dockerCompose ) WaitForService (s string , strategy wait.Strategy ) ComposeStack {
439+ func (d * DockerCompose ) WaitForService (s string , strategy wait.Strategy ) ComposeStack {
440440 d .lock .Lock ()
441441 defer d .lock .Unlock ()
442442
443443 d .waitStrategies [s ] = strategy
444444 return d
445445}
446446
447- func (d * dockerCompose ) WithEnv (m map [string ]string ) ComposeStack {
447+ func (d * DockerCompose ) WithEnv (m map [string ]string ) ComposeStack {
448448 d .lock .Lock ()
449449 defer d .lock .Unlock ()
450450
451451 d .projectOptions = append (d .projectOptions , withEnv (m ))
452452 return d
453453}
454454
455- func (d * dockerCompose ) WithOsEnv () ComposeStack {
455+ func (d * DockerCompose ) WithOsEnv () ComposeStack {
456456 d .lock .Lock ()
457457 defer d .lock .Unlock ()
458458
@@ -461,7 +461,7 @@ func (d *dockerCompose) WithOsEnv() ComposeStack {
461461}
462462
463463// cachedContainer returns the cached container for svcName or nil if it doesn't exist.
464- func (d * dockerCompose ) cachedContainer (svcName string ) * testcontainers.DockerContainer {
464+ func (d * DockerCompose ) cachedContainer (svcName string ) * testcontainers.DockerContainer {
465465 d .containersLock .Lock ()
466466 defer d .containersLock .Unlock ()
467467
@@ -471,7 +471,7 @@ func (d *dockerCompose) cachedContainer(svcName string) *testcontainers.DockerCo
471471// lookupContainer is used to retrieve the container instance from the cache or the Docker API.
472472//
473473// Safe for concurrent calls.
474- func (d * dockerCompose ) lookupContainer (ctx context.Context , svcName string ) (* testcontainers.DockerContainer , error ) {
474+ func (d * DockerCompose ) lookupContainer (ctx context.Context , svcName string ) (* testcontainers.DockerContainer , error ) {
475475 if c := d .cachedContainer (svcName ); c != nil {
476476 return c , nil
477477 }
@@ -506,7 +506,7 @@ func (d *dockerCompose) lookupContainer(ctx context.Context, svcName string) (*t
506506// lookupNetworks is used to retrieve the networks that are part of the compose stack.
507507//
508508// Safe for concurrent calls.
509- func (d * dockerCompose ) lookupNetworks (ctx context.Context ) error {
509+ func (d * DockerCompose ) lookupNetworks (ctx context.Context ) error {
510510 networks , err := d .dockerClient .NetworkList (ctx , dockernetwork.ListOptions {
511511 Filters : filters .NewArgs (
512512 filters .Arg ("label" , fmt .Sprintf ("%s=%s" , api .ProjectLabel , d .name )),
@@ -529,7 +529,7 @@ func (d *dockerCompose) lookupNetworks(ctx context.Context) error {
529529 return nil
530530}
531531
532- func (d * dockerCompose ) compileProject (ctx context.Context ) (* types.Project , error ) {
532+ func (d * DockerCompose ) compileProject (ctx context.Context ) (* types.Project , error ) {
533533 const nameAndDefaultConfigPath = 2
534534 projectOptions := make ([]cli.ProjectOptionsFn , len (d .projectOptions ), len (d .projectOptions )+ nameAndDefaultConfigPath )
535535
0 commit comments