Documentation ¶
Index ¶
- Constants
- type About
- type BuildBinary
- type BuildBinaryList
- type BuildDimension
- type BuildInfo
- type BuildJobStatus
- type BuildReason
- type BuildResult
- type BuildResultList
- type BuildResultQuery
- type BuildStatistics
- type BuildStatus
- type BuildSummary
- type Client
- func (c *Client) GetAbout() (about About, err error)
- func (c *Client) GetArchitectures(proj string, repo string) ([]string, error)
- func (c *Client) GetBuild(proj string) ([]string, error)
- func (c *Client) GetBuildInfo(proj, repo, arch, pkg string) (*BuildInfo, error)
- func (c *Client) GetBuildResult(proj string, q BuildResultQuery) (*BuildResultList, error)
- func (c *Client) GetBuildStatistics(proj, repo, arch, pkg string) (*BuildStatistics, error)
- func (c *Client) GetPackageBinaries(proj, repo, arch, pkg string) (*BuildBinaryList, error)
- func (c *Client) GetPackageBuildLog(proj, repo, arch, pkg string) (*string, error)
- func (c *Client) GetPackageBuildReason(proj, repo, arch, pkg string) (*BuildReason, error)
- func (c *Client) GetPackageBuildStatus(proj, repo, arch, pkg string) (*BuildStatus, error)
- func (c *Client) GetPackageJobStatus(proj, repo, arch, pkg string) (*BuildJobStatus, error)
- func (c *Client) GetPackages(proj string) ([]string, error)
- func (c *Client) GetRaw(url string) (io.ReadCloser, error)
- func (c *Client) GetRequest(id string) (*Request, error)
- func (c *Client) GetRequestCollection(q RequestCollectionQuery) (*RequestCollection, error)
- func (c *Client) GetRequests() ([]string, error)
- func (c *Client) GetSourceFile(project string, pkg string, file string) ([]byte, error)
- type Directory
- type Entry
- type Issue
- type IssueOwner
- type Package
- type PackageRef
- type Request
- type RequestAction
- type RequestCollection
- type RequestCollectionQuery
- type RequestHistory
- type RequestState
- type Review
Constants ¶
View Source
const ( BuildResultQueryViewStatus = "status" BuildResultQueryViewBinaryList = "binarylist" BuildResultQueryViewSummary = "summary" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildBinary ¶
type BuildBinaryList ¶
type BuildBinaryList struct { Package string `xml:"package,attr"` Binary []BuildBinary `xml:"binary"` }
type BuildDimension ¶
func (BuildDimension) String ¶
func (b BuildDimension) String() string
type BuildInfo ¶
type BuildInfo struct { Project string `xml:"project,attr"` Repository string `xml:"repository,attr"` Package string `xml:"package,attr"` DownloadUrl string `xml:"downloadurl,attr"` Arch string `xml:"arch"` SrcMD5 string `xml:"srcmd5"` VerifyMD5 string `xml:"VerifyMD5"` Rev int `xml:"rev"` Specfile string `xml:"specfile"` Release string `xml:"release"` VersRel string `xml:"versrel"` SubPackages []string `xml:"subpack"` BinaryDependencies []struct { Name string `xml:"name,attr"` Version string `xml:"version,attr"` Release string `xml:"release,attr"` Arch string `xml:"arch,attr"` Project string `xml:"project,attr"` Repository string `xml:"repository,attr"` } `xml:"bdep"` }
type BuildJobStatus ¶
type BuildReason ¶
type BuildResult ¶
type BuildResult struct { Project string `xml:"project,attr"` Repository string `xml:"repository,attr"` Arch string `xml:"arch,attr"` Code string `xml:"code,attr"` State string `xml:"state,attr"` Status []BuildStatus `xml:"status"` BinaryList []BuildBinaryList `xml:"binarylist"` Summary BuildSummary `xml:"summary"` }
type BuildResultList ¶
type BuildResultList struct { State string `xml:"state,attr"` Results []BuildResult `xml:"result"` }
type BuildResultQuery ¶
type BuildResultQuery struct { // View specifies which sections should be included in the result list. // - [BuildResultQueryViewStatus]: Include detailed infos about the build status. // - [BuildResultQueryViewSummary]: Include the summary of the status values. // - [BuildResultQueryViewBinaryList]: Include a list of generated binary files. // If not specified the default value is [BuildResultQueryViewStatus]. View string `url:"view,omitempty"` Package string `url:"package,omitempty"` Arch string `url:"arch,omitempty"` Repository string `url:"repository,omitempty"` LastBuild bool `url:"lastbuild,omitempty"` LocalLink bool `url:"locallink,omitempty"` MultiBuild bool `url:"multibuild,omitempty"` }
type BuildStatistics ¶
type BuildStatistics struct { Disk struct { Usage struct { Size BuildDimension `xml:"size"` IoRequests string `xml:"io_requests"` IoSectors string `xml:"io_sectors"` } `xml:"usage"` } `xml:"disk"` Memory struct { Usage struct { Size BuildDimension `xml:"size"` } `xml:"usage"` } `xml:"memory"` Times struct { Total struct { Time BuildDimension `xml:"time"` } `xml:"total"` Preinstall struct { Time BuildDimension `xml:"time"` } `xml:"preinstall"` } `xml:"times"` Download struct { Size BuildDimension `xml:"size"` Binaries int `xml:"binaries"` CacheHits int `xml:"cachehits"` } `xml:"download"` }
type BuildStatus ¶
type BuildSummary ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetArchitectures ¶
GetArchitectures returns a list of enabled architectures for a specific repository in a specific project
func (*Client) GetBuild ¶
GetBuild returns a simple listing of all repositories for the specified project.
If project is an empty string, returns a listing of ALL repositories in ALL projects.
func (*Client) GetBuildInfo ¶
func (*Client) GetBuildResult ¶
func (c *Client) GetBuildResult(proj string, q BuildResultQuery) (*BuildResultList, error)
func (*Client) GetBuildStatistics ¶
func (c *Client) GetBuildStatistics(proj, repo, arch, pkg string) (*BuildStatistics, error)
func (*Client) GetPackageBinaries ¶
func (c *Client) GetPackageBinaries(proj, repo, arch, pkg string) (*BuildBinaryList, error)
func (*Client) GetPackageBuildLog ¶
func (*Client) GetPackageBuildReason ¶
func (c *Client) GetPackageBuildReason(proj, repo, arch, pkg string) (*BuildReason, error)
func (*Client) GetPackageBuildStatus ¶
func (c *Client) GetPackageBuildStatus(proj, repo, arch, pkg string) (*BuildStatus, error)
func (*Client) GetPackageJobStatus ¶
func (c *Client) GetPackageJobStatus(proj, repo, arch, pkg string) (*BuildJobStatus, error)
func (*Client) GetRaw ¶
func (c *Client) GetRaw(url string) (io.ReadCloser, error)
GetRaw returns the raw response body for a given URL
This is useful for downloading files or other content without parsing it into the corresponding struct.
The request is authenticated using the credentials provided when creating the client.
func (*Client) GetRequestCollection ¶
func (c *Client) GetRequestCollection(q RequestCollectionQuery) (*RequestCollection, error)
func (*Client) GetRequests ¶
type Directory ¶
func (Directory) GetEntryNames ¶
type Issue ¶
type Issue struct { Change string `xml:"change,attr"` CreatedAt string `xml:"created_at"` UpdatedAt string `xml:"updated_at"` Name string `xml:"name"` Tracker string `xml:"tracker"` Label string `xml:"label"` Url string `xml:"url"` State string `xml:"state"` Summary string `xml:"summary"` Owner IssueOwner `xml:"owner"` }
type IssueOwner ¶
type PackageRef ¶
type Request ¶
type Request struct { Id string `xml:"id,attr"` Creator string `xml:"creator,attr"` Action []RequestAction `xml:"action"` State RequestState `xml:"state"` Review []Review `xml:"review"` History []RequestHistory `xml:"history"` Description string `xml:"description"` }
type RequestAction ¶
type RequestAction struct { Type string `xml:"type,attr"` Source PackageRef `xml:"source"` Target PackageRef `xml:"target"` }
type RequestCollection ¶
type RequestCollectionQuery ¶
type RequestCollectionQuery struct { User string `url:"user,omitempty"` Project string `url:"project,omitempty"` Package string `url:"package,omitempty"` States []string `url:"states,omitempty" del:","` Types []string `url:"types,omitempty" del:","` Roles []string `url:"roles,omitempty" del:","` WithHistory bool `url:"withhistory,int,omitempty"` WithFullHistory bool `url:"withfullhistory,int,omitempty"` Limit int `url:"limit,omitempty"` Offset int `url:"offset,omitempty"` Ids []string `url:"ids,omitempty" del:","` }
type RequestHistory ¶
type RequestState ¶
Click to show internal directories.
Click to hide internal directories.