Documentation ¶
Index ¶
- Constants
- func Compute(in io.Reader) (*repb.Digest, error)
- func ComputeForMessage(in proto.Message) (*repb.Digest, error)
- func DownloadResourceName(d *repb.Digest, instanceName string) string
- func ExtractDigestFromDownloadResourceName(resourceName string) (string, *repb.Digest, error)
- func ExtractDigestFromUploadResourceName(resourceName string) (string, *repb.Digest, error)
- func GetInvocationIDFromMD(ctx context.Context) string
- func GetRequestMetadata(ctx context.Context) *repb.RequestMetadata
- func IsCacheDebuggingEnabled(ctx context.Context) bool
- func MissingDigestError(d *repb.Digest) error
- func UploadResourceName(d *repb.Digest, instanceName string) (string, error)
- func Validate(d *repb.Digest) (string, error)
- type InstanceNameDigest
Constants ¶
View Source
const ( EmptySha256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" EmptyHash = "" )
Variables ¶
This section is empty.
Functions ¶
func GetInvocationIDFromMD ¶
func GetRequestMetadata ¶
func GetRequestMetadata(ctx context.Context) *repb.RequestMetadata
This is probably the wrong place for this, but works for now.
func IsCacheDebuggingEnabled ¶
func MissingDigestError ¶
func UploadResourceName ¶
Types ¶
type InstanceNameDigest ¶
func NewInstanceNameDigest ¶
func NewInstanceNameDigest(d *repb.Digest, instanceName string) *InstanceNameDigest
func (*InstanceNameDigest) GetInstanceName ¶
func (i *InstanceNameDigest) GetInstanceName() string
Click to show internal directories.
Click to hide internal directories.