json

package
v2.52.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL