summary

package
v1.52.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatusTypes = []string{
	"success",
	"failure",
}

Functions

This section is empty.

Types

type BuildInfoSummary added in v1.47.0

type BuildInfoSummary struct {
	Summary
	Sha256Array []Sha256 `json:"files"`
}

func NewBuildInfoSummary added in v1.47.0

func NewBuildInfoSummary(success, failed int, sha256 string, err error) *BuildInfoSummary

func (*BuildInfoSummary) AddSha256 added in v1.47.0

func (bis *BuildInfoSummary) AddSha256(sha256Str string)

func (*BuildInfoSummary) Marshal added in v1.47.0

func (bis *BuildInfoSummary) Marshal() ([]byte, error)

type Sha256 added in v1.47.0

type Sha256 struct {
	Sha256Str string `json:"sha256"`
}

type StatusType

type StatusType int
const (
	Success StatusType = iota
	Failure
)

func (StatusType) MarshalJSON

func (statusType StatusType) MarshalJSON() ([]byte, error)

func (*StatusType) UnmarshalJSON added in v1.47.0

func (statusType *StatusType) UnmarshalJSON(b []byte) error

type Summary

type Summary struct {
	Status StatusType `json:"status"`
	Totals *Totals    `json:"totals"`
}

func GetSummaryReport added in v1.47.0

func GetSummaryReport(success, failed int, err error) *Summary

func NewSummary added in v1.47.0

func NewSummary(err error) *Summary

func (*Summary) Marshal

func (summary *Summary) Marshal() ([]byte, error)

type Totals

type Totals struct {
	Success int `json:"success"`
	Failure int `json:"failure"`
}

Jump to

Keyboard shortcuts

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