docker

package
v1.27.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: BSD-3-Clause Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OllamaVectorizer = "ollamavectorizer"
	OllamaGenerative = "ollamagenerative"
)
View Source
const (
	Weaviate1      = "weaviate"
	Weaviate2      = "weaviate2"
	Weaviate3      = "weaviate3"
	Weaviate       = "weaviate"
	SecondWeaviate = "second-weaviate"
)
View Source
const Azurite = "azurite"
View Source
const GCS = "gcp-storage-emulator"
View Source
const Img2VecNeural = "img2vec-neural"
View Source
const MinIO = "test-minio"
View Source
const Multi2VecBind = "multi2vec-bind"
View Source
const Multi2VecCLIP = "multi2vec-clip"
View Source
const QnATransformers = "qna-transformers"
View Source
const (
	Ref2VecCentroid = "ref2vec-centroid"
)
View Source
const RerankerTransformers = "reranker-transformers"
View Source
const SUMTransformers = "sum-transformers"
View Source
const Text2VecContextionary = "text2vec-contextionary"
View Source
const Text2VecTransformers = "text2vec-transformers"

Variables

This section is empty.

Functions

This section is empty.

Types

type Compose

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

func New

func New() *Compose

func (*Compose) Start

func (d *Compose) Start(ctx context.Context) (*DockerCompose, error)

func (*Compose) With1NodeCluster added in v1.25.0

func (d *Compose) With1NodeCluster() *Compose

func (*Compose) With3NodeCluster added in v1.25.0

func (d *Compose) With3NodeCluster() *Compose

func (*Compose) WithAzurite added in v1.18.0

func (d *Compose) WithAzurite() *Compose

func (*Compose) WithBackendAzure added in v1.18.0

func (d *Compose) WithBackendAzure(container string) *Compose

func (*Compose) WithBackendFilesystem

func (d *Compose) WithBackendFilesystem() *Compose

func (*Compose) WithBackendGCS

func (d *Compose) WithBackendGCS(bucket string) *Compose

func (*Compose) WithBackendS3

func (d *Compose) WithBackendS3(bucket, region string) *Compose

WithBackendS3 will prepare MinIO

func (*Compose) WithGCS

func (d *Compose) WithGCS() *Compose

func (*Compose) WithGenerativeAWS added in v1.22.5

func (d *Compose) WithGenerativeAWS(accessKey, secretKey, sessionToken string) *Compose

func (*Compose) WithGenerativeAnthropic added in v1.26.0

func (d *Compose) WithGenerativeAnthropic(apiKey string) *Compose

func (*Compose) WithGenerativeAnyscale added in v1.23.0

func (d *Compose) WithGenerativeAnyscale() *Compose

func (*Compose) WithGenerativeCohere added in v1.20.0

func (d *Compose) WithGenerativeCohere(apiKey string) *Compose

func (*Compose) WithGenerativeFriendliAI added in v1.26.3

func (d *Compose) WithGenerativeFriendliAI(apiKey string) *Compose

func (*Compose) WithGenerativeGoogle added in v1.25.21

func (d *Compose) WithGenerativeGoogle(apiKey string) *Compose

func (*Compose) WithGenerativeOllama added in v1.25.0

func (d *Compose) WithGenerativeOllama() *Compose

func (*Compose) WithGenerativeOpenAI added in v1.20.0

func (d *Compose) WithGenerativeOpenAI(openAIApiKey, openAIOrganization, azureApiKey string) *Compose

func (*Compose) WithImg2VecNeural added in v1.20.0

func (d *Compose) WithImg2VecNeural() *Compose

func (*Compose) WithMulti2VecBind added in v1.24.0

func (d *Compose) WithMulti2VecBind() *Compose

func (*Compose) WithMulti2VecCLIP added in v1.18.2

func (d *Compose) WithMulti2VecCLIP() *Compose

func (*Compose) WithMulti2VecCohere added in v1.25.25

func (d *Compose) WithMulti2VecCohere(apiKey string) *Compose

func (*Compose) WithMulti2VecGoogle added in v1.25.21

func (d *Compose) WithMulti2VecGoogle(apiKey string) *Compose

func (*Compose) WithOffloadS3 added in v1.26.0

func (d *Compose) WithOffloadS3(bucket, region string) *Compose

WithOffloadS3 will prepare MinIO

func (*Compose) WithOllamaGenerative added in v1.25.0

func (d *Compose) WithOllamaGenerative() *Compose

func (*Compose) WithOllamaVectorizer added in v1.25.0

func (d *Compose) WithOllamaVectorizer() *Compose

func (*Compose) WithQnAOpenAI added in v1.20.0

func (d *Compose) WithQnAOpenAI() *Compose

func (*Compose) WithQnATransformers

func (d *Compose) WithQnATransformers() *Compose

func (*Compose) WithRef2VecCentroid

func (d *Compose) WithRef2VecCentroid() *Compose

func (*Compose) WithRerankerCohere added in v1.22.0

func (d *Compose) WithRerankerCohere() *Compose

func (*Compose) WithRerankerTransformers added in v1.21.0

func (d *Compose) WithRerankerTransformers() *Compose

func (*Compose) WithRerankerVoyageAI added in v1.24.7

func (d *Compose) WithRerankerVoyageAI() *Compose

func (*Compose) WithSUMTransformers

func (d *Compose) WithSUMTransformers() *Compose

func (*Compose) WithText2VecAWS added in v1.23.0

func (d *Compose) WithText2VecAWS(accessKey, secretKey, sessionToken string) *Compose

func (*Compose) WithText2VecCohere added in v1.20.0

func (d *Compose) WithText2VecCohere(apiKey string) *Compose

func (*Compose) WithText2VecContextionary

