Documentation ¶
Index ¶
- func DefaultClient() *github.Client
- func InvalidPath(path Path, err error) error
- func Open(ctx context.Context, gh *github.Client, path Path) (afero.File, error)
- func TryGetId[T NameOrId](x T) (int64, bool)
- type AssetPath
- type ContextAccessor
- type NameOrId
- type OwnerPath
- type Parser
- type Path
- type ReadOnlyFile
- type ReleasePath
- type RepositoryPath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClient ¶
func InvalidPath ¶ added in v0.0.18
Types ¶
type AssetPath ¶ added in v0.0.18
type AssetPath struct { ReleasePath Asset string }
func NewAssetPath ¶ added in v0.0.18
func ParseAsset ¶ added in v0.0.18
type ContextAccessor ¶
func BackgroundContext ¶
func BackgroundContext() ContextAccessor
func TodoContext ¶
func TodoContext() ContextAccessor
func (ContextAccessor) Context ¶
func (c ContextAccessor) Context() context.Context
type OwnerPath ¶ added in v0.0.18
type OwnerPath struct {
Owner string
}
func NewOwnerPath ¶ added in v0.0.18
func ParseOwner ¶ added in v0.0.18
type Path ¶ added in v0.0.18
type ReadOnlyFile ¶
type ReadOnlyFile struct{}
func (ReadOnlyFile) Truncate ¶
func (ReadOnlyFile) Truncate(int64) error
Truncate implements afero.File.
func (ReadOnlyFile) Write ¶
func (ReadOnlyFile) Write([]byte) (n int, err error)
Write implements afero.File.
func (ReadOnlyFile) WriteAt ¶
func (ReadOnlyFile) WriteAt([]byte, int64) (n int, err error)
WriteAt implements afero.File.
func (ReadOnlyFile) WriteString ¶
func (ReadOnlyFile) WriteString(string) (ret int, err error)
WriteString implements afero.File.
type ReleasePath ¶ added in v0.0.18
type ReleasePath struct { RepositoryPath Release string }
func NewReleasePath ¶ added in v0.0.18
func NewReleasePath(owner, repo, release string) ReleasePath
func ParseRelease ¶ added in v0.0.18
func ParseRelease(path Path) (release ReleasePath, err error)
func (ReleasePath) String ¶ added in v0.0.18
func (p ReleasePath) String() string
type RepositoryPath ¶ added in v0.0.18
func NewRepositoryPath ¶ added in v0.0.18
func NewRepositoryPath(owner, repo string) RepositoryPath
func ParseRepository ¶ added in v0.0.18
func ParseRepository(path Path) (repo RepositoryPath, err error)
func (RepositoryPath) Parse ¶ added in v0.0.18
func (p RepositoryPath) Parse(path string) (Path, error)
func (RepositoryPath) String ¶ added in v0.0.18
func (p RepositoryPath) String() string
Click to show internal directories.
Click to hide internal directories.