repository

package
v1.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Get(context.Context, string) (io.Reader, string, error)
}

type Option

type Option func(*Repository)

func WithGitHubURL

func WithGitHubURL(base *url.URL) Option

func WithToken

func WithToken(token string) Option

type Repository

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

func New

func New(repo, owner, dir, branch string, opts ...Option) (*Repository, error)

func (Repository) Get

func (repository Repository) Get(ctx context.Context, lastRevision string) (data io.Reader, revision string, err error)

Jump to

Keyboard shortcuts

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