github_files_provider

package
v0.0.0-...-b45cdd6 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

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

func New

func New(maxZipSizeMB int) *Github

func (*Github) GetContent

func (g *Github) GetContent(ctx context.Context, user, repo, branch string, tempStorage github_stat.TempStorage) (_ []github_stat.FileForPath, close func() error, _ error)

type LimitedReader

type LimitedReader struct {
	Reader    io.Reader
	Remaining int
}

It is like io.LimitedReader but returns model.BadRequest when Remaining == 0

func (*LimitedReader) Read

func (r *LimitedReader) Read(p []byte) (n int, err error)

type TempFile

type TempFile struct {
	*os.File
	// contains filtered or unexported fields
}

func NewTempFile

func NewTempFile(r io.Reader, maxSizeBytes int) (_ *TempFile, err error)

func (*TempFile) Close

func (tf *TempFile) Close() error

func (*TempFile) Len

func (tf *TempFile) Len() int

Jump to

Keyboard shortcuts

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