util

package
v0.0.138 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package util has convenience functions for use throughout TestGrid.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Progress

func Progress(ctx context.Context, log logrus.FieldLogger, every time.Duration, total int, msg string) func(int)

Progress log every duration, including an ETA for completion. Returns a function for updating the current index

Types

type Strings added in v0.0.110

type Strings struct {
	// contains filtered or unexported fields
}

Strings represents the value of a flag that accept multiple strings.

func (*Strings) Set added in v0.0.110

func (s *Strings) Set(value string) error

Set records the value passed

func (*Strings) String added in v0.0.110

func (s *Strings) String() string

String returns a concatenated string of all the values joined by commas.

func (*Strings) Strings added in v0.0.110

func (s *Strings) Strings() []string

Strings returns the slice of strings set for this value instance.

Directories

Path Synopsis
gcs
Package gcs provides utilities for interacting with GCS.
Package gcs provides utilities for interacting with GCS.
Package metrics provides metric reporting for TestGrid components.
Package metrics provides metric reporting for TestGrid components.
Package queue contains methods and structures for manipulating and persisting data that should be repeatedly processed in a prioritized (but changing) order.
Package queue contains methods and structures for manipulating and persisting data that should be repeatedly processed in a prioritized (but changing) order.

Jump to

Keyboard shortcuts

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