docker

package
v0.0.0-...-f09cf9b Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: BSD-3-Clause Imports: 45 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 MockOIDC = "mock-oidc"
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 ApiKeyUser

type ApiKeyUser struct {
	Key      string
	Username string
	Admin    bool
	Viewer   bool
}

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

func (d *Compose) With1NodeCluster() *Compose

func (*Compose) With3NodeCluster

func (d *Compose) With3NodeCluster() *Compose

func (*Compose) WithApiKey

func (d *Compose) WithApiKey() *Compose

func (*Compose) WithAutoschema

func (d *Compose) WithAutoschema() *Compose

func (*Compose) WithAzurite

func (d *Compose) WithAzurite() *Compose

func (*Compose) WithBackendAzure

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

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

func (*Compose) WithGenerativeAnthropic

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

func (*Compose) WithGenerativeAnyscale

func (d *Compose) WithGenerativeAnyscale() *Compose

func (*Compose) WithGenerativeCohere

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

func (*Compose) WithGenerativeFriendliAI

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

func (*Compose) WithGenerativeGoogle

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

func (*Compose) WithGenerativeOllama

func (d *Compose) WithGenerativeOllama() *Compose

func (*Compose) WithGenerativeOpenAI

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

func (*Compose) WithImg2VecNeural

func (d *Compose) WithImg2VecNeural() *Compose

func (*Compose) WithMockOIDC

func (d *Compose) WithMockOIDC() *Compose

func (*Compose) WithMulti2VecBind

func (d *Compose) WithMulti2VecBind() *Compose

func (*Compose) WithMulti2VecCLIP

func (d *Compose) WithMulti2VecCLIP() *Compose

func (*Compose) WithMulti2VecCohere

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

func (*Compose) WithMulti2VecGoogle

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

func (*Compose) WithMulti2VecJinaAI

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

func (*Compose) WithMulti2VecVoyageAI

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

func (*Compose) WithOffloadS3

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

WithOffloadS3 will prepare MinIO

func (*Compose) WithOllamaGenerative

func (d *Compose) WithOllamaGenerative() *Compose

func (*Compose) WithOllamaVectorizer

func (d *Compose) WithOllamaVectorizer() *Compose

func (*Compose) WithQnAOpenAI

func (d *Compose) WithQnAOpenAI() *Compose

func (*Compose) WithQnATransformers

func (d *Compose) WithQnATransformers() *Compose

func (*Compose) WithRBAC

func (d *Compose) WithRBAC() *Compose

func (*Compose) WithRbacAdmins

func (d *Compose) WithRbacAdmins(usernames ...string) *Compose

func (*Compose) WithRbacViewers

func (d *Compose) WithRbacViewers(usernames ...string) *Compose

func (*Compose) WithRef2VecCentroid

func (d *Compose) WithRef2VecCentroid() *Compose

func (*Compose) WithRerankerCohere

func (d *Compose) WithRerankerCohere() *Compose

func (*Compose) WithRerankerTransformers

func (d *Compose) WithRerankerTransformers() *Compose

func (*Compose) WithRerankerVoyageAI

func (d *Compose) WithRerankerVoyageAI() *Compose

func (*Compose) WithSUMTransformers

func (d *Compose) WithSUMTransformers() *Compose

func (*Compose) WithText2ColBERTJinaAI

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

func (*Compose) WithText2VecAWS

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

func (*Compose) WithText2VecCohere

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

func (*Compose) WithText2VecContextionary

func (d *Compose) WithText2VecContextionary() *Compose

func (*Compose) WithText2VecGoogle

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

func (*Compose) WithText2VecHuggingFace

func (d *Compose) WithText2VecHuggingFace() *Compose

func (*Compose) WithText2VecJinaAI

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

func (*Compose) WithText2VecOllama

func (d *Compose) WithText2VecOllama() *Compose

func (*Compose) WithText2VecOpenAI

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

func (*Compose) WithText2VecTransformers

func (d *Compose) WithText2VecTransformers() *Compose

func (*Compose) WithText2VecVoyageAI

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

func (*Compose) WithText2VecWeaviate

func (d *Compose) WithText2VecWeaviate() *Compose

func (*Compose) WithUserApiKey

func (d *Compose) WithUserApiKey(username, key string) *Compose

func (*Compose) WithWeaviate

func (d *Compose) WithWeaviate() *Compose

func (*Compose) WithWeaviateAuth

func (d *Compose) WithWeaviateAuth() *Compose

func (*Compose) WithWeaviateBasicAuth

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

func (*Compose) WithWeaviateCluster

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

func (*Compose) WithWeaviateClusterWithGRPC

func (d *Compose) WithWeaviateClusterWithGRPC() *Compose

func (*Compose) WithWeaviateEnv

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

func (*Compose) WithWeaviateWithGRPC

func (d *Compose) WithWeaviateWithGRPC() *Compose

func (*Compose) WithoutWeaviateEnvs

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

type DockerCompose

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

func (*DockerCompose) ContainerAt

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

func (*DockerCompose) ContainerURI

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

func (*DockerCompose) Containers

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

func (*DockerCompose) GetAzurite

func (d *DockerCompose) GetAzurite() *DockerContainer

func (*DockerCompose) GetGCS

func (d *DockerCompose) GetGCS() *DockerContainer

func (*DockerCompose) GetMinIO

func (d *DockerCompose) GetMinIO() *DockerContainer

func (*DockerCompose) GetMockOIDC

func (d *DockerCompose) GetMockOIDC() *DockerContainer

func (*DockerCompose) GetOllamaGenerative

func (d *DockerCompose) GetOllamaGenerative() *DockerContainer

func (*DockerCompose) GetOllamaVectorizer

func (d *DockerCompose) GetOllamaVectorizer() *DockerContainer

func (*DockerCompose) GetQnATransformers

func (d *DockerCompose) GetQnATransformers() *DockerContainer

func (*DockerCompose) GetSecondWeaviate

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

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

func (*DockerCompose) GetWeaviateNode2

func (d *DockerCompose) GetWeaviateNode2() *DockerContainer

func (*DockerCompose) GetWeaviateNode3

func (d *DockerCompose) GetWeaviateNode3() *DockerContainer

func (*DockerCompose) Start

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

func (*DockerCompose) StartAt

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

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

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

type DockerContainer

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

func (*DockerContainer) GetEndpoint

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

func (*DockerContainer) GrpcURI

func (d *DockerContainer) GrpcURI() string

func (*DockerContainer) Name

func (d *DockerContainer) Name() string

func (*DockerContainer) URI

func (d *DockerContainer) URI() string

type EndpointName

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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