storj/cmd/uplink
Erik van Velzen b4e42ceb23 cmd/uplinkng: fix linkshare bugs
Fix various bugs by remove superflous steps and letting libuplink
build the url.

$ uplinkng share --not-after +1h --url sj://mybucket/myprefix/

before: https://link.us1.storjshare.io/s/jxcvcme2xkb44xsec235xb2ccmbq//myprefix//
after: https://link.us1.storjshare.io/s/jxcvcme2xkb44xsec235xb2ccmbq/mybucket/myprefix/

$ uplinkng share --not-after +1h --url $(printf "sj://waterbear/aa\x03bb")

before: https://link.us1.storjshare.io/s/jwbcxjiv4ept7t2g3qmxfb73ljga//aabb
after: https://link.us1.storjshare.io/s/jvod7pixige62yrp5tubn4ct47yq/waterbear/aa%03bb

$ uplinkng share --not-after +1h --url

before: no url generated, no error
after: error "Need at least a bucket to create a working linkshare URL"
Change-Id: Ibca6847f8fc5d5fad9ee4642d11d3081d75d77ca
2022-03-03 16:00:10 +00:00
..
cmd cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
ulext cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
ulfs cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
ulloc cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
ultest cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
access_maker.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
access_permissions.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_access_create.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_access_export.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_access_import.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_access_inspect_test.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_access_inspect.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_access_list.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_access_register.go cmd/uplinkng: registeraccess via libuplink 2022-02-11 11:36:45 +00:00
cmd_access_remove.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_access_restrict.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_access_revoke.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_access_setup.go cmd/uplinkng: registeraccess via libuplink 2022-02-11 11:36:45 +00:00
cmd_access_use.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_cp_test.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_cp.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_ls_test.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_ls.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_mb.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_meta_get.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_mv_test.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_mv.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_rb.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_rm_test.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_rm.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_share_test.go cmd/uplinkng: fix linkshare bugs 2022-03-03 16:00:10 +00:00
cmd_share.go cmd/uplinkng: fix linkshare bugs 2022-03-03 16:00:10 +00:00
cmd_version.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
external_access.go cmd/uplink: fix migration for some old configs 2022-02-16 21:13:52 +00:00
external_config.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
external_migrate.go cmd/uplink: fix migration for some old configs 2022-02-16 21:13:52 +00:00
external_project.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
external.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
initial_setup.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
main.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
stdlib_flags.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
tabbed_writer.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00