models

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(_ strfmt.Registry) error

Validate validates this error

type Repo

type Repo struct {

	// respository that was analyzed
	Name string `json:"name,omitempty"`

	// SHA1 value of the analyzed commit expressed as hexadecimal
	// Pattern: ^[0-9a-fA-F]{40}$
	Commit string `json:"commit,omitempty"`
}

Repo repo

swagger:model Repo

func (*Repo) ContextValidate

func (m *Repo) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate validates this repo based on context it is used

func (*Repo) MarshalBinary

func (m *Repo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Repo) UnmarshalBinary

func (m *Repo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Repo) Validate

func (m *Repo) Validate(formats strfmt.Registry) error

Validate validates this repo

type ScorecardCheck

type ScorecardCheck struct {

	// name
	Name string `json:"name,omitempty"`

	// score
	Score int64 `json:"score"`

	// reason
	Reason string `json:"reason,omitempty"`

	// details
	Details []string `json:"details"`

	// documentation
	Documentation *ScorecardCheckDocumentation `json:"documentation,omitempty"`
}

ScorecardCheck scorecard check

swagger:model ScorecardCheck

func (*ScorecardCheck) ContextValidate

func (m *ScorecardCheck) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this scorecard check based on the context it is used

func (*ScorecardCheck) MarshalBinary

func (m *ScorecardCheck) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ScorecardCheck) UnmarshalBinary

func (m *ScorecardCheck) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ScorecardCheck) Validate

func (m *ScorecardCheck) Validate(formats strfmt.Registry) error

Validate validates this scorecard check

type ScorecardCheckDocumentation

type ScorecardCheckDocumentation struct {

	// url
	URL string `json:"url,omitempty"`

	// short
	Short string `json:"short,omitempty"`
}

ScorecardCheckDocumentation scorecard check documentation

swagger:model ScorecardCheckDocumentation

func (*ScorecardCheckDocumentation) ContextValidate

ContextValidate validates this scorecard check documentation based on context it is used

func (*ScorecardCheckDocumentation) MarshalBinary

func (m *ScorecardCheckDocumentation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ScorecardCheckDocumentation) UnmarshalBinary

func (m *ScorecardCheckDocumentation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ScorecardCheckDocumentation) Validate

Validate validates this scorecard check documentation

type ScorecardResult

type ScorecardResult struct {

	// date
	Date string `json:"date,omitempty"`

	// repo
	Repo *Repo `json:"repo,omitempty"`

	// scorecard
	Scorecard *ScorecardVersion `json:"scorecard,omitempty"`

	// Aggregate score of the repository
	Score float64 `json:"score"`

	// checks
	Checks []*ScorecardCheck `json:"checks"`

	// metadata
	Metadata string `json:"metadata,omitempty"`
}

ScorecardResult scorecard result

swagger:model ScorecardResult

func (*ScorecardResult) ContextValidate

func (m *ScorecardResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this scorecard result based on the context it is used

func (*ScorecardResult) MarshalBinary

func (m *ScorecardResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ScorecardResult) UnmarshalBinary

func (m *ScorecardResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ScorecardResult) Validate

func (m *ScorecardResult) Validate(formats strfmt.Registry) error

Validate validates this scorecard result

type ScorecardVersion

type ScorecardVersion struct {

	// Scorecard version used for this analysis
	Version string `json:"version,omitempty"`

	// SHA1 value of the Scorecard commit used for analysis
	// Pattern: ^[0-9a-fA-F]{40}$
	Commit string `json:"commit,omitempty"`
}

ScorecardVersion scorecard version

swagger:model ScorecardVersion

func (*ScorecardVersion) ContextValidate

func (m *ScorecardVersion) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate validates this scorecard version based on context it is used

func (*ScorecardVersion) MarshalBinary

func (m *ScorecardVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ScorecardVersion) UnmarshalBinary

func (m *ScorecardVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ScorecardVersion) Validate

func (m *ScorecardVersion) Validate(formats strfmt.Registry) error

Validate validates this scorecard version

type VerifiedScorecardResult

type VerifiedScorecardResult struct {

	// result
	Result string `json:"result,omitempty"`

	// branch
	Branch string `json:"branch,omitempty"`

	// access token
	AccessToken string `json:"accessToken,omitempty"`

	// tlog index
	TlogIndex int64 `json:"tlogIndex,omitempty"`
}

VerifiedScorecardResult verified scorecard result

swagger:model VerifiedScorecardResult

func (*VerifiedScorecardResult) ContextValidate

func (m *VerifiedScorecardResult) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate validates this verified scorecard result based on context it is used

func (*VerifiedScorecardResult) MarshalBinary

func (m *VerifiedScorecardResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VerifiedScorecardResult) UnmarshalBinary

func (m *VerifiedScorecardResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VerifiedScorecardResult) Validate

Validate validates this verified scorecard result

type VersionInfo added in v0.3.0

type VersionInfo struct {

	// scorecard-infra release, or git describe output for other builds
	Version string `json:"version,omitempty"`

	// scorecard-infra commit the server was built from
	Commit string `json:"commit,omitempty"`

	// Module and version of the workflow parser used to verify uploads
	Parser string `json:"parser,omitempty"`
}

VersionInfo version info

swagger:model VersionInfo

func (*VersionInfo) ContextValidate added in v0.3.0

func (m *VersionInfo) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate validates this version info based on context it is used

func (*VersionInfo) MarshalBinary added in v0.3.0

func (m *VersionInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VersionInfo) UnmarshalBinary added in v0.3.0

func (m *VersionInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VersionInfo) Validate added in v0.3.0

func (m *VersionInfo) Validate(_ strfmt.Registry) error

Validate validates this version info

Jump to

Keyboard shortcuts

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