package network

import "github.com/testcontainers/testcontainers-go/internal/core/network"

Index

Constants

const (
	// FilterByID uses to filter network by identifier.
	FilterByID = "id"

	// FilterByName uses to filter network by name.
	FilterByName = "name"
)

Functions

func Get

func Get(ctx context.Context, id string) (network.Inspect, error)

Get returns a network by its ID.

func GetByName

func GetByName(ctx context.Context, name string) (network.Inspect, error)

GetByName returns a network by its name.

Source Files

network.go

Version
v0.36.0 (latest)
Published
Mar 27, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
5 hours ago

Tools for package owners.