types

package
v0.0.0-...-821b0f8 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2013 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package types is where exportable API structures go. This is so we can share the XML marshalling and unmarshalling with the services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	XMLName  xml.Name  `xml:"app" datastore:"-" json:"-"`
	Id       string    `xml:"id,attr"`
	Version  string    `xml:"version,attr"`
	Track    string    `xml:"track,attr"`
	Date     time.Time `xml:"-"`
	IsActive bool      `xml:"-"`
	IsCanary bool      `xml:"canary,attr,omitempty"`
}

type Package

type Package struct {
	XMLName              xml.Name `xml:"package" datastore:"-" json:"-"`
	Name                 string   `xml:"name,attr"`      // Package filename
	Size                 string   `xml:"size,attr"`      // Size of the file (in bytes)
	Path                 string   `xml:"path,attr"`      // Path from the root to the file
	Sha1Sum              string   `xml:"sha1sum,attr"`   // SHA-1 hash of the file
	Sha256Sum            string   `xml:"sha256sum,attr"` // Sha-256 hash of the file (extension)
	Required             bool     `xml:"required,attr"`
	MetadataSignatureRsa string   `xml:"MetadataSignatureRsa,attr,omitempty" json:"metadata_signature_rsa"`
	MetadataSize         string   `xml:"MetadataSize,attr,omitempty" json:"metadata_size"`
}

type Version

type Version struct {
	XMLName xml.Name `xml:"version" datastore:"-" json:"-"`
	App     *App     `xml:"app"`
	Package *Package `xml:"package"`
}

Jump to

Keyboard shortcuts

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