storage

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Info

type S3Info struct {
	Name     string `json:"name"`
	Type     string `json:"type"`
	KeyID    string `json:"key_id"`
	Secret   string `json:"secret"`
	Region   string `json:"region"`
	Endpoint string `json:"endpoint"`
	UseSSL   bool   `json:"use_ssl"`
	URLStyle string `json:"url_style"`
	Scope    string `json:"scope"`
}

type Source

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

func New

func New() *Source

func (*Source) AsModule added in v0.1.9

func (s *Source) AsModule() bool

func (*Source) Attach

func (s *Source) Attach(ctx context.Context, pool *db.Pool) error

func (*Source) Catalog

func (s *Source) Catalog(ctx context.Context) sources.Source

func (*Source) Engine

func (s *Source) Engine() engines.Engine

func (*Source) IsReadonly

func (s *Source) IsReadonly() bool

func (*Source) Name

func (s *Source) Name() string

func (*Source) RegisterS3

func (s *Source) RegisterS3(ctx context.Context, info S3Info) error

func (*Source) UnregisterS3

func (s *Source) UnregisterS3(ctx context.Context, name string) error

Jump to

Keyboard shortcuts

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