Documentation
¶
Index ¶
- func GetBlobService(config *Config) (azblob.ServiceURL, error)
- type Client
- func (client Client) Delete(path string) error
- func (client Client) DeleteBlob(blobName *string) error
- func (client Client) DownloadBlob(blobName *string) (*azblob.DownloadResponse, error)
- func (client Client) Get(path string) (file *os.File, err error)
- func (client Client) GetEndpoint() string
- func (client Client) GetListBlob() ([][]azblob.BlobItemInternal, error)
- func (client Client) GetStream(path string) (io.ReadCloser, error)
- func (client Client) GetURL(path string) (string, error)
- func (client Client) List(path string) ([]*oss.Object, error)
- func (client Client) Put(urlPath string, reader io.Reader) (*oss.Object, error)
- func (client Client) ToRelativePath(urlPath string) string
- func (client Client) UploadBlob(blobName *string, blobType *string, data io.ReadSeeker) (azblob.BlockBlobURL, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlobService ¶
func GetBlobService(config *Config) (azblob.ServiceURL, error)
Types ¶
type Client ¶
type Client struct { Config *Config // contains filtered or unexported fields }
Client azure blob storage
func (Client) DeleteBlob ¶
func (Client) DownloadBlob ¶
func (client Client) DownloadBlob(blobName *string) (*azblob.DownloadResponse, error)
func (Client) GetEndpoint ¶
func (Client) GetListBlob ¶
func (client Client) GetListBlob() ([][]azblob.BlobItemInternal, error)
func (Client) ToRelativePath ¶
ToRelativePath process path to relative path
func (Client) UploadBlob ¶
func (client Client) UploadBlob(blobName *string, blobType *string, data io.ReadSeeker) (azblob.BlockBlobURL, error)
Click to show internal directories.
Click to hide internal directories.