json

package
v2.19.7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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