azblob

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Code generated by go generate via internal/cmd/meta; DO NOT EDIT.

Index

Constants

View Source
const Type = "azblob"

Type is the type for azblob

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is the azblob config.

func New

func New(pairs ...*types.Pair) (s *Service, err error)

New will create a new azblob oss service.

azblob use different URL to represent different sub services. - ServiceURL's methods perform operations on a storage account.

  • ContainerURL's methods perform operations on an account's container.
  • BlockBlobURL's methods perform operations on a container's block blob.
  • AppendBlobURL's methods perform operations on a container's append blob.
  • PageBlobURL's methods perform operations on a container's page blob.
  • BlobURL's methods perform operations on a container's blob regardless of the blob's type.

Our Service will store a ServiceURL for operation.

func (Service) Create

func (s Service) Create(name string, pairs ...*types.Pair) (storage.Storager, error)

Create implements Servicer.Create

func (Service) Delete

func (s Service) Delete(name string, pairs ...*types.Pair) (err error)

Delete implements Servicer.Delete

func (Service) Get

func (s Service) Get(name string, pairs ...*types.Pair) (storage.Storager, error)

Get implements Servicer.Get

func (Service) List

func (s Service) List(pairs ...*types.Pair) (err error)

List implements Servicer.List

func (Service) String

func (s Service) String() string

String implements Servicer.String

type Storage

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

Storage is the azblob service client.

func (Storage) Delete

func (s Storage) Delete(path string, pairs ...*types.Pair) (err error)

Delete implements Storager.Delete

func (Storage) Init

func (s Storage) Init(pairs ...*types.Pair) (err error)

Init implements Storager.Init

func (Storage) ListDir

func (s Storage) ListDir(path string, pairs ...*types.Pair) (err error)

ListDir implements Storager.ListDir

func (Storage) Metadata

func (s Storage) Metadata() (m metadata.Storage, err error)

Metadata implements Storager.Metadata

func (Storage) Read

func (s Storage) Read(path string, pairs ...*types.Pair) (r io.ReadCloser, err error)

Read implements Storager.Read

func (Storage) Stat

func (s Storage) Stat(path string, pairs ...*types.Pair) (o *types.Object, err error)

Stat implements Storager.Stat

func (Storage) String

func (s Storage) String() string

String implements Storager.String

func (Storage) Write

func (s Storage) Write(path string, r io.Reader, pairs ...*types.Pair) (err error)

Write implements Storager.Write

Jump to

Keyboard shortcuts

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