api

package
v0.0.0-...-69363b5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoResults = "No results"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

type Branch struct {
	Name  string
	Links Links
}

type CodeItem

type CodeItem struct {
	File                File
	Type                string
	Content_matches     []ContentMatch
	Patch_matches       []PathMatch
	Content_match_count int
}

type CodeSearchResponse

type CodeSearchResponse struct {
	Next              string
	Values            []CodeItem
	Size              int
	Page              int
	PageLen           int
	Query_Substituted bool
}

type Comment

type Comment struct {
	Links      Links
	User       User
	Content    Content
	Created_On string
	Updated_On string
	Inline     Inline
	Id         int
	Deleted    bool
	Pending    bool
}

type Comments

type Comments struct {
	Values []Comment
}

type Commit

type Commit struct {
	Hash  string
	Links Links
}

type Configuration_Source

type Configuration_Source struct {
	Source Branch
	URI    string
}

type Content

type Content struct {
	Type string
	Raw  string
	Html string
}

type ContentMatch

type ContentMatch struct {
	Lines []Line
}

type File

type File struct {
	Path   string
	Type   string
	Links  Links
	Source string
}

type FileMetaResponse

type FileMetaResponse struct {
	Commit       Commit
	Links        Links
	Path         string
	Type         string
	Escaped_path string
	Mimetype     string
	Size         int
}

type Inline

type Inline struct {
	Path string
	From int
	To   int
}

type Line

type Line struct {
	Segments []Segment
	Line     int
}
type Link struct {
	Href string
	Name string
}
type Links struct {
	Self     Link
	Html     Link
	Commits  Link
	Approve  Link
	Diff     Link
	Diffstat Link
	Comments Link
	Activity Link
	Merge    Link
	Decline  Link
}

type Participant

type Participant struct {
	Type     string
	User     User
	Role     string
	Approved bool
}

type PathMatch

type PathMatch struct{}

type Pipeline

type Pipeline struct {
	Target                Branch
	Links                 Links
	State                 PipelineState
	Creator               User
	Type                  string
	UUID                  string
	Created_On            string
	Completed_On          string
	Configuration_Sources []Configuration_Source
	Repository            Repository
	Build_Number          int
	Build_Seconds_Used    int
}

type PipelineError

type PipelineError struct {
	Type    string
	Key     string
	Message string
}

type PipelineResult

type PipelineResult struct {
	Name  string
	Type  string
	Error PipelineError
}

type PipelineState

type PipelineState struct {
	Name   string
	Type   string
	Result PipelineResult
}

type Pipelines

type Pipelines struct {
	Previous string
	Next     string
	Values   []Pipeline
	Size     int
	Page     int
}

type Pullrequest

type Pullrequest struct {
	Merge_Commit        Commit
	Links               Links
	Rendered            Rendered
	Author              User
	Summary             TextElem
	Closed_By           Type
	State               string
	Updated_On          string
	Title               string
	Reason              string
	Created_On          string
	Comments            Comments
	Participants        []Participant
	Reviewers           []User
	Source              Source
	Comment_Count       int
	Task_Count          int
	Id                  int
	Close_Source_Branch bool
}

type Pullrequests

type Pullrequests struct {
	Previous string
	Next     string
	Values   []Pullrequest
	Size     int
	Page     int
}

type Rendered

type Rendered struct {
	Title       TextElem
	Description TextElem
	Reason      TextElem
}

type Repositories

type Repositories struct {
	Previous string
	Next     string
	Values   []Repository
	Size     int
	Page     int
}

type Repository

type Repository struct {
	Links       Links
	Owner       User
	Project     Type
	Mainbranch  Type
	Language    string
	Fork_Policy string
	Full_Name   string
	Description string
	Name        string
	Readme      string
	Created_On  string
	Updated_On  string
	Size        int
	Is_Private  bool
	Has_Wiki    bool
}

type Segment

type Segment struct {
	Text  string
	Match bool
}

type Source

type Source struct {
	Branch     Branch
	Commit     Commit
	Repository Repository
}

type TextElem

type TextElem struct {
	Raw    string
	Markup string
	Html   string
}

type Type

type Type struct {
	Name string
	Type string
}

type User

type User struct {
	Display_Name string
	Nickname     string
	UUID         string
	Account_Id   string
	Type         string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