privaterepo

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentToSSHUserList

func ContentToSSHUserList(content string) (string, error)

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	Owner string
	Repo  string
	Token string
}

type PrivateRepo

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

func New

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

func (*PrivateRepo) Content

func (p *PrivateRepo) Content(ctx context.Context, path string) (string, error)

Jump to

Keyboard shortcuts

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