GithubHelp home page GithubHelp logo

Can a location provide a name? about stow HOT 3 CLOSED

graymeta avatar graymeta commented on August 28, 2024
Can a location provide a name?

from stow.

Comments (3)

Xercoy avatar Xercoy commented on August 28, 2024

Most of the methods used to create new clients have exported fields or methods to retrieve at minimum the credentials that were used to dial.

Azure
We can retrieve the non random, user specified resource name that's included in the credentials.

Swift, Oracle
We can retrieve the non random, user specified tenant name that's included in the credentials.

S3 - There doesn't seem to be any information related to a user specified name, but at least we have the credentials and other information that we may be able to do something with.

Google
We can at least grab the credentials (Project ID or json information). @jasonhancock could you confirm if there's any credentials that are user specified? Project ID or something? We could use that if possible.

from stow.

matryer avatar matryer commented on August 28, 2024

Great job, thanks Corey.

On 30 Sep 2016, at 11:37, Corey Prak [email protected] wrote:

It looks like we can do something.

Azure https://github.com/Azure/azure-sdk-for-go/blob/master/storage/client.go#L50
We can retrieve the non random, user specified resource name that's included in the credentials.

Swift, Oracle https://github.com/ncw/swift/blob/b964f2ca856aac39885e258ad25aec08d5f64ee6/swift.go#L83
We can retrieve the non random, user specified tenant name that's included in the credentials.

S3 https://github.com/aws/aws-sdk-go/blob/af3026711cd873ccb4e87a7142fa8ca0be8f2aef/aws/credentials/credentials.go#L155 - There doesn't seem to be any information related to a user specified name, but at least we have the credentials and other information that we may be able to do something with.

Google https://github.com/google/google-api-go-client/blob/master/storage/v1/storage-gen.go#L80
We can at least grab the credentials (Project ID or json information). @jasonhancock https://github.com/jasonhancock could you confirm if there's any credentials that are user specified? Project ID or something? We could use that if possible.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #78 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AAGNG_y7Xftgc944k78o7IlCil4t8YsJks5qvOZggaJpZM4KKIRt.

from stow.

matryer avatar matryer commented on August 28, 2024

On balance, I'd say that we shouldn't do this. The location name is outside the scope of Stow.

We could return location name for those that support it, but then they'll be inconsistent.

from stow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.