func (d *Compose) WithText2VecContextionary() *Compose

func (*Compose) WithText2VecGoogle added in v1.25.21

func (d *Compose) WithText2VecGoogle(apiKey string) *Compose

func (*Compose) WithText2VecHuggingFace added in v1.22.0

func (d *Compose) WithText2VecHuggingFace() *Compose

func (*Compose) WithText2VecJinaAI added in v1.24.25

func (d *Compose) WithText2VecJinaAI(apiKey string) *Compose

func (*Compose) WithText2VecOllama added in v1.25.0

func (d *Compose) WithText2VecOllama() *Compose

func (*Compose) WithText2VecOpenAI added in v1.20.0

func (d *Compose) WithText2VecOpenAI(openAIApiKey, openAIOrganization, azureApiKey string) *Compose

func (*Compose) WithText2VecTransformers

func (d *Compose) WithText2VecTransformers() *Compose

func (*Compose) WithText2VecVoyageAI added in v1.24.2

func (d *Compose) WithText2VecVoyageAI() *Compose

func (*Compose) WithText2VecWeaviate added in v1.27.0

func (d *Compose) WithText2VecWeaviate() *Compose

func (*Compose) WithWeaviate

func (d *Compose) WithWeaviate() *Compose

func (*Compose) WithWeaviateAuth added in v1.18.1

func (d *Compose) WithWeaviateAuth() *Compose

func (*Compose) WithWeaviateBasicAuth added in v1.26.0

func (d *Compose) WithWeaviateBasicAuth(username, password string) *Compose

func (*Compose) WithWeaviateCluster

func (d *Compose) WithWeaviateCluster(size int) *Compose

func (*Compose) WithWeaviateClusterWithGRPC added in v1.23.0

func (d *Compose) WithWeaviateClusterWithGRPC() *Compose

func (*Compose) WithWeaviateEnv added in v1.24.0

func (d *Compose) WithWeaviateEnv(name, value string) *Compose

func (*Compose) WithWeaviateWithGRPC added in v1.23.0

func (d *Compose) WithWeaviateWithGRPC() *Compose

func (*Compose) WithoutWeaviateEnvs added in v1.26.2

func (d *Compose) WithoutWeaviateEnvs(names ...string) *Compose

type DockerCompose

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

func (*DockerCompose) ContainerAt added in v1.25.0

func (d *DockerCompose) ContainerAt(index int) (*DockerContainer, error)

func (*DockerCompose) ContainerURI added in v1.25.0

func (d *DockerCompose) ContainerURI(index int) string

func (*DockerCompose) Containers

func (d *DockerCompose) Containers() []*DockerContainer

func (*DockerCompose) GetAzurite added in v1.18.0

func (d *DockerCompose) GetAzurite() *DockerContainer

func (*DockerCompose) GetGCS

func (d *DockerCompose) GetGCS() *DockerContainer

func (*DockerCompose) GetMinIO

func (d *DockerCompose) GetMinIO() *DockerContainer

func (*DockerCompose) GetOllamaGenerative added in v1.25.0

func (d *DockerCompose) GetOllamaGenerative() *DockerContainer

func (*DockerCompose) GetOllamaVectorizer added in v1.25.0

func (d *DockerCompose) GetOllamaVectorizer() *DockerContainer

func (*DockerCompose) GetQnATransformers

func (d *DockerCompose) GetQnATransformers() *DockerContainer

func (*DockerCompose) GetSecondWeaviate added in v1.22.0

func (d *DockerCompose) GetSecondWeaviate() *DockerContainer

func (*DockerCompose) GetText2VecContextionary

func (d *DockerCompose) GetText2VecContextionary() *DockerContainer

func (*DockerCompose) GetText2VecTransformers

func (d *DockerCompose) GetText2VecTransformers() *DockerContainer

func (*DockerCompose) GetWeaviate

func (d *DockerCompose) GetWeaviate() *DockerContainer

func (*DockerCompose) GetWeaviateNode added in v1.26.0

func (d *DockerCompose) GetWeaviateNode(n int) *DockerContainer

func (*DockerCompose) GetWeaviateNode2

func (d *DockerCompose) GetWeaviateNode2() *DockerContainer

func (*DockerCompose) GetWeaviateNode3 added in v1.25.1

func (d *DockerCompose) GetWeaviateNode3() *DockerContainer

func (*DockerCompose) Start

func (d *DockerCompose) Start(ctx context.Context, container string) error

func (*DockerCompose) StartAt added in v1.25.0

func (d *DockerCompose) StartAt(ctx context.Context, nodeIndex int) error

func (*DockerCompose) Stop

func (d *DockerCompose) Stop(ctx context.Context, container string, timeout *time.Duration) error

func (*DockerCompose) StopAt added in v1.25.0

func (d *DockerCompose) StopAt(ctx context.Context, nodeIndex int, timeout *time.Duration) error

func (*DockerCompose) Terminate

func (d *DockerCompose) Terminate(ctx context.Context) error

func (*DockerCompose) TerminateContainer added in v1.26.0

func (d *DockerCompose) TerminateContainer(ctx context.Context, container string) error

type DockerContainer

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

func (*DockerContainer) GetEndpoint added in v1.22.6

func (d *DockerContainer) GetEndpoint(name EndpointName) string

func (*DockerContainer) GrpcURI added in v1.26.0

func (d *DockerContainer) GrpcURI() string

func (*DockerContainer) Name

func (d *DockerContainer) Name() string

func (*DockerContainer) URI

func (d *DockerContainer) URI() string

type EndpointName added in v1.22.6

type EndpointName string
var (
	HTTP EndpointName = "http"
	GRPC EndpointName = "grpc"
)

Jump to

Keyboard shortcuts

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