Documentation ¶
Index ¶
- Constants
- func EnsureGitHubAccessToken(ctx context.Context, target_uri string, token_uri string) (string, error)
- func NewGitHubAPIReader(ctx context.Context, uri string) (wof_reader.Reader, error)
- func NewGitHubReader(ctx context.Context, uri string) (wof_reader.Reader, error)
- type GitHubAPIReader
- type GitHubReader
Constants ¶
View Source
const DEFAULT_BRANCH string = "main"
Variables ¶
This section is empty.
Functions ¶
func EnsureGitHubAccessToken ¶ added in v0.6.0
func EnsureGitHubAccessToken(ctx context.Context, target_uri string, token_uri string) (string, error)
EnsureGitHubAccessToken ensures that 'writer_uri' contains a '?access_token=VALUE' parameter. This only applies if the scheme is `githubapi://`. If not the method returns the original 'target_uri' value. If the 'target_uri' contains an empty `access_token` parameter or the value is "{access_token}" then the method will replace parameter with the value derived from 'token_uri' which is expected to be a valid `gocloud.dev/runtimevar` URI.
func NewGitHubAPIReader ¶
func NewGitHubReader ¶
Types ¶
type GitHubAPIReader ¶
type GitHubAPIReader struct { wof_reader.Reader // contains filtered or unexported fields }
func (*GitHubAPIReader) Read ¶
func (r *GitHubAPIReader) Read(ctx context.Context, uri string) (io.ReadSeekCloser, error)
type GitHubReader ¶
type GitHubReader struct { wof_reader.Reader // contains filtered or unexported fields }
func (*GitHubReader) Read ¶
func (r *GitHubReader) Read(ctx context.Context, uri string) (io.ReadSeekCloser, error)
Click to show internal directories.
Click to hide internal directories.