githubrepo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRepositoryInput

type CreateRepositoryInput struct {
	ProjectID   uuid.UUID
	Owner       string
	Name        string
	Description string
	Visibility  Visibility
	AutoInit    bool
}

func ParseCreateRepository

func ParseCreateRepository(projectID uuid.UUID, raw CreateRepositoryRequest) (CreateRepositoryInput, error)

type CreateRepositoryRequest

type CreateRepositoryRequest struct {
	Owner       string `json:"owner"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Visibility  string `json:"visibility"`
	AutoInit    *bool  `json:"auto_init"`
}

type ListRepositoriesInput

type ListRepositoriesInput struct {
	ProjectID uuid.UUID
	Query     string
	Page      int
}

func ParseListRepositories

func ParseListRepositories(projectID uuid.UUID, rawQuery string, rawCursor string) (ListRepositoriesInput, error)

type Namespace

type Namespace struct {
	Login string
	Kind  NamespaceKind
}

type NamespaceKind

type NamespaceKind string
const (
	NamespaceKindUser         NamespaceKind = "user"
	NamespaceKindOrganization NamespaceKind = "organization"
)

type Repository

type Repository struct {
	ID            int64
	Name          string
	FullName      string
	Owner         string
	DefaultBranch string
	Visibility    Visibility
	Private       bool
	HTMLURL       string
	CloneURL      string
}

type RepositoryPage

type RepositoryPage struct {
	Repositories []Repository
	NextCursor   string
}

type Visibility

type Visibility string
const (
	VisibilityPrivate Visibility = "private"
	VisibilityPublic  Visibility = "public"
)

func (Visibility) IsValid

func (v Visibility) IsValid() bool

Jump to

Keyboard shortcuts

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