utils

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

View Source
var (
	ReachMaxRetry          = errors.New("reach the max retry")
	NotFound               = errors.New("can't find the value")
	EmptyQueue             = errors.New("the queue is empty")
	HostIdentifierNotFound = errors.New("can't get the host identifier")
)

Functions

func AddLoggingContext

func AddLoggingContext(ctx context.Context) context.Context

func NearlyEqual

func NearlyEqual(a, b float64) bool

NearlyEqual check two float points are nearly equal.

func ReadSSHKey

func ReadSSHKey(path string) (ssh.Signer, error)

ReadSSHKey read a ssh private key file and then parse it to `ssh.Signer`

func TarGz

func TarGz(inPath, outPath string) error

TarGz compress the files from the given path to the out path.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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