Documentation
¶
Index ¶
- type Error
- type Repo
- type ScorecardCheck
- type ScorecardCheckDocumentation
- func (m *ScorecardCheckDocumentation) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ScorecardCheckDocumentation) MarshalBinary() ([]byte, error)
- func (m *ScorecardCheckDocumentation) UnmarshalBinary(b []byte) error
- func (m *ScorecardCheckDocumentation) Validate(formats strfmt.Registry) error
- type ScorecardResult
- type ScorecardVersion
- type VerifiedScorecardResult
- func (m *VerifiedScorecardResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *VerifiedScorecardResult) MarshalBinary() ([]byte, error)
- func (m *VerifiedScorecardResult) UnmarshalBinary(b []byte) error
- func (m *VerifiedScorecardResult) Validate(formats strfmt.Registry) error
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 ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validates this repo based on context it is used
func (*Repo) MarshalBinary ¶
MarshalBinary interface implementation
func (*Repo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
type ScorecardCheckDocumentation ¶
type ScorecardCheckDocumentation struct {
// short
Short string `json:"short,omitempty"`
// url
URL string `json:"url,omitempty"`
}
ScorecardCheckDocumentation scorecard check documentation
swagger:model ScorecardCheckDocumentation
func (*ScorecardCheckDocumentation) ContextValidate ¶
func (m *ScorecardCheckDocumentation) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
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
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 ¶
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
type VerifiedScorecardResult ¶
type VerifiedScorecardResult struct {
// access token
AccessToken string `json:"accessToken,omitempty"`
// branch
Branch string `json:"branch,omitempty"`
// result
Result string `json:"result,omitempty"`
// tlog index
TlogIndex int64 `json:"tlogIndex,omitempty"`
}
VerifiedScorecardResult verified scorecard result
swagger:model VerifiedScorecardResult
func (*VerifiedScorecardResult) ContextValidate ¶
func (m *VerifiedScorecardResult) ContextValidate(ctx context.Context, formats 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