Documentation
¶
Index ¶
- func CreateEncryptedSecret(secretName, secretValue string, publicKey *github.PublicKey) (*github.EncryptedSecret, error)
- func CreateIssue(options *CreateIssueOptions) (*github.Issue, error)
- type ClientBuilder
- func (b *ClientBuilder) Build() (context.Context, *github.Client, error)
- func (b *ClientBuilder) WithMaxRetries(maxRetries int) *ClientBuilder
- func (b *ClientBuilder) WithTimeout(timeout time.Duration) *ClientBuilder
- func (b *ClientBuilder) WithTrustedCerts(trustedCerts []string) *ClientBuilder
- func (b *ClientBuilder) WithUploadURL(uploadURL string) *ClientBuilder
- type CreateIssueOptions
- type FetchCommitOptions
- type FetchCommitResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEncryptedSecret ¶
func CreateEncryptedSecret(secretName, secretValue string, publicKey *github.PublicKey) (*github.EncryptedSecret, error)
CreateEncryptedSecret creates an encrypted secret using a public key from a GitHub repository, which can be sent through the GitHub API https://github.com/google/go-github/blob/master/example/newreposecretwithxcrypto/main.go
func CreateIssue ¶
func CreateIssue(options *CreateIssueOptions) (*github.Issue, error)
Types ¶
type ClientBuilder ¶
type ClientBuilder struct {
// contains filtered or unexported fields
}
func NewClientBuilder ¶
func NewClientBuilder(token, baseURL string) *ClientBuilder
func (*ClientBuilder) WithMaxRetries ¶
func (b *ClientBuilder) WithMaxRetries(maxRetries int) *ClientBuilder
func (*ClientBuilder) WithTimeout ¶
func (b *ClientBuilder) WithTimeout(timeout time.Duration) *ClientBuilder
func (*ClientBuilder) WithTrustedCerts ¶
func (b *ClientBuilder) WithTrustedCerts(trustedCerts []string) *ClientBuilder
func (*ClientBuilder) WithUploadURL ¶
func (b *ClientBuilder) WithUploadURL(uploadURL string) *ClientBuilder
type CreateIssueOptions ¶
type CreateIssueOptions struct {
APIURL string `json:"apiUrl,omitempty"`
Assignees []string `json:"assignees,omitempty"`
Body []byte `json:"body,omitempty"`
Owner string `json:"owner,omitempty"`
Repository string `json:"repository,omitempty"`
Title string `json:"title,omitempty"`
UpdateExisting bool `json:"updateExisting,omitempty"`
Token string `json:"token,omitempty"`
TrustedCerts []string `json:"trustedCerts,omitempty"`
Issue *github.Issue `json:"issue,omitempty"`
}
CreateIssueOptions to configure the creation
type FetchCommitOptions ¶
type FetchCommitOptions struct {
APIURL string `json:"apiUrl,omitempty"`
Owner string `json:"owner,omitempty"`
Repository string `json:"repository,omitempty"`
Token string `json:"token,omitempty"`
SHA string `json:"sha,omitempty"`
TrustedCerts []string `json:"trustedCerts,omitempty"`
}
FetchCommitOptions to configure the lookup
type FetchCommitResult ¶
FetchCommitResult to handle the lookup result
func FetchCommitStatistics ¶
func FetchCommitStatistics(options *FetchCommitOptions) (FetchCommitResult, error)
https://docs.github.com/en/rest/reference/commits#get-a-commit FetchCommitStatistics looks up the statistics for a certain commit SHA.
Click to show internal directories.
Click to hide internal directories.