tgzfs

package
v0.0.0-...-d30abd5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

package tgzfs

import "github.com/zeebo/rothko/internal/tgzfs"

package tgzfs provides an http.FileSystem based on a tgz.

Usage

type FS
type FS struct {
}

FS is an http.FileServer for a tarball.

func New
func New(data []byte) (*FS, error)

New constructs a FS from a gzip encoded tar ball in the data.

func (*FS) Open
func (fs *FS) Open(name string) (http.File, error)

Open returns an http.File for the given path.

Documentation

Overview

package tgzfs provides an http.FileSystem based on a tgz.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

FS is an http.FileServer for a tarball.

func New

func New(data []byte) (*FS, error)

New constructs a FS from a gzip encoded tar ball in the data.

func (*FS) Open

func (fs *FS) Open(name string) (http.File, error)

Open returns an http.File for the given path.

Jump to

Keyboard shortcuts

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