| 1 |
package blobs |
| 2 |
|
| 3 |
import ( |
| 4 |
"github.com/Azure/go-autorest/autorest" |
| 5 |
"github.com/Azure/go-autorest/autorest/azure" |
| 6 |
) |
| 7 |
|
| 8 |
// Client is the base client for Blob Storage Blobs. |
| 9 |
type Client struct { |
| 10 |
autorest.Client |
| 11 |
BaseURI string |
| 12 |
} |
| 13 |
|
| 14 |
// New creates an instance of the Client client. |
| 15 |
func New() Client { |
| 16 |
return NewWithEnvironment(azure.PublicCloud) |
| 17 |
} |
| 18 |
|
| 19 |
// NewWithBaseURI creates an instance of the Client client. |
| 20 |
func NewWithEnvironment(environment azure.Environment) Client { |
| 21 |
return Client{ |
| 22 |
Client: autorest.NewClientWithUserAgent(UserAgent()), |
| 23 |
BaseURI: environment.StorageEndpointSuffix, |
| 24 |
} |
| 25 |
} |