Documentation
¶
Index ¶
- type Manager
- func (m *Manager) CreateCredential(ctx context.Context, req schema.CredentialCreate) (_ *schema.Credential, err error)
- func (m *Manager) CreateLLMProvider(ctx context.Context, req schema.LLMProviderCreate) (_ *schema.LLMProvider, err error)
- func (manager *Manager) CreateVolume(ctx context.Context, url *url.URL, meta schema.VolumeMeta) (_ *schema.Volume, err error)
- func (m *Manager) DeleteCredential(ctx context.Context, key schema.CredentialKey) (_ *schema.Credential, err error)
- func (m *Manager) GetCredential(ctx context.Context, key schema.CredentialKey, passphrase string) (_ json.RawMessage, err error)
- func (manager *Manager) GetMetadata(ctx context.Context, r io.Reader) (_ *schema.ObjectMeta, err error)
- func (manager *Manager) GetObject(ctx context.Context, req schema.ObjectKey) (_ *schema.Object, err error)
- func (manager *Manager) ListCredentials(ctx context.Context, req schema.CredentialListRequest) (_ *schema.CredentialList, err error)
- func (manager *Manager) ListObjects(ctx context.Context, req schema.ObjectListRequest) (_ *schema.ObjectList, err error)
- func (manager *Manager) ListVolumes(ctx context.Context, req schema.VolumeListRequest) (_ *schema.VolumeList, err error)
- func (manager *Manager) RegisterVolumeMetrics(name string) (err error)
- func (manager *Manager) Run(ctx context.Context, logger *slog.Logger) error
- func (manager *Manager) Search(ctx context.Context, req schema.SearchListRequest) (_ *schema.SearchList, err error)
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
func (*Manager) CreateCredential ¶ added in v0.2.7
func (m *Manager) CreateCredential(ctx context.Context, req schema.CredentialCreate) (_ *schema.Credential, err error)
CreateCredential persists an encrypted credential row and returns the public credential shape, excluding passphrase version and encrypted payload.
func (*Manager) CreateLLMProvider ¶ added in v0.2.10
func (m *Manager) CreateLLMProvider(ctx context.Context, req schema.LLMProviderCreate) (_ *schema.LLMProvider, err error)
CreateLLMProvider creates a new LLM provider which can be used for extracting metadata whilst indexing objects
func (*Manager) CreateVolume ¶ added in v0.2.0
func (*Manager) DeleteCredential ¶ added in v0.2.9
func (m *Manager) DeleteCredential(ctx context.Context, key schema.CredentialKey) (_ *schema.Credential, err error)
DeleteCredential deletes a credential row by key.
func (*Manager) GetCredential ¶ added in v0.2.9
func (m *Manager) GetCredential(ctx context.Context, key schema.CredentialKey, passphrase string) (_ json.RawMessage, err error)
GetCredential retrieves a credential by key and decrypts the credential payload with the given passphrase
func (*Manager) GetMetadata ¶ added in v0.2.3
func (*Manager) ListCredentials ¶ added in v0.2.9
func (manager *Manager) ListCredentials(ctx context.Context, req schema.CredentialListRequest) (_ *schema.CredentialList, err error)
ListCredentials returns a paginated list of credentials, excluding the encrypted credential payload.
func (*Manager) ListObjects ¶
func (manager *Manager) ListObjects(ctx context.Context, req schema.ObjectListRequest) (_ *schema.ObjectList, err error)
func (*Manager) ListVolumes ¶ added in v0.2.0
func (manager *Manager) ListVolumes(ctx context.Context, req schema.VolumeListRequest) (_ *schema.VolumeList, err error)
ListVolumes returns all volumes as a list.
func (*Manager) RegisterVolumeMetrics ¶ added in v0.2.8
func (*Manager) Search ¶ added in v0.2.10
func (manager *Manager) Search(ctx context.Context, req schema.SearchListRequest) (_ *schema.SearchList, err error)
type Opt ¶
type Opt func(*opt) error
Opt is a functional option for filer manager configuration.
func WithIndexer ¶ added in v0.2.0
WithIndexer uses this instance as an indexer of content
func WithLLMClientOpts ¶ added in v0.2.10
WithLLMClientOpts sets options for the LLM provider registry's HTTP clients.
func WithPassphrase ¶ added in v0.2.7
WithPassphrase registers an in-memory storage passphrase for a certificate passphrase version. Versions are uint64 and passphrases must be non-empty.
func WithTracer ¶
WithTracer sets the tracer used for tracing operations.