MCPcopy Create free account
hub / github.com/castai/openwebui-content-sync / UploadFile

Method UploadFile

internal/openwebui/interface.go:9–9  ·  view source on GitHub ↗
(ctx context.Context, filename string, content []byte)

Source from the content-addressed store, hash-verified

7// ClientInterface defines the interface for OpenWebUI client operations
8type ClientInterface interface {
9 UploadFile(ctx context.Context, filename string, content []byte) (*File, error)
10 GetFile(ctx context.Context, fileID string) (*File, error)
11 ListKnowledge(ctx context.Context) ([]*Knowledge, error)
12 AddFileToKnowledge(ctx context.Context, knowledgeID, fileID string) error

Callers 1

syncFileMethod · 0.65

Implementers 2

Clientinternal/openwebui/client.go
MockOpenWebUIClientinternal/mocks/mocks.go

Calls

no outgoing calls

Tested by

no test coverage detected