gitrepo

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type Config

type Config struct {
	SharedConfigRepository shared.ConfigRepository
	GitHubSSHCredential    intssh.Credential
	GitHubToken            string
}

type Repo

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

func New

func New(config Config) (*Repo, error)

func (*Repo) AssembleConfigRepository added in v0.10.0

func (r *Repo) AssembleConfigRepository(ctx context.Context, owner, name, branch string) (*Store, error)

func (*Repo) ShallowAssembleConfigRepository added in v0.10.0

func (r *Repo) ShallowAssembleConfigRepository(ctx context.Context, owner, name, branch string) (*Store, error)

type Store

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

func (*Store) ReadDir

func (s *Store) ReadDir(dirpath string) ([]os.FileInfo, error)

func (*Store) ReadFile

func (s *Store) ReadFile(path string) ([]byte, error)

Jump to

Keyboard shortcuts

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