kv

package
v0.0.0-...-4ae1f86 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

package kv implements the cas.KV interface using Go Cloud SDK

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

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

func Connect

func Connect(ctx context.Context, url string) (*Bucket, error)

Connect to a Go Cloud blob bucket

func (*Bucket) Close

func (b *Bucket) Close() error

func (*Bucket) Copy

func (b *Bucket) Copy(ctx context.Context, to, from string) error

func (*Bucket) Delete

func (b *Bucket) Delete(ctx context.Context, key string) error

func (*Bucket) Exists

func (b *Bucket) Exists(ctx context.Context, path string) (bool, error)

func (*Bucket) Read

func (b *Bucket) Read(ctx context.Context, w io.Writer, path string) (int64, error)

func (*Bucket) Write

func (b *Bucket) Write(ctx context.Context, path string, input io.Reader) (int64, error)

Jump to

Keyboard shortcuts

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