Documentation ¶
Index ¶
- Variables
- func ApplyDefaultHostAndPortToAddr(address, defaultAddress string) (string, error)
- func ApplyDefaultHostAndPortToAddrFlag(cmd *cobra.Command, flagName string) error
- type UplinkFlags
- func (c *UplinkFlags) GetProject(ctx context.Context) (*libuplink.Project, error)
- func (c *UplinkFlags) GetProjectAndBucket(ctx context.Context, bucketName string, access libuplink.EncryptionAccess) (project *libuplink.Project, bucket *libuplink.Bucket, err error)
- func (c *UplinkFlags) NewUplink(ctx context.Context, config *libuplink.Config) (*libuplink.Uplink, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is the default uplink setup errs class Error = errs.Class("uplink setup error") )
View Source
var RootCmd = &cobra.Command{ Use: "uplink", Short: "The Storj client-side CLI", Args: cobra.OnlyValidArgs, PersistentPreRunE: startCPUProfile, PersistentPostRunE: stopAndWriteProfile, }
RootCmd represents the base CLI command when called without any subcommands
Functions ¶
func ApplyDefaultHostAndPortToAddr ¶ added in v0.10.0
ApplyDefaultHostAndPortToAddr applies the default host and/or port if either is missing in the specified address.
Types ¶
type UplinkFlags ¶
type UplinkFlags struct { NonInteractive bool `help:"disable interactive mode" default:"false" setup:"true"` uplink.Config }
UplinkFlags configuration flags
func (*UplinkFlags) GetProject ¶ added in v0.11.0
GetProject returns a *libuplink.Project for interacting with a specific project
func (*UplinkFlags) GetProjectAndBucket ¶ added in v0.11.0
func (c *UplinkFlags) GetProjectAndBucket(ctx context.Context, bucketName string, access libuplink.EncryptionAccess) (project *libuplink.Project, bucket *libuplink.Bucket, err error)
GetProjectAndBucket returns a *libuplink.Bucket for interacting with a specific project's bucket
Click to show internal directories.
Click to hide internal directories.