This assumes that you have made site publicly available as described in the 
document I have linked.

On Tuesday, December 22, 2020 at 12:59:31 AM UTC+1 Alexander Mills wrote:

> 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/79914436-dbca-4e0d-9ee1-f8ee55cf0ea4n%40googlegroups.com.

Reply via email to