Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSignature ¶ added in v2.1.0
func PayloadFromEnvelope ¶ added in v2.1.0
func TagFromGitHubRef ¶
func ValidateGitHubTagRef ¶
Types ¶
type TrustedBuilderID ¶
type TrustedBuilderID struct {
// contains filtered or unexported fields
}
func TrustedBuilderIDNew ¶
func TrustedBuilderIDNew(builderID string) (*TrustedBuilderID, error)
TrustedBuilderIDNew creates a new BuilderID structure.
func (*TrustedBuilderID) Matches ¶
func (b *TrustedBuilderID) Matches(builderID string, allowRef bool) error
Matches matches the builderID string against the reference builderID. If the builderID contains a semver, the full builderID must match. Otherwise, only the name needs to match. `allowRef: true` indicates that the matching need not be an eaxct match. In this case, if the BuilderID version is a GitHub ref `refs/tags/name`, we will consider it equal to user-provided builderID `name`.
func (*TrustedBuilderID) Name ¶
func (b *TrustedBuilderID) Name() string
func (*TrustedBuilderID) String ¶
func (b *TrustedBuilderID) String() string
func (*TrustedBuilderID) Version ¶
func (b *TrustedBuilderID) Version() string
Click to show internal directories.
Click to hide internal directories.