cloudprober: github.com/google/cloudprober/probes/probeutils Index | Files

package probeutils

import "github.com/google/cloudprober/probes/probeutils"

Package probeutils implements utilities that are shared across multiple probe types.

Index

Package Files

probeutils.go

func PatternPayload Uses

func PatternPayload(payload, pattern []byte)

PatternPayload builds a payload that can be verified using VerifyPayloadPattern. It repeats the pattern to fill the payload []byte slice. Last remaining bytes (len(payload) mod patternSize) are left unpopulated (hence set to 0 bytes).

func VerifyPayloadPattern Uses

func VerifyPayloadPattern(payload, pattern []byte) error

VerifyPayloadPattern verifies the payload built using PatternPayload.

Package probeutils imports 2 packages (graph) and is imported by 17 packages. Updated 2020-12-25. Refresh now. Tools for package owners.