github

package
v0.0.0-...-f2e513f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(opts ...Option) error

Types

type Exploit

type Exploit struct {
	ID           string       `json:"id,omitempty"`
	Repositories []Repository `json:"repositories,omitempty"`
}

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithDir

func WithDir(dir string) Option

func WithRepoURL

func WithRepoURL(repoURL string) Option

func WithRetry

func WithRetry(retry int) Option

type Repository

type Repository struct {
	AllowForking bool    `json:"allow_forking,omitempty"`
	CreatedAt    string  `json:"created_at,omitempty"`
	Description  *string `json:"description,omitempty"`
	Fork         bool    `json:"fork,omitempty"`
	Forks        int     `json:"forks,omitempty"`
	ForksCount   int     `json:"forks_count,omitempty"`
	FullName     string  `json:"full_name,omitempty"`
	HtmlURL      string  `json:"html_url,omitempty"`
	ID           int     `json:"id,omitempty"`
	IsTemplate   bool    `json:"is_template,omitempty"`
	Name         string  `json:"name,omitempty"`
	Owner        struct {
		AvatarURL string `json:"avatar_url,omitempty"`
		HtmlURL   string `json:"html_url,omitempty"`
		ID        int    `json:"id,omitempty"`
		Login     string `json:"login,omitempty"`
	} `json:"owner,omitempty"`
	PushedAt                 string   `json:"pushed_at,omitempty"`
	Score                    int      `json:"score,omitempty"`
	StargazersCount          int      `json:"stargazers_count,omitempty"`
	Topics                   []string `json:"topics,omitempty"`
	UpdatedAt                string   `json:"updated_at,omitempty"`
	Visibility               string   `json:"visibility,omitempty"`
	Watchers                 int      `json:"watchers,omitempty"`
	WatchersCount            int      `json:"watchers_count,omitempty"`
	WebCommitSignoffRequired bool     `json:"web_commit_signoff_required,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL