Documentation
¶
Index ¶
Constants ¶
View Source
const ( CrcsKey = "org.cnai.nydus.crcs" DefaultFileChunkSize = 4 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApplyDescriptorFn ¶
type ApplyDescriptorFn func(desc *ocispec.Descriptor)
ApplyDescriptorFn is a function that applies changes to the descriptor.
type FileCrcInfo ¶
type FileCrcList ¶
type FileCrcList struct {
Files []FileCrcInfo `json:"files"`
}
type Interceptor ¶
type Interceptor interface { // Intercept intercepts the building stream for some customized logic, readerType is the original stream type, such as raw or tar. Intercept(ctx context.Context, mediaType string, filepath string, readerType string, reader io.Reader) (ApplyDescriptorFn, error) }
Interceptor is an interface that defines the interceptor for the building stream.
Click to show internal directories.
Click to hide internal directories.