Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultEndpoint rados gateway endpoint DefaultEndpoint = "http://localhost:7480" // Access credentials for radosgw DefaultAccessKey = "vertadmin" DefaultSecretKey = "vertadmin" DefaultZone = "in.south.tn" DefaultCost = "1.0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool `json:"enabled" toml:"enabled"` RgwStorage RadosGw `json:"radosgw" toml:"radosgw"` }
Config represents the meta configuration.
type RadosGW ¶
type RadosGW struct { UserId string `json:"uid"` Api *radosAPI.API TotalSizeMB float64 `json:"total_size"` Bucket string `json:"bucket_name"` }
func (*RadosGW) GetUserBucketSize ¶
func (*RadosGW) GetUserStorageSize ¶
type Region ¶
type Region struct { Enabled bool `json:"enabled" toml:"enabled"` Zone string `json:"radosgw_region" toml:"radosgw_region"` EndPoint string `json:"radosgw_host" toml:"radosgw_host"` AdminUser string `json:"admin_user" toml:"admin_user"` AdminAccess string `json:"admin_access_key" toml:"admin_access_key"` AdminSecret string `json:"admin_secret_key" toml:"admin_secret_key"` StorageUnit string `json:"storage_unit" toml:"storage_unit"` CostPerHour string `json:"cost_per_hour" toml:"cost_per_hour"` }
Click to show internal directories.
Click to hide internal directories.