Documentation
¶
Overview ¶
package writer
Index ¶
Constants ¶
View Source
const DEFAULT_BRANCH string = "main"
Variables ¶
This section is empty.
Functions ¶
func EnsureGitHubAccessToken ¶ added in v0.6.1
func EnsureGitHubAccessToken(ctx context.Context, writer_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 'writer_uri' value. If the 'writer_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 NewGitHubAPIWriter ¶
Types ¶
type GitHubAPIWriter ¶
type GitHubAPIWriter struct {
wof_writer.Writer
// contains filtered or unexported fields
}
func (*GitHubAPIWriter) Write ¶
func (wr *GitHubAPIWriter) Write(ctx context.Context, uri string, fh io.ReadSeeker) (int64, error)
Click to show internal directories.
Click to hide internal directories.