repository

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	When        time.Time `json:"when"`
	Message     string    `json:"message"`
	Author      string    `json:"author"`
	AuthorEmail string    `json:"author_email"`
	Hash        string    `json:"hash"`
	URL         string    `json:"url"`
}

func (Commit) MarshalEasyJSON

func (v Commit) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Commit) MarshalJSON

func (v Commit) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Commit) UnmarshalEasyJSON

func (v *Commit) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Commit) UnmarshalJSON

func (v *Commit) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FileInfo

type FileInfo struct {
	Name   string
	Time   time.Time
	Status git.StatusCode
}

func (FileInfo) MarshalEasyJSON

func (v FileInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (FileInfo) MarshalJSON

func (v FileInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*FileInfo) UnmarshalEasyJSON

func (v *FileInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*FileInfo) UnmarshalJSON

func (v *FileInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Local

type Local struct {
	Origin            string     `json:"origin"`
	FolderName        string     `json:"folder_name"`    // The folder name of the repository
	CurrentBranch     string     `json:"current_branch"` // The current branch of the repository
	Clean             bool       `json:"clean"`          // True if all files are in unmodified status
	UntrackedFiles    []FileInfo `json:"untracked"`      // Untracked files
	ChangedFiles      []FileInfo `json:"changed"`        // Changed files
	LastModifiedFiles []FileInfo `json:"last_modified"`  // Last all modified files
	Status            string     `json:"current_status"`
	LastCommit        *Commit    `json:"last_commit"`
	Hostname          string     `json:"hostname"`
	FetchTime         time.Time  `json:"fetch_time"`
	Description       string     `json:"description"`
	Language          string     `json:"language"`
	LanguageIcon      string     `json:"language_icon"`
	// contains filtered or unexported fields
}

func New

func New(folderName string, hostName string) (repo *Local, err error)

func (Local) MarshalEasyJSON

func (v Local) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Local) MarshalJSON

func (v Local) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Local) UnmarshalEasyJSON

func (v *Local) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Local) UnmarshalJSON

func (v *Local) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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