package
0.0.0-20250308170929-48bd8ed27534
Repository: https://github.com/evergreen-ci/evergreen.git
Documentation: pkg.go.dev

# Functions

CalculateHMACHash calculates a sha256 HMAC has of the body with the given secret.
CheckURL returns errors if str is not in the form of an expected URL.
No description provided by the author
CleanName returns a name with spaces and dashes replaced with safe underscores.
No description provided by the author
No description provided by the author
ConsistentFilepath returns a filepath that always uses forward slashes ('/') rather than platform-dependent file path separators.
DeepCopy makes a deep copy of the src value into the copy params It uses json marshalling to do so, so the src and copy params must be json encodable and decodable.
see https://confluence.atlassian.com/jiracoreserver073/search-syntax-for-text-fields-861257223.html.
Taking in the input and expansions map, apply the expansions to any appropriate fields in the input.
GetIntValue returns a form value as an integer.
GetSHA256Hash returns the SHA256 hash of the given string.
HasAllowedImageAsPrefix returns true if the given string has one of the allowed image prefixes.
IndexWhiteSpace returns the first index of white space in the given string.
IsExpandable returns true if the passed in string contains an expandable parameter.
IsFieldPtr returns a boolean indicating whether the reflected value is a pointer.
IsFieldUndefined is an adaptation of IsZero https://golang.org/src/reflect/value.go?s=34297:34325#L1090.
IsFiniteNumericFloat takes a float64 and checks that it is not +inf, -inf, or NaN.
No description provided by the author
No description provided by the author
min function for ints.
NewCappedWriter is a convenience constructor to create a CappedWriter with no contents and the given size.
No description provided by the author
Return a new Expansions object with all of the specified expansions present.
NewMBCappedWriter is the same as NewCappedWriter but sets a default size of 1MB.
No description provided by the author
PowerShellQuotedString returns a string PowerShell which, when interpreted by PowerShell, all quotation marks in s are treated as literal quotation marks.
RecursivelySetUndefinedFields sets all fields that are not set in structToSet to the value of the corresponding field in structToDefaultFrom.
RespError attempts to read a gimlet.ErrorResponse from the response body JSON.
RespErrorf attempts to read a gimlet.ErrorResponse from the response body JSON.
TimeIsWithinLastDay indicates if the timestamp occurred within the last day.
TryParseFloat takes an input string and validates that it is a valid finite floating point number.
UnmarshalYAMLStrictWithFallback attempts to use yaml v3 to unmarshal strict, but on failure attempts yaml v2.
UnmarshalYAMLWithFallback attempts to use yaml v3 to unmarshal, but on failure attempts yaml v2.
WriteToTempFile writes the given string to a temporary file and returns the path to the file.

# Constants

No description provided by the author

# Variables

ErrBufferFull indicates that a CappedWriter's bytes.Buffer has MaxBytes bytes.

# Structs

CachedDurationValue represents a calculated int value saved in a database with a expiration time.
CachedIntValue represents a calculated int value saved in a database with a expiration time.
CappedWriter implements a buffer that stores up to MaxBytes bytes.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

CachedDurationValueRefresher provides a mechanism for CachedDurationValues to update their values when the current cached value expires.
CachedIntValueRefresher provides a mechanism for CachedIntValues to update their values when the current cached value expires.
Wrapper for an expansions map, with some utility functions.
No description provided by the author