Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiKey ¶ added in v1.14.0
type ApiKey struct {
WithDatabase
WithSecret bool
}
type BeginObject ¶ added in v1.14.0
type BeginObject struct {
Database string
}
func (BeginObject) Run ¶ added in v1.14.0
func (i BeginObject) Run() error
type Db ¶ added in v1.14.0
type Db struct {
Inline Inline `cmd:"" help:"inline segment load test"`
GetObject GetObject `cmd:"" help:"get object from metabase by project ID, bucket and encrypted path"`
GetBucket GetBucket `cmd:"" help:"get bucket from metabase by project ID and bucket name"`
GetNode GetNode `cmd:"" help:"get node from satellite db by node ID"`
ListProjects ListProjects `cmd:"" help:"List projects."`
ApiKey ApiKey `cmd:"" help:"Print details of current api key (including project id)"`
GetUser GetUser `cmd:"" help:"Print details of a user"`
}
type GetBucket ¶ added in v1.14.0
type GetBucket struct {
WithDatabase
ProjectID uuid.UUID `help:"the project ID. Keep it empty and set UPLINK_ACCESS env var to use the project ID from the access grant"`
Bucket string `arg:""`
}
type GetNode ¶ added in v1.14.0
type GetNode struct {
WithDatabase
NodeID storj.NodeID `arg:""`
}
type GetObject ¶ added in v1.14.0
type GetObject struct {
WithDatabase
ProjectID *uuid.UUID `help:"project ID (leave empty to find it from UPLINK_ACCESS)"`
Bucket string `arg:""`
EncryptedPath string `arg:""`
}
type GetUser ¶ added in v1.15.0
type GetUser struct {
WithDatabase
Email string `arg:""`
}
type ListProjects ¶ added in v1.14.0
type ListProjects struct {
WithDatabase
ProjectID uuid.UUID `arg:""`
Bucket string `arg:""`
EncryptedPath string `arg:""`
}
func (*ListProjects) Run ¶ added in v1.14.0
func (s *ListProjects) Run() error
type SatelliteConfig ¶
type WithDatabase ¶
type WithDatabase struct {
Satellite string
Satellites map[string]SatelliteConfig
}
func (WithDatabase) GetMetabaseDB ¶
func (WithDatabase) GetSatelliteDB ¶
Click to show internal directories.
Click to hide internal directories.