papertool

package module
v0.0.0-...-d504e9e Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Project_Paper     = "paper"
	Project_Velocity  = "velocity"
	Project_Waterfall = "waterfall"
)
View Source
const (
	Esc       = "\u001B["
	EraseLine = Esc + "2K"
	SOL       = "\r"
)

Variables

This section is empty.

Functions

func Download

func Download(serverURL *url.URL, project string, version string, build string, artifact *Artifact, dstdir string, replace bool, quiet bool) error

func String

func String(v interface{}) string

Types

type Application

type Application struct {
	Name   *string `json:"name"`
	Sha256 *string `json:"sha256"`
}

type Artifact

type Artifact struct {
	Application *Application `json:"application"`
}

type Build

type Build struct {
	ProjectID   *string   `json:"project_id"`
	ProjectName *string   `json:"project_name"`
	Build       *float64  `json:"build"`
	Time        *string   `json:"time"`
	Channel     *string   `json:"channel"`
	Promoted    *bool     `json:"promoted"`
	Changes     []*Change `json:"changes"`
	Artifact    *Artifact `json:"downloads"`
	// contains filtered or unexported fields
}

func GetBuild

func GetBuild(src *url.URL, project string, version string, build string) (b *Build, err error)

func (*Build) Raw

func (build *Build) Raw() []byte

type Builds

type Builds struct {
	ProjectID   *string  `json:"project_id"`
	ProjectName *string  `json:"project_name"`
	Version     *string  `json:"version"`
	Builds      []*Build `json:"builds"`
	// contains filtered or unexported fields
}

func GetBuilds

func GetBuilds(src *url.URL, project string, version string) (builds *Builds, err error)

func (*Builds) FindBuild

func (builds *Builds) FindBuild(build string) *Build

func (*Builds) FindBuildIndex

func (builds *Builds) FindBuildIndex(build string) int

func (*Builds) Raw

func (builds *Builds) Raw() []byte

type Change

type Change struct {
	Commit  *string `json:"commit"`
	Summary *string `json:"summary"`
	Message *string `json:"message"`
}

type JsonTime

type JsonTime time.Time

func (JsonTime) MarshalJSON

func (t JsonTime) MarshalJSON() ([]byte, error)

func (JsonTime) String

func (t JsonTime) String() string

func (*JsonTime) UnmarshalJSON

func (t *JsonTime) UnmarshalJSON(s []byte) (err error)

type MetadataSyntaxError

type MetadataSyntaxError struct {
	Raw string

	Offset int64
	// contains filtered or unexported fields
}

func (*MetadataSyntaxError) Error

func (e *MetadataSyntaxError) Error() string

type StatusWriter

type StatusWriter struct {
	// contains filtered or unexported fields
}

func NewStatusWriter

func NewStatusWriter(name string, quiet bool) *StatusWriter

func (*StatusWriter) Write

func (sw *StatusWriter) Write(data []byte) (int, error)

type Versions

type Versions struct {
	ProjectID     *string  `json:"project_id"`
	ProjectName   *string  `json:"project_name"`
	VersionGroups []string `json:"version_groups"`
	Versions      []string `json:"versions"`
	// contains filtered or unexported fields
}

func GetVersions

func GetVersions(src *url.URL, project string) (versions *Versions, err error)

func (*Versions) Raw

func (versions *Versions) Raw() []byte

Jump to

Keyboard shortcuts

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