group

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertCapacityWithUnits

func ConvertCapacityWithUnits(capacityKbps int) string

Converts an float64 capacity (Kbps) to a string representing a human readeable capacity with units (Mbps, Gbps) The human representation will have a precision of 1

The returned capacity will be in Mbps for capacity < 1Gbps The returned capacity will be in Gbps for capacity >= 1Gbps

examples:

  • 5 000 => 5Mbps
  • 35 000 000 => 3.5Gbps (precision of 1)

func RevertCapacityWithUnits

func RevertCapacityWithUnits(capacityWithUnits string) int

RevertCapacityWithUnits converts a human readable representation of a capacity to an integer capacity (Kbps)

examples:

  • 5Mbps => 5 000
  • 3.5Gbps => 35 000 000

Types

type Registration

type Registration struct{}

func (Registration) Name

func (r Registration) Name() string

Name is the name of this Service

func (Registration) SupportedDataSources

func (r Registration) SupportedDataSources() map[string]*schema.Resource

SupportedDataSources returns the supported Data Sources supported by this Service

func (Registration) SupportedResources

func (r Registration) SupportedResources() map[string]*schema.Resource

SupportedResources returns the supported Resources supported by this Service

Jump to

Keyboard shortcuts

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