Documentation ¶
Index ¶
- func GuessContainerType(ctx context.Context, name string, info fs.FileInfo) (t meta.ContainerType, valid bool)
- type Container
- type DirectoryContainer
- func (c *DirectoryContainer) Download(ctx context.Context) (reader io.ReadCloser, filename string, err error)
- func (c *DirectoryContainer) ListItems(ctx context.Context) (names []string, err error)
- func (c *DirectoryContainer) OpenItem(ctx context.Context, index int) (reader io.ReadCloser, name string, err error)
- func (c *DirectoryContainer) PopulateImageIndices(ctx context.Context) error
- type ZipContainer
- func (c *ZipContainer) Download(ctx context.Context) (reader io.ReadCloser, filename string, err error)
- func (c *ZipContainer) ListItems(ctx context.Context) (names []string, err error)
- func (c *ZipContainer) OpenItem(ctx context.Context, index int) (reader io.ReadCloser, name string, err error)
- func (c *ZipContainer) PopulateImageIndices(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GuessContainerType ¶
Types ¶
type Container ¶
type Container interface { Download(ctx context.Context) (reader io.ReadCloser, filename string, err error) ListItems(ctx context.Context) (names []string, err error) OpenItem(ctx context.Context, index int) (reader io.ReadCloser, name string, err error) PopulateImageIndices(ctx context.Context) error }
type DirectoryContainer ¶
func (*DirectoryContainer) Download ¶
func (c *DirectoryContainer) Download(ctx context.Context) (reader io.ReadCloser, filename string, err error)
func (*DirectoryContainer) ListItems ¶
func (c *DirectoryContainer) ListItems(ctx context.Context) (names []string, err error)
func (*DirectoryContainer) OpenItem ¶
func (c *DirectoryContainer) OpenItem(ctx context.Context, index int) (reader io.ReadCloser, name string, err error)
func (*DirectoryContainer) PopulateImageIndices ¶
func (c *DirectoryContainer) PopulateImageIndices(ctx context.Context) error
type ZipContainer ¶
func (*ZipContainer) Download ¶
func (c *ZipContainer) Download(ctx context.Context) (reader io.ReadCloser, filename string, err error)
func (*ZipContainer) ListItems ¶
func (c *ZipContainer) ListItems(ctx context.Context) (names []string, err error)
func (*ZipContainer) OpenItem ¶
func (c *ZipContainer) OpenItem(ctx context.Context, index int) (reader io.ReadCloser, name string, err error)
func (*ZipContainer) PopulateImageIndices ¶
func (c *ZipContainer) PopulateImageIndices(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.