Documentation
¶
Index ¶
- func BlobFromEnv() (*azblob.ServiceURL, error)
- func CreateContainer(container string) error
- func Delete(container, key string) error
- func DeleteContainer(container string) error
- func Get(container, key string) (string, error)
- func InsertKeyValue(container, key, value string) error
- func List(container string) error
- func ListContainers() error
- func Test() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlobFromEnv ¶
func BlobFromEnv() (*azblob.ServiceURL, error)
BlobFromEnv returns an *azblob.ServiceURL authenticated via the environment variables AZGO_STORAGE_ACCOUNT_NAME and AZGO_STORAGE_ACCOUNT_KEY
func CreateContainer ¶
CreateContainer creates a new container in the Blob Storage account The container is created without any public access.
func Delete ¶
Delete deletes a Block Blob specified by "key" in the given container. The container defaults to "main" if empty.
func DeleteContainer ¶
DeleteContainer deletes a container. The container defaults to "main" if empty.
func Get ¶
Get gets the Block Blob specified by "key" and returns it as a string. This function is designed to be paired with InsertKeyValue. The container defaults to "main" if empty.
func InsertKeyValue ¶
InsertKeyValue creates a new Block Blob of type text/plain which is named "key" and has the string value "value". The container defaults to "main" if empty.
func ListContainers ¶
func ListContainers() error
ListContainers lists all of the containers in the Blob Storage account. It marsals the ContainerItems to JSON and writes them to the standard output.
Types ¶
This section is empty.