Documentation
¶
Index ¶
- type AppsTransport
- type Client
- func (c *Client) PostComment(ctx context.Context, reports []definition.Report) error
- func (c *Client) PostCommentWithContext(ctx context.Context, reports []definition.Report, isDryRun bool, ...) error
- func (c *Client) PostCommentWithContextAndError(ctx context.Context, reports []definition.Report, isDryRun bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppsTransport ¶ added in v0.0.14
type AppsTransport struct {
BaseURL string // BaseURL is the scheme and host for GitHub API, defaults to https://api.github.com
Client ghinstallation.Client // Client to use to refresh tokens, defaults to http.Client with provided transport
// contains filtered or unexported fields
}
func NewAppsTransport ¶ added in v0.0.14
func NewAppsTransport(tr http.RoundTripper, appID string, privateKey []byte) (*AppsTransport, error)
func NewAppsTransportFromPrivateKey ¶ added in v0.0.14
func NewAppsTransportFromPrivateKey(tr http.RoundTripper, appID string, key *rsa.PrivateKey) *AppsTransport
NewAppsTransportFromPrivateKey returns an AppsTransport using a crypto/rsa.(*PrivateKey).
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) PostComment ¶
func (*Client) PostCommentWithContext ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.