Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudData ¶
type CloudData struct { Metrics CloudDataMetrics `json:"metrics"` Settings CloudDataSettings `json:"settings"` }
CloudData represents the information obtained from the sciencemesh app
type CloudDataMetrics ¶
type CloudDataMetrics struct { TotalUsers int64 `json:"numusers"` TotalGroups int64 `json:"numgroups"` TotalStorage int64 `json:"numstorage"` }
CloudDataMetrics reprents the metrics gathered from the sciencemesh app
type CloudDataSettings ¶
type CloudDataSettings struct { IOPUrl string `json:"iopurl"` Sitename string `json:"sitename"` Siteurl string `json:"siteurl"` Country string `json:"country"` }
CloudDataSettings represents the metrics gathered
type CloudDriver ¶
type CloudDriver struct { CloudData *CloudData sync.Mutex // contains filtered or unexported fields }
CloudDriver is the driver to use for Sciencemesh apps
func (*CloudDriver) Configure ¶
func (d *CloudDriver) Configure(c *config.Config) error
Configure configures this driver
func (*CloudDriver) GetAmountStorage ¶
func (d *CloudDriver) GetAmountStorage() int64
GetAmountStorage returns the amount of site storage used
func (*CloudDriver) GetNumGroups ¶
func (d *CloudDriver) GetNumGroups() int64
GetNumGroups returns the number of site groups
func (*CloudDriver) GetNumUsers ¶
func (d *CloudDriver) GetNumUsers() int64
GetNumUsers returns the number of site users
Click to show internal directories.
Click to hide internal directories.