sourcehut

package
v0.10.30 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(conf *types.Conf) ([]types.Repo, bool)

Get TODO.

func GetOrCreate added in v0.10.18

func GetOrCreate(destination types.GenRepo, repo types.Repo) (string, error)

Types

type Author added in v0.10.14

type Author struct {
	Email string `json:"email"`
	Name  string `json:"name"`
}

type Commits added in v0.10.14

type Commits struct {
	Next           interface{} `json:"next"`
	Results        []Results   `json:"results"`
	Total          int         `json:"total"`
	ResultsPerPage int         `json:"results_per_page"`
}

type Committer added in v0.10.14

type Committer struct {
	Email string `json:"email"`
	Name  string `json:"name"`
}

type PostRepo added in v0.10.18

type PostRepo struct {
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
	Visibility  string `json:"visibility,omitempty"`
}

type Ref

type Ref struct {
	Target    string        `json:"target"`
	Name      string        `json:"name"`
	Artifacts []interface{} `json:"artifacts"`
}

type Refs

type Refs struct {
	Next           string `json:"next"`
	Results        []Ref  `json:"results"`
	Total          int    `json:"total"`
	ResultsPerPage int    `json:"results_per_page"`
}

type Repositories

type Repositories struct {
	Next           string       `json:"next"`
	Results        []Repository `json:"results"`
	Total          int          `json:"total"`
	ResultsPerPage int          `json:"results_per_page"`
}

type Repository

type Repository struct {
	ID      int       `json:"id"`
	Created time.Time `json:"created"`
	Updated time.Time `json:"updated"`
	Name    string    `json:"name"`
	Owner   struct {
		CanonicalName string `json:"canonical_name"`
		Name          string `json:"name"`
	} `json:"owner"`
	Description string `json:"description"`
	Visibility  string `json:"visibility"`
}

type Results added in v0.10.14

type Results struct {
	ID        string      `json:"id"`
	ShortID   string      `json:"short_id"`
	Author    Author      `json:"author"`
	Committer Committer   `json:"committer"`
	Timestamp time.Time   `json:"timestamp"`
	Message   string      `json:"message"`
	Tree      string      `json:"tree"`
	Parents   []string    `json:"parents"`
	Signature interface{} `json:"signature"`
}

type User

type User struct {
	CanonicalName string      `json:"canonical_name"`
	Name          string      `json:"name"`
	Email         string      `json:"email"`
	URL           interface{} `json:"url"`
	Location      interface{} `json:"location"`
	Bio           interface{} `json:"bio"`
}

Jump to

Keyboard shortcuts

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