Documentation ¶
Index ¶
- Constants
- Variables
- func New() types.TypeImpl
- type BaseIntotoType
- func (it *BaseIntotoType) CreateProposedEntry(ctx context.Context, version string, props types.ArtifactProperties) (models.ProposedEntry, error)
- func (it BaseIntotoType) DefaultVersion() string
- func (it *BaseIntotoType) IsSupportedVersion(proposedVersion string) bool
- func (it BaseIntotoType) SupportedVersions() []string
- func (it BaseIntotoType) UnmarshalEntry(pe models.ProposedEntry) (types.EntryImpl, error)
- type ProposedIntotoEntryIterator
Constants ¶
View Source
const (
KIND = "intoto"
)
Variables ¶
View Source
var VersionMap = types.NewSemVerEntryFactoryMap()
Functions ¶
Types ¶
type BaseIntotoType ¶
func (*BaseIntotoType) CreateProposedEntry ¶
func (it *BaseIntotoType) CreateProposedEntry(ctx context.Context, version string, props types.ArtifactProperties) (models.ProposedEntry, error)
func (BaseIntotoType) DefaultVersion ¶
func (it BaseIntotoType) DefaultVersion() string
func (*BaseIntotoType) IsSupportedVersion ¶
func (it *BaseIntotoType) IsSupportedVersion(proposedVersion string) bool
IsSupportedVersion returns true if the version can be inserted into the log, and false if not
func (BaseIntotoType) SupportedVersions ¶
func (it BaseIntotoType) SupportedVersions() []string
SupportedVersions returns the supported versions for this type in the order of preference
func (BaseIntotoType) UnmarshalEntry ¶
func (it BaseIntotoType) UnmarshalEntry(pe models.ProposedEntry) (types.EntryImpl, error)
type ProposedIntotoEntryIterator ¶
type ProposedIntotoEntryIterator struct { models.ProposedEntry // contains filtered or unexported fields }
func (ProposedIntotoEntryIterator) Get ¶
func (p ProposedIntotoEntryIterator) Get() models.ProposedEntry
func (ProposedIntotoEntryIterator) GetNext ¶
func (p ProposedIntotoEntryIterator) GetNext() models.ProposedEntry
func (ProposedIntotoEntryIterator) HasNext ¶
func (p ProposedIntotoEntryIterator) HasNext() bool
Click to show internal directories.
Click to hide internal directories.