brew

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brew

type Brew struct {
	URL    string
	Client *xmlrpc.Client
}

Brew client API structure

func NewClient

func NewClient(url string) (brew Brew)

NewClient - create new Brew client for giver URL

func (*Brew) GetBuildInfo

func (brew *Brew) GetBuildInfo(nvr int) (result BuildInfo)

GetBuildInfo - returns metadata of given build object

func (*Brew) GetRPMInfo

func (brew *Brew) GetRPMInfo(nvra string) (result RPMInfo)

GetRPMInfo - returns metadata of given rpm object

type BuildInfo

type BuildInfo struct {
	PackageName string `xmlrpc:"package_name"`
	Epoch       *int   `xmlrpc:"epoch"`
	Version     string `xmlrpc:"version"`
	NVR         string `xmlrpc:"nvr"`
	Name        string `xmlrpc:"name"`
	VolumeName  string `xmlrpc:"volume_name"`
	Release     string `xmlrpc:"release"`
}

type Digests

type Digests struct {
	ApplicationVndDockerDistributionManifestListV2xmlrpc string `xmlrpc:"application/vnd.docker.distribution.manifest.list.v2+xmlrpc"`
}

type Extra

type Extra struct {
	Submitter           string `xmlrpc:"submitter"`
	Image               Image  `xmlrpc:"image"`
	ContainerKojiTaskID int64  `xmlrpc:"container_koji_task_id"`
}

type Image

type Image struct {
	MediaTypes        []string                    `xmlrpc:"media_types"`
	Help              interface{}                 `xmlrpc:"help"`
	Index             Index                       `xmlrpc:"index"`
	Autorebuild       bool                        `xmlrpc:"autorebuild"`
	Isolated          bool                        `xmlrpc:"isolated"`
	ParentBuildID     int64                       `xmlrpc:"parent_build_id"`
	ParentImageBuilds map[string]ParentImageBuild `xmlrpc:"parent_image_builds"`
}

type Index

type Index struct {
	Pull    []string `xmlrpc:"pull"`
	Digests Digests  `xmlrpc:"digests"`
	Tags    []string `xmlrpc:"tags"`
}

type ParentImageBuild

type ParentImageBuild struct {
	ID  int64  `xmlrpc:"id"`
	NVR string `xmlrpc:"nvr"`
}

type RPMInfo

type RPMInfo struct {
	BuildID          int         `xmlrpc:"build_id"`
	Name             string      `xmlrpc:"name"`
	Extra            interface{} `xmlrpc:"extra"`
	ExternalRepoID   int         `xmlrpc:"external_repo_id"`
	Buildtime        int         `xmlrpc:"buildtime"`
	ID               int         `xmlrpc:"id"`
	Epoch            int         `xmlrpc:"epoch"`
	Version          string      `xmlrpc:"version"`
	BuildrootID      int         `xmlrpc:"buildroot_id"`
	MetadataOnly     bool        `xmlrpc:"metadata_only"`
	Release          string      `xmlrpc:"release"`
	Arch             string      `xmlrpc:"arch"`
	Payloadhash      string      `xmlrpc:"payloadhash"`
	ExternalRepoName string      `xmlrpc:"external_repo_name"`
	Size             int         `xmlrpc:"size"`
}

Jump to

Keyboard shortcuts

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