Documentation
¶
Index ¶
- func NewExporter(ctx context.Context, client grpc.ClientConnInterface, ...) (integration.Exporter, error)
- func NewImporter(ctx context.Context, client grpc.ClientConnInterface, ...) (integration.Importer, error)
- func NewInventory(ctx context.Context, client grpc.ClientConnInterface, config map[string]string) (integration.Inventory, error)
- func NewSecretProvider(ctx context.Context, conn grpc.ClientConnInterface, config map[string]string) (integration.SecretProvider, error)
- func NewStorage(ctx context.Context, client grpc.ClientConnInterface, p string, ...) (integration.Store, error)
- func ReceiveChunks(chunkReceiverFn func() ([]byte, error)) io.ReadCloser
- func SendChunks(rd io.ReadCloser, chunkSendFn func(chunk []byte) error) (int64, error)
- type Exporter
- func (g *Exporter) Close(ctx context.Context) error
- func (g *Exporter) Export(ctx context.Context, records <-chan *integration.Record, ...) error
- func (g *Exporter) Flags() location.Flags
- func (g *Exporter) Origin() string
- func (g *Exporter) Ping(ctx context.Context) error
- func (g *Exporter) Root() string
- func (g *Exporter) Type() string
- type Importer
- func (g *Importer) Close(ctx context.Context) error
- func (g *Importer) Flags() location.Flags
- func (g *Importer) Import(ctx context.Context, records chan<- *integration.Record, ...) error
- func (g *Importer) Origin() string
- func (g *Importer) Ping(ctx context.Context) error
- func (g *Importer) Root() string
- func (g *Importer) Type() string
- type Store
- func (s *Store) Close(ctx context.Context) error
- func (s *Store) Create(ctx context.Context, config []byte) error
- func (s *Store) Delete(ctx context.Context, res integration.StorageResource, mac integration.MAC) error
- func (s *Store) Flags() location.Flags
- func (s *Store) Get(ctx context.Context, res integration.StorageResource, mac integration.MAC, ...) (io.ReadCloser, error)
- func (s *Store) List(ctx context.Context, res integration.StorageResource) ([]integration.MAC, error)
- func (s *Store) Mode(ctx context.Context) (integration.Mode, error)
- func (s *Store) Open(ctx context.Context) ([]byte, error)
- func (s *Store) Origin() string
- func (s *Store) Ping(ctx context.Context) error
- func (s *Store) Put(ctx context.Context, res integration.StorageResource, mac integration.MAC, ...) (int64, error)
- func (s *Store) Root() string
- func (s *Store) Size(ctx context.Context) (int64, error)
- func (s *Store) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExporter ¶
func NewExporter(ctx context.Context, client grpc.ClientConnInterface, opts *integration.Options, p string, config map[string]string) (integration.Exporter, error)
func NewImporter ¶
func NewImporter(ctx context.Context, client grpc.ClientConnInterface, opts *integration.Options, p string, config map[string]string) (integration.Importer, error)
func NewInventory ¶
func NewInventory(ctx context.Context, client grpc.ClientConnInterface, config map[string]string) (integration.Inventory, error)
func NewSecretProvider ¶
func NewSecretProvider(ctx context.Context, conn grpc.ClientConnInterface, config map[string]string) (integration.SecretProvider, error)
func NewStorage ¶
func NewStorage(ctx context.Context, client grpc.ClientConnInterface, p string, config map[string]string) (integration.Store, error)
func ReceiveChunks ¶
func ReceiveChunks(chunkReceiverFn func() ([]byte, error)) io.ReadCloser
func SendChunks ¶
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func (*Exporter) Export ¶
func (g *Exporter) Export(ctx context.Context, records <-chan *integration.Record, results chan<- *integration.Result) error
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func (*Importer) Import ¶
func (g *Importer) Import(ctx context.Context, records chan<- *integration.Record, results <-chan *integration.Result) error
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Delete ¶
func (s *Store) Delete(ctx context.Context, res integration.StorageResource, mac integration.MAC) error
func (*Store) Get ¶
func (s *Store) Get(ctx context.Context, res integration.StorageResource, mac integration.MAC, rg *integration.Range) (io.ReadCloser, error)
func (*Store) List ¶
func (s *Store) List(ctx context.Context, res integration.StorageResource) ([]integration.MAC, error)
func (*Store) Put ¶
func (s *Store) Put(ctx context.Context, res integration.StorageResource, mac integration.MAC, rd io.Reader) (int64, error)
Click to show internal directories.
Click to hide internal directories.