Documentation ¶
Overview ¶
Package uploadinfo provides a way to move metadata and/or actual data on blobs to be uploaded.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Digest digest.Digest Contents []byte Path string // contains filtered or unexported fields }
Entry should remain immutable upon creation. Should be created using constructor. Only Contents or Path must be set. In case of a malformed entry, Contents takes precedence over Path.
func EntryFromBlob ¶
EntryFromBlob creates an Entry from an in memory blob.
func EntryFromFile ¶
EntryFromFile creates an entry from a file in disk.
func EntryFromProto ¶
EntryFromProto creates an Entry from an in memory proto.
func EntryFromVirtualFile ¶
EntryFromVirtualFile creates an entry from a file not on disk. The digest is expected to exist in the CAS.
func (*Entry) IsVirtualFile ¶
IsVirtualFile returns whether this Entry is a virtual file.
Click to show internal directories.
Click to hide internal directories.