util

package
v1.16.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src string, dst string, fs afero.Fs) error

CopyDir copies a directory from src to dst using the provided filesystem. If no filesystem is provided, it uses the OS filesystem.

func DestroyDockerResources added in v1.13.3

func DestroyDockerResources(ctx context.Context, enclave ...string) error

DestroyDockerResources removes all Docker resources associated with the given enclave

func NewDockerClient added in v1.13.3

func NewDockerClient() (*client.Client, error)

NewDockerClient creates a new Docker client and checks if Docker is available

func SetReverseProxyConfig added in v1.13.5

func SetReverseProxyConfig(ctx context.Context) error

SetReverseProxyConfig recreates the Traefik container with correct configuration for service routing

func TestRPCEndpoints added in v1.13.5

func TestRPCEndpoints(ctx context.Context, apiClient *client.Client) error

func WithRetry added in v1.13.6

func WithRetry[T any](ctx context.Context, operation string, fn func() (T, error)) (T, error)

WithRetry executes a function with exponential backoff retry logic This is specifically designed for handling gRPC connection timeouts with Kurtosis

Types

type RPCEndpoint added in v1.13.5

type RPCEndpoint struct {
	Name        string
	Port        int
	UUID        string
	EnclaveUUID string
}

type ServicePort added in v1.13.5

type ServicePort struct {
	Name string
	Port int
}

type ServiceWithoutLabels added in v1.13.5

type ServiceWithoutLabels struct {
	Name        string
	ServiceUUID string
	EnclaveUUID string
	Ports       []ServicePort
}

type TraefikHostTransport added in v1.13.5

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

func (*TraefikHostTransport) RoundTrip added in v1.13.5

func (t *TraefikHostTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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