Documentation ¶
Index ¶
- type BlobRepository
- func (repo BlobRepository) Create(fileName string, data []byte) error
- func (repo BlobRepository) Delete(fileName string) error
- func (repo BlobRepository) List() ([]string, error)
- func (repo BlobRepository) Read(fileName string) ([]byte, error)
- func (repo BlobRepository) Update(fileName string, data []byte) error
- type BlobStore
- type IBlobRepository
- type IBlobService
- type IBlobStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobRepository ¶
type BlobRepository struct { IBlobRepository BlobStore IBlobStore ContainerName string }
BlobRepository structural definition
func (BlobRepository) Create ¶
func (repo BlobRepository) Create(fileName string, data []byte) error
Create crates a blob and uploads the provided data
func (BlobRepository) Delete ¶
func (repo BlobRepository) Delete(fileName string) error
Delete deletes a specified blob and its associated data
func (BlobRepository) List ¶
func (repo BlobRepository) List() ([]string, error)
List lists the blobs contained in this BlobRepository
type BlobStore ¶
type BlobStore struct { IBlobStore Name string Key string }
BlobStore structural definition
type IBlobRepository ¶
type IBlobRepository interface { Create(fileName string, data []byte) error List() ([]string, error) Read(fileName string) ([]byte, error) Update(fileName string, data []byte) error Delete(fileName string) error }
IBlobRepository interface for a BlobRepository
type IBlobService ¶
type IBlobService interface { Create(object interface{}) (string, error) List() ([]string, error) Read(id string, object interface{}) error Update(object interface{}) error Delete(id string) error }
IBlobService interface for a blobService
func GetBlobService ¶
func GetBlobService(blobStore IBlobStore, containerName string) IBlobService
GetBlobService retrives the blobService instance
type IBlobStore ¶
type IBlobStore interface {
Connect(container string) (azblob.ContainerURL, context.Context, error)
}
IBlobStore interface for a BlobStore
Click to show internal directories.
Click to hide internal directories.