utils

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LatestVersion = "latest"
	//nolint: gosec // this is not a secret leak, it's just a format declaration.
	DefaultCoreDockerImage    = "ghcr.io/calyptia/core"
	DefaultCoreDockerImageTag = LatestVersion

	DefaultCoreOperatorDockerImage = "ghcr.io/calyptia/core-operator"
	// DefaultCoreOperatorDockerImageTag not manually modified, CI should switch this version on every new release.
	DefaultCoreOperatorDockerImageTag = "v2.10.0"

	DefaultCoreOperatorToCloudDockerImage = "ghcr.io/calyptia/core-operator/sync-to-cloud"
	// DefaultCoreOperatorToCloudDockerImageTag not manually modified, CI should switch this version on every new release.
	DefaultCoreOperatorToCloudDockerImageTag = "v2.10.0"

	DefaultCoreOperatorFromCloudDockerImage = "ghcr.io/calyptia/core-operator/sync-from-cloud"
	// DefaultCoreOperatorFromCloudDockerImageTag not manually modified, CI should switch this version on every new release.
	DefaultCoreOperatorFromCloudDockerImageTag = "v2.10.0"
)

Variables

This section is empty.

Functions

func PtrBytes

func PtrBytes(v []byte) *[]byte

func ZeroOfPtr

func ZeroOfPtr[T comparable](v *T) T

Types

type ByteCell

type ByteCell struct {
	Value *float64
}

func (ByteCell) String

func (f ByteCell) String() string

type Rates

type Rates struct {
	InputBytes    *float64
	InputRecords  *float64
	OutputBytes   *float64
	OutputRecords *float64
}

func (*Rates) Apply

func (rates *Rates) Apply(measurement, metric string, points []cloud.MetricFields)

func (Rates) OK

func (rates Rates) OK() bool

type RecordCell

type RecordCell struct {
	Value *float64
}

func (RecordCell) String

func (f RecordCell) String() string

Jump to

Keyboard shortcuts

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