Help us shape the future of Go! Take the 2026 Go Developer Survey

summary

package
v2.58.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func CreateBuildInfoSummaryReportString

func CreateBuildInfoSummaryReportString(success, failed int, sha256 string, err error) (string, error)

func PrintBuildInfoSummaryReport

func PrintBuildInfoSummaryReport(succeeded bool, sha256 string, originalErr error) error

Types

type BuildInfoSummary

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

func NewBuildInfoSummary

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

func (*BuildInfoSummary) AddSha256

func (bis *BuildInfoSummary) AddSha256(sha256Str string)

func (*BuildInfoSummary) Marshal

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

type Sha256

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

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

type Summary

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

func GetSummaryReport

func GetSummaryReport(success, failed int, failNoOp bool, 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