utils

package
v0.0.0-...-5342816 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxSize int64

MaxSize defines the max supported file size

Functions

func DigestManifest

func DigestManifest(data []byte) (string, error)

DigestManifest gets the real digest content of a docker manifest

func GetDigest

func GetDigest(alg string, data []byte) string

GetDigest gets the digest value from an algrithm and a data value

func Payload

func Payload(data []byte) ([]byte, error)

Payload gets the playload of a docker manifest file

func Snap

func Snap(digestFull string) (string, string)

Snap gets the digest value of a full digest string TODO: lots of todo, need to verify the digest

Types

This section is empty.

Jump to

Keyboard shortcuts

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