utils

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package utils contains utility functions and types used throughout the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chunk

func Chunk[T any](list []T, n int) [][]T

Chunk splits a list into a matrix of elements with a size of `n`

func FormatForStorage

func FormatForStorage(t time.Time) string

FormatForStorage formats a time.Time value to the ISO 8601 format

Types

type Clock

type Clock struct{}

func (*Clock) GetCurrentTime

func (c *Clock) GetCurrentTime() time.Time

Directories

Path Synopsis
Package k8s contains helpers for working with the Kubernetes Client.
Package k8s contains helpers for working with the Kubernetes Client.
Package lock provides an interface for file-based locking.
Package lock provides an interface for file-based locking.
Package parallel provides utilities for running tasks in parallel.
Package parallel provides utilities for running tasks in parallel.
Package scout provides cloud environment detection and metadata retrieval capabilities for cloud environments.
Package scout provides cloud environment detection and metadata retrieval capabilities for cloud environments.
auto
Package auto provides auto-detection capabilities for the CloudZero Scout.
Package auto provides auto-detection capabilities for the CloudZero Scout.
aws
Package aws provides AWS cloud environment detection and metadata retrieval capabilities using the EC2 instance metadata service (IMDS) v2 with fallback to v1.
Package aws provides AWS cloud environment detection and metadata retrieval capabilities using the EC2 instance metadata service (IMDS) v2 with fallback to v1.
azure
Package azure provides Azure cloud environment detection and metadata retrieval capabilities using the Azure Instance Metadata Service (IMDS).
Package azure provides Azure cloud environment detection and metadata retrieval capabilities using the Azure Instance Metadata Service (IMDS).
google
Package google provides functionality for detecting and gathering environment information from Google Cloud metadat services.
Package google provides functionality for detecting and gathering environment information from Google Cloud metadat services.
types
Package types defines core types and interfaces for cloud environment detection and metadata retrieval.
Package types defines core types and interfaces for cloud environment detection and metadata retrieval.
types/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package telemetry contains code for posting telemetry data to the CloudZero API.
Package telemetry contains code for posting telemetry data to the CloudZero API.

Jump to

Keyboard shortcuts

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