azblob

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Copyright © 2021 Luther Systems, Ltd. All right reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store objects to azure.

func New

func New(prefix, accountName, containerName, accountKey string) (*Store, error)

New constructs a storage blob from an access key.

func NewFromCertificate added in v0.5.0

func NewFromCertificate(prefix, accountName, containerName, path, password, clientID, tenantID string) (*Store, error)

NewFromCertificate generates a Store using an Azure certificate.

func (*Store) Delete added in v0.11.0

func (s *Store) Delete(ctx context.Context, key string) error

Delete deletes bytes from azure blob.

func (*Store) Get

func (s *Store) Get(ctx context.Context, key string) ([]byte, error)

Get reads bytes from azure blob.

func (*Store) Put

func (s *Store) Put(ctx context.Context, key string, body []byte) error

Put writes bytes to azure blob.

Jump to

Keyboard shortcuts

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