that is not a google url:

 https://example.com/<object-name>

?

On Monday, December 21, 2020 at 3:53:37 PM UTC-8 Uli Kunitz wrote:

> It is the Google Cloud Storage package. Documentation is here: 
> https://pkg.go.dev/cloud.google.com/go/storage
>
> Signed URLs are URLs that allow access to an object in the cloud storage 
> without any other authentication mechanism: 
> https://cloud.google.com/storage/docs/access-control/signed-urls
>
> Google cloud storage organizes data into buckets and objects. A single 
> site should be represented by one bucket and the files as the objects in 
> the site. The explanation how to setup a static website with Google Cloud 
> Storage can be found here: 
> https://cloud.google.com/storage/docs/hosting-static-website
>
> The URL for an object is then https://example.com/<object-name>
>
> On Monday, December 21, 2020 at 11:59:20 PM UTC+1 Kurtis Rader wrote:
>
>> On Mon, Dec 21, 2020 at 2:55 PM Alexander Mills <alexande...@gmail.com> 
>> wrote:
>>
>>> this is a little irritating lol, i can get a signed url via:
>>>
>>> bucket := "bnk-photos"
>>> filename := "mypic3.json"
>>> method := "PUT"
>>> expires := time.Now().Add(time.Minute * 10)
>>>
>>> url, err := storage.SignedURL(bucket, filename, 
>>> &storage.SignedURLOptions{
>>> GoogleAccessID: cfg.Email,
>>> PrivateKey: cfg.PrivateKey,
>>> Method: method,
>>> Expires: expires,
>>> ContentType: "binary/octet-stream",
>>> })
>>>
>>>
>>> but I just want an *unsigned* url?
>>> how?
>>>
>>
>> What is the "storage" package? It's not part of the Go stdlib. Also, what 
>> is a "signed" URL. I've never heard that phrase before your email.
>>  
>> -- 
>> Kurtis Rader
>> Caretaker of the exceptional canines Junior and Hank
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/201ba638-943d-4069-80a1-6ce3af8e8b9en%40googlegroups.com.

Reply via email to