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

models

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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(ctx context.Context, formats 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(formats 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(ctx context.Context, formats 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 {

	// 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

func (*ScorecardCheckDocumentation) Validate

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

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(ctx context.Context, formats 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 {

	// 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

func (*VerifiedScorecardResult) Validate

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

Validate validates this verified scorecard result

Jump to

Keyboard shortcuts

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