redis

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*redisConfig)

func WithCmdArg

func WithCmdArg(key, value string) Option

WithCmdArg is used to specify the save argument when running the container.

func WithEnv

func WithEnv(envs ...string) Option

WithEnv is used to pass environment variables to the container.

func WithRepository added in v0.31.0

func WithRepository(repository string) Option

WithRepository is used to specify a custom image that should be pulled from the container registry

func WithTag

func WithTag(tag string) Option

WithTag is used to specify a custom tag that is used when pulling the Redis image from the container registry

type Resource

type Resource struct {
	Addr string
}

func Setup

func Setup(ctx context.Context, pool *dockertest.Pool, d resource.Cleaner, opts ...Option) (*Resource, error)

Jump to

Keyboard shortcuts

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