Documentation ¶
Index ¶
- Variables
- func DisplayGatewayCredentials(accessKey, secretKey, endpoint, format, awsProfile string) (err error)
- func IsSerializedAccess(access string) bool
- func RegisterAccess(ctx context.Context, access *uplink.Access, authService string, public bool, ...) (accessKey, secretKey, endpoint string, err error)
- type AccessConfig
- type ClientConfig
- type Config
- type UplinkFlags
- type WriterAt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is the class of errors returned by this package. Error = errs.Class("uplink") // ErrAccessFlag is used where the `--access` flag is registered but not supported. ErrAccessFlag = Error.New("--access flag not supported with `setup` and `import` subcommands") )
View Source
var RootCmd = &cobra.Command{ Use: "uplink", Short: "The Storj client-side CLI", Args: cobra.OnlyValidArgs, PersistentPreRunE: combineCobraFuncs(startCPUProfile, modifyFlagDefaults), PersistentPostRunE: stopAndWriteProfile, }
RootCmd represents the base CLI command when called without any subcommands.
Functions ¶
func DisplayGatewayCredentials ¶ added in v1.22.1
func DisplayGatewayCredentials(accessKey, secretKey, endpoint, format, awsProfile string) (err error)
DisplayGatewayCredentials formats and writes credentials to stdout.
func IsSerializedAccess ¶ added in v0.31.0
IsSerializedAccess returns whether the passed access is a serialized access string or not.
Types ¶
type AccessConfig ¶ added in v0.30.0
type AccessConfig struct { Accesses map[string]string `internal:"true"` Access string `help:"the serialized access, or name of the access to use" default:"" basic-help:"true"` // used for backward compatibility Scopes map[string]string `internal:"true"` // deprecated Scope string `internal:"true"` // deprecated }
AccessConfig holds information about which accesses exist and are selected.
func (AccessConfig) GetAccess ¶ added in v0.30.0
func (a AccessConfig) GetAccess() (_ *uplink.Access, err error)
GetAccess returns the appropriate access for the config.
func (AccessConfig) GetNamedAccess ¶ added in v0.30.0
func (a AccessConfig) GetNamedAccess(name string) (_ *uplink.Access, err error)
GetNamedAccess returns named access if exists.
type ClientConfig ¶ added in v0.29.0
type ClientConfig struct { UserAgent string `help:"User-Agent used for connecting to the satellite" default:""` DialTimeout time.Duration `help:"timeout for dials" default:"0h2m00s"` EnableQUIC bool `help:"Use QUIC as the transport protocol when it's available, otherwise, fallback to TCP" default:"false"` }
ClientConfig is a configuration struct for the uplink that controls how to talk to the rest of the network.
type Config ¶ added in v0.29.0
type Config struct { AccessConfig Client ClientConfig }
Config uplink configuration.
type UplinkFlags ¶
type UplinkFlags struct { Config Version checker.Config PBKDFConcurrency int `` /* 373-byte string literal not displayed */ }
UplinkFlags configuration flags.
Click to show internal directories.
Click to hide internal directories.