Documentation
¶
Index ¶
- func DefaultClient() *github.Client
- func HasBranchPrefix(s string) bool
- func HasReleasePrefix(s string) bool
- 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 BranchPath
- type ContentPath
- 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 HasBranchPrefix ¶ added in v0.0.20
func HasReleasePrefix ¶ added in v0.0.20
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 BranchPath ¶ added in v0.0.20
type BranchPath struct {
RepositoryPath
Branch string
}
func NewBranchPath ¶ added in v0.0.20
func NewBranchPath(owner, repo, branch string) BranchPath
func ParseBranch ¶ added in v0.0.20
func ParseBranch(path Path) (branch BranchPath, err error)
func (BranchPath) String ¶ added in v0.0.20
func (p BranchPath) String() string
type ContentPath ¶ added in v0.0.20
type ContentPath struct {
BranchPath
Content string
}
func NewContentPath ¶ added in v0.0.20
func NewContentPath(owner, repo, branch, content string) ContentPath
func ParseContent ¶ added in v0.0.20
func ParseContent(p Path) (content ContentPath, err error)
func (ContentPath) String ¶ added in v0.0.20
func (p ContentPath) String() string
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.