certmagic_azblob

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 12 Imported by: 0

README

Certmagic AZBlob

Caddy storage for Azure Blob Storage.

Right now this solution uses container level locks instead of blob level locks. The upside is it is easier to manage the lease and there is only ever 1 lock that needs managed.

This could be converted to per blob locks in the future if the need arises.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlattenKey added in v0.1.2

func FlattenKey(key string) string

Types

type CaddyAzblob

type CaddyAzblob struct {
	AccountName   string `json:"account_name"`
	AccountKey    string `json:"account_key"`
	ContainerName string `json:"container_name"`
	UUID          string
	ContainerURL  azblob.ContainerURL
	// contains filtered or unexported fields
}

func (CaddyAzblob) CaddyModule

func (CaddyAzblob) CaddyModule() caddy.ModuleInfo

func (CaddyAzblob) CertMagicStorage

func (blob CaddyAzblob) CertMagicStorage() (certmagic.Storage, error)

func (CaddyAzblob) Delete

func (blob CaddyAzblob) Delete(ctx context.Context, key string) error

func (CaddyAzblob) Exists

func (blob CaddyAzblob) Exists(ctx context.Context, key string) bool

func (CaddyAzblob) List

func (blob CaddyAzblob) List(ctx context.Context, prefix string, recursive bool) ([]string, error)

func (CaddyAzblob) Load

func (blob CaddyAzblob) Load(ctx context.Context, key string) ([]byte, error)

func (CaddyAzblob) Lock

func (blob CaddyAzblob) Lock(ctx context.Context, key string) error

func (*CaddyAzblob) Provision

func (blob *CaddyAzblob) Provision(ctx caddy.Context) error

func (CaddyAzblob) Stat

func (blob CaddyAzblob) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error)

func (CaddyAzblob) Store

func (blob CaddyAzblob) Store(ctx context.Context, key string, value []byte) error

func (CaddyAzblob) String

func (blob CaddyAzblob) String() string

func (CaddyAzblob) Unlock

func (blob CaddyAzblob) Unlock(ctx context.Context, key string) error

func (*CaddyAzblob) UnmarshalCaddyfile

func (blob *CaddyAzblob) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

Jump to

Keyboard shortcuts

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