Documentation ¶
Index ¶
- Constants
- func AddDependencies(...)
- func AssertPackageName() string
- func CanonicalizeDirectory(d string) string
- func CopyRecursiveNoClobber(from, to string)
- func FetchDependencies(customerOutputDirectory string)
- func FullNotifierName(filesHash string) string
- func GetAbsoluteDirectory(path string) string
- func HashFileContent(paths []string) string
- func InstrumentationPackageName() string
- func NotifierDependencies(...)
- func NotifierPackage(filesHash string) string
- func PathFromBaseDirectory(baseDir, someDir string) string
- func Pluralize(val int, singularText string) string
- func SDKPackageName(packageName string) string
- func ValidateDirectories(input, output string) (err error)
- func WriteTextFile(text, file_name string) (err error)
- type LogWriter
Constants ¶
View Source
const ( HashBitsUsed = 48 HashBytesUsed = HashBitsUsed / 8 EncodedHashByteLength = HashBytesUsed * 2 )
View Source
const ( NAME_NOT_AVAILABLE = "anonymous" ANTITHESIS_SDK_MODULE = "github.com/antithesishq/antithesis-sdk-go" ASSERT_PACKAGE = "assert" INSTRUMENTATION_PACKAGE = "instrumentation" NOTIFIER_MODULE_NAME = "antithesis.notifier" GENERATED_SUFFIX = "_antithesis_catalog.go" INSTRUMENTED_SOURCE_FOLDER = "customer" SYMBOLS_FOLDER = "symbols" SYMBOLS_FILE_HASH_PREFIX = "go" SYMBOLS_FILE_SUFFIX = ".sym.tsv" NOTIFIER_FOLDER = "notifier" GENERATED_NOTIFIER_SOURCE = "notifier.go" NOTIFIER_PACKAGE_PREFIX = "z" )
Variables ¶
This section is empty.
Functions ¶
func AddDependencies ¶
func AddDependencies(customerInputDirectory, customerOutputDirectory, instrumentorVersion, notifierModule, localNotifier string)
func AssertPackageName ¶ added in v0.2.10
func AssertPackageName() string
func CanonicalizeDirectory ¶ added in v0.4.0
func CopyRecursiveNoClobber ¶
func CopyRecursiveNoClobber(from, to string)
func FetchDependencies ¶ added in v0.2.10
func FetchDependencies(customerOutputDirectory string)
func FullNotifierName ¶ added in v0.2.10
require antithesis.notifier/z4a1b45a05078
func GetAbsoluteDirectory ¶
GetAbsoluteDirectory converts a path, whether a symlink or a relative path, into an absolute path.
func HashFileContent ¶
HashFileContent reads the binary content of every file in paths (assumed to be in lexical order) and returns the SHA-256 digest.
func InstrumentationPackageName ¶ added in v0.2.10
func InstrumentationPackageName() string
func NotifierDependencies ¶ added in v0.2.10
func NotifierDependencies(notifierOutputDirectory, notifierModuleName, instrumentorVersion, localSDKPath string)
func NotifierPackage ¶ added in v0.2.10
package z4a1b45a05078
func PathFromBaseDirectory ¶ added in v0.4.1
PathFromBaseDirectory gets the path of someDir relative to baseDir
Example: PathFromBaseDirectory("/home/ricky/etcd", "/home/ricky/etcd/server/test")
==> "server/test"
func SDKPackageName ¶ added in v0.2.10
func ValidateDirectories ¶
ValidateDirectories checks that neither directory is a child of the other, and of course that they're not the same.
func WriteTextFile ¶
Types ¶
type LogWriter ¶
type LogWriter struct {
// contains filtered or unexported fields
}
func GetLogWriter ¶
func GetLogWriter() *LogWriter
func NewLogWriter ¶
func (*LogWriter) VerboseLevel ¶
Click to show internal directories.
Click to hide internal directories.