ephemeral_storage

package
v0.0.0-...-d850389 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package ephemeral_storage has utilities for logging ephemeral (/tmp) disk usage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomUsageViaStructuredLogging

func CustomUsageViaStructuredLogging(ctx context.Context, dir string) error

CustomUsageViaStructuredLogging emits JSON to stdout describing the usage of a directory.

The JSON emitted on a single line will be picked up by StackDriver as a structured log.

func Start

func Start(ctx context.Context)

Start does a period call to UsageViaStructuredLogging(). It does not return, so it should be run as a Go routine.

If the context is cancelled then Start will return.

func StartCustom

func StartCustom(ctx context.Context, dir string)

StartCustom does a period call to UsageViaStructuredLogging(). It does not return, so it should be run as a Go routine.

If the context is cancelled then Start will return.

func UsageViaStructuredLogging

func UsageViaStructuredLogging(ctx context.Context) error

usageViaStructuredLogging emits JSON to stdout describing the usage of /tmp.

The JSON emitted on a single line will be picked up by StackDriver as a structured log.

Types

This section is empty.

Jump to

Keyboard shortcuts

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