Documentation
¶
Index ¶
- func Export(s ExportableStatement) toto.Statement
- type Cmp
- type ComparablePredicate
- type EncodeFunc
- type ExportableStatement
- type GenericStatement
- func (a GenericStatement[T]) Compare(b Statement) Cmp
- func (s GenericStatement[T]) Encode(w io.Writer) error
- func (s GenericStatement[T]) EncodeWith(e EncodeFunc) error
- func (s GenericStatement[T]) Export() toto.Statement
- func (s GenericStatement[T]) ExportSubject() []toto.Subject
- func (s GenericStatement[T]) GetSubject() Subjects
- func (s *GenericStatement[T]) SetSubjects(f func(subject *Subject) error) error
- type Mutations
- type PathCheckSummary
- type PathCheckSummaryCollection
- type PathCheckSummaryCommon
- type PathChecker
- type PathCheckerRegistryKey
- type Predicate
- type Statement
- type Statements
- type Subject
- type Subjects
- type SummaryAnnotation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Export ¶
func Export(s ExportableStatement) toto.Statement
Types ¶
type ComparablePredicate ¶
type EncodeFunc ¶
type ExportableStatement ¶
type GenericStatement ¶
func MakeStatement ¶
func (GenericStatement[T]) EncodeWith ¶
func (s GenericStatement[T]) EncodeWith(e EncodeFunc) error
func (GenericStatement[T]) ExportSubject ¶
func (GenericStatement[T]) GetSubject ¶
func (s GenericStatement[T]) GetSubject() Subjects
func (*GenericStatement[T]) SetSubjects ¶
type Mutations ¶
type Mutations = map[PathCheckerRegistryKey]digest.SHA256
type PathCheckSummary ¶
type PathCheckSummary interface {
ProviderName() string
Common() PathCheckSummaryCommon
Full() interface{}
SameRepo(PathCheckSummary) bool
}
type PathCheckSummaryCollection ¶
type PathCheckSummaryCollection struct {
Providers []string `json:"providers"`
EntryGroups [][]PathCheckSummary `json:"entryGroups"`
}
func MakePathCheckSummaryCollection ¶
func MakePathCheckSummaryCollection(entries ...PathChecker) (*PathCheckSummaryCollection, error)
func (PathCheckSummaryCollection) Compare ¶
func (a PathCheckSummaryCollection) Compare(b PathCheckSummaryCollection) int
func (PathCheckSummaryCollection) Subject ¶
func (c PathCheckSummaryCollection) Subject() Subjects
type PathCheckSummaryCommon ¶
type PathCheckSummaryCommon struct {
Unmodified bool `json:"unmodified"`
Path string `json:"path,omitempty"`
URI string `json:"uri,omitempty"`
IsDir bool `json:"isDir,omitempty"`
Digest digest.SHA256 `json:"digest,omitempty"`
}
func (PathCheckSummaryCommon) Common ¶
func (s PathCheckSummaryCommon) Common() PathCheckSummaryCommon
type PathChecker ¶
type PathCheckerRegistryKey ¶
type Predicate ¶
type Predicate[T any] struct { Type string `json:"predicateType"` ComparablePredicate[T] `json:"predicate"` }
func (Predicate[T]) GetPredicate ¶
type Statements ¶
type Statements []Statement
func (Statements) EncodeWith ¶
func (s Statements) EncodeWith(encoder EncodeFunc) error
func (Statements) Export ¶
func (s Statements) Export() []toto.Statement
func (Statements) MakeSummaryAnnotation ¶
func (s Statements) MakeSummaryAnnotation() SummaryAnnotation
func (Statements) MarshalSummaryAnnotation ¶
func (s Statements) MarshalSummaryAnnotation() (string, error)
type Subject ¶
func (Subject) GetSubjectDigest ¶
func (Subject) GetSubjectName ¶
func (Subject) MarshalJSON ¶
func (*Subject) UnmarshalJSON ¶
type Subjects ¶
type Subjects []Subject
func MakeSubjects ¶
func (Subjects) MarshalJSON ¶
func (*Subjects) UnmarshalJSON ¶
type SummaryAnnotation ¶
type SummaryAnnotation struct {
NumStamentes int `json:"numStamentes"`
PredicateTypes []string `json:"predicateTypes"`
Subjects Subjects `json:"subject"`
}
Click to show internal directories.
Click to hide internal directories.