github

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type Config

type Config struct {
	SharedConfigRepository shared.ConfigRepository
	SSHCredential          ssh.Credential
	Token                  string
}

type GitHub

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

func New

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

func (*GitHub) AssembleConfigRepository added in v0.10.0

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

type Store

type Store interface {
	// ReadFile is similar to io/ioutil.ReadFile but it returns error
	// matched by IsNotFound if the file does not exist.
	ReadFile(path string) ([]byte, error)
	// ReadDir is similar to io/ioutil.ReadDir but it returns error matched
	// by IsNotFound if the directory does not exist.
	ReadDir(dirname string) ([]os.FileInfo, error)
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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