api

package
v0.0.0-...-82180e8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetTypeUser         = "User"
	TargetTypeOrganization = "Organization"
)

Set easier names to refer to

Variables

This section is empty.

Functions

This section is empty.

Types

type Owner

type Owner struct {
	ID        *int64
	Kind      *string // holds information if this is an org or a user
	Login     *string
	Type      *string
	Name      *string
	AvatarURL *string
	URL       *string
	Company   *string
	Blog      *string
	Location  *string
	Email     *string
	Bio       *string
}

Owner holds the info that we want for a repo owner

type Repository

type Repository struct {
	Owner         string
	Name          string
	FullName      string
	CloneURL      string
	URL           string
	DefaultBranch string
	Description   string // WHY DO WE NEED THIS FIELD???
	Homepage      string // WHY DO WE NEED THIS FIELD???
	ID            int64
}

Repository holds the info we want for a repo itself

Jump to

Keyboard shortcuts

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