Documentation
¶
Index ¶
- Variables
- func EndpointURL(base *url.URL, segments ...string) string
- func NewHTTPClient(caPEM []byte, endpoints Endpoints, timeout time.Duration) (*http.Client, error)
- func SetAPIHeaders(header http.Header, apiVersion string)
- type Client
- func (c *Client) DefaultBranchSHA(ctx context.Context, installationID int64, owner, name, branch string) (string, error)
- func (c *Client) DependencySBOM(ctx context.Context, installationID int64, owner, name string) (SBOM, bool, error)
- func (c *Client) DownloadArchive(ctx context.Context, owner, repository, sha, token string) (io.ReadCloser, error)
- func (c *Client) InstallationRepositories(ctx context.Context, installationID int64) ([]Repository, error)
- func (c *Client) InstallationToken(ctx context.Context, installationID int64, repositoryIDs []int64) (Token, error)
- func (c *Client) Installations(ctx context.Context) ([]Installation, error)
- func (c *Client) ReadContents(ctx context.Context, installationID int64, owner, name, path, ref string, ...) (Content, error)
- func (c *Client) SearchCode(ctx context.Context, installationID int64, query string, repositoryIDs []int64) (api.SearchResponse, error)
- type Content
- type Endpoints
- type HTTPStatusError
- type Installation
- type ReconcileAPI
- type ReconcileStore
- type Reconciler
- type Repository
- type SBOM
- type SBOMPackage
- type SBOMRelationship
- type Signer
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnconfiguredHost = errors.New("GitHub request host is not configured")
Functions ¶
func NewHTTPClient ¶
func SetAPIHeaders ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DefaultBranchSHA ¶
func (*Client) DependencySBOM ¶
func (*Client) DownloadArchive ¶
func (*Client) InstallationRepositories ¶
func (*Client) InstallationToken ¶
func (*Client) Installations ¶
func (c *Client) Installations(ctx context.Context) ([]Installation, error)
func (*Client) ReadContents ¶
func (*Client) SearchCode ¶
func (c *Client) SearchCode(ctx context.Context, installationID int64, query string, repositoryIDs []int64) (api.SearchResponse, error)
SearchCode performs a deliberately best-effort installation-scoped code search. GitHub does not provide an exact-commit consistency guarantee here.
type HTTPStatusError ¶
func (HTTPStatusError) Error ¶
func (err HTTPStatusError) Error() string
func (HTTPStatusError) HTTPStatus ¶
func (err HTTPStatusError) HTTPStatus() int
func (HTTPStatusError) IsRateLimited ¶
func (err HTTPStatusError) IsRateLimited() bool
type Installation ¶
type ReconcileAPI ¶
type ReconcileStore ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
func NewReconciler ¶
func NewReconciler(client *Client, store ReconcileStore) *Reconciler
func (*Reconciler) Installation ¶
func (r *Reconciler) Installation(ctx context.Context, installationID int64) error
type Repository ¶
type SBOM ¶
type SBOM struct {
DocumentSPDXID string
DocumentDescribes []string
Packages []SBOMPackage
Relationships []SBOMRelationship
}
type SBOMPackage ¶
type SBOMRelationship ¶
Click to show internal directories.
Click to hide internal directories.