Documentation ¶
Index ¶
- func NewAzureBlobEnv(cfg *config.NucleusConfig, logger lumber.Logger) (core.AzureClient, error)
- type Store
- func (s *Store) Create(ctx context.Context, path string, reader io.Reader, mimeType string) (string, error)
- func (s *Store) CreateUsingSASURL(ctx context.Context, sasURL string, reader io.Reader, mimeType string) (string, error)
- func (s *Store) Exists(ctx context.Context, path string) (bool, error)
- func (s *Store) Find(ctx context.Context, path string) (io.ReadCloser, error)
- func (s *Store) FindUsingSASUrl(ctx context.Context, sasURL string) (io.ReadCloser, error)
- func (s *Store) GetSASURL(ctx context.Context, containerPath string, containerType core.ContainerType) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAzureBlobEnv ¶
func NewAzureBlobEnv(cfg *config.NucleusConfig, logger lumber.Logger) (core.AzureClient, error)
NewAzureBlobEnv returns a new Azure blob store.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store represents the azure storage
func (*Store) Create ¶
func (s *Store) Create(ctx context.Context, path string, reader io.Reader, mimeType string) (string, error)
Create function ulploads blob to URI
func (*Store) CreateUsingSASURL ¶
func (s *Store) CreateUsingSASURL(ctx context.Context, sasURL string, reader io.Reader, mimeType string) (string, error)
CreateUsingSASURL creates object using sasURL
func (*Store) FindUsingSASUrl ¶
FindUsingSASUrl download object based on sasURL
Click to show internal directories.
Click to hide internal directories.