ocurl

command module
v0.0.0-...-0652c32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

README

ocurl

Yet another curl wrapper with Google auth.

It is my hobby project and not for production use.

$ go get -u github.com/apstndb/ocurl 
$ ocurl --help
Usage of ocurl:
  -access-token
        Use access token
  -audience string
        Audience
  -decode-token
        Print local decoded token
  -gcloud
        gcloud default account
  -gcloud-account string
        gcloud registered account(implies --gcloud)
  -id-token
        Use ID token
  -impersonate-service-account value
        Specify delegate chain(near to far order). Implies --gcloud
  -jwt
        Use JWT
  -key-file string
        Service Account JSON Key
  -metadata
        Use metadata token source
  -print-token
        Print token
  -scopes value
        Scopes
  -subject string
        Overwrite subject for domain-wide delegation(EXPERIMENTAL)
  -token-info
        Print token info
  -well-known
        well known file credential

# Use `gcloud auth application-default login` credential
$ ocurl -well-known -access-token -- https://cloudresourcemanager.googleapis.com/v1/projects 
# Use `gcloud auth login` credential
$ ocurl -gcloud -access-token -- https://cloudresourcemanager.googleapis.com/v1/projects 

See also

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL