utils

package
v0.0.0-...-a196a74 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s, e interface{}) bool

Contains checks if a slice contains an element

func Count

func Count(counter prometheus.Counter) (int, error)

Count to get single numerical value as int from Counter Metric.

func GaugeValue

func GaugeValue(gauge prometheus.Gauge) (int, error)

GaugeValue to get single numerical value as int from Gauge Metric.

func GetFileFromURL

func GetFileFromURL(url string) ([]byte, error)

GetFileFromURL retrieves the content of the file on the given url

func Int

func Int(v int) *int

Int returns a pointer to the int value passed in.

func LoadSecret

func LoadSecret(secretFilename string) ([]byte, error)

LoadSecret reads bytes from the file

func String

func String(v string) *string

String returns a pointer to the string value passed in.

Types

This section is empty.

Jump to

Keyboard shortcuts

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