Documentation ¶
Index ¶
- type Backend
- func (b *Backend) CreateReader(ctx context.Context, uploadBucket string, uploadLocation string) (io.ReadCloser, error)
- func (b *Backend) CreateWriter(ctx context.Context, uploadBucket string, uploadLocation string) (io.WriteCloser, error)
- func (b *Backend) DeleteFile(ctx context.Context, bucket string, location string) error
- func (b *Backend) GetDeploymentId(ctx context.Context) string
- func (b *Backend) GetNodeId(ctx context.Context) string
- func (b *Backend) ListFilesPrefix(ctx context.Context, bucket string, prefix string) ([]string, error)
- func (b *Backend) ReadFile(ctx context.Context, readBucket string, readLocation string) ([]byte, error)
- func (b *Backend) UploadFile(ctx context.Context, data []byte, uploadBucket string, uploadLocation string) error
- func (b *Backend) WriteLeaderFile(ctx context.Context, metadataBucket string, fileContents []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
This should satify interface for FirehoseBackend
func NewBackend ¶
NewBackend creates a Firehose on GCP The provider metadata produced by this Backend will have concrete type: gcp.Metadata
func (*Backend) CreateReader ¶
func (*Backend) CreateWriter ¶
func (*Backend) DeleteFile ¶
func (*Backend) ListFilesPrefix ¶
func (*Backend) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.