Skip to content

Commit

Permalink
Merge pull request #74 from AlexanderYW/v5-feature/implement-visibility
Browse files Browse the repository at this point in the history
Made visibility api's throw errors since they're not supported
  • Loading branch information
AlexanderYW committed Oct 12, 2021
2 parents e7946ba + 0c3a949 commit 10ef745
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions src/Drivers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@ import {
BlockBlobUploadStreamOptions
} from '@azure/storage-blob'

/*
BlobServiceClient,
newPipeline,
StorageSharedKeyCredential,
generateBlobSASQueryParameters,
BlobSASPermissions,
BlobItem,
*/

const pipelinePromise = promisify(pipeline)

export class AzureStorageDriver implements AzureStorageDriverContract {
Expand Down Expand Up @@ -313,4 +304,23 @@ export class AzureStorageDriver implements AzureStorageDriverContract {
throw CannotGetMetaDataException.invoke(location, 'stats', error)
}
}

/**
* Not Supported
*
* Returns the file visibility
*
*/
public async getVisibility(location: string): Promise<Visibility> {
throw CannotGetMetaDataException.invoke(location, 'visibility', 'Not Supported')
}

/**
* Not supported
*
* Sets the file visibility
*/
public async setVisibility(location: string): Promise<void> {
throw CannotSetVisibilityException.invoke(location, 'Not Supported')
}
}

0 comments on commit 10ef745

Please sign in to comment.