Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NamespaceLabelConfigMap is the Namespace label applied to a configmap // containing signatures. NamespaceLabelConfigMap = "openshift-config-managed" // ReleaseLabelConfigMap is a label applied to a configmap inside the // openshift-config-managed namespace that indicates it contains signatures // for release image digests. Any binaryData key that starts with the digest // is added to the list of signatures checked. ReleaseLabelConfigMap = "release.openshift.io/verification-signatures" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store abstracts retrieving signatures from config maps on a cluster.
func NewStore ¶
func NewStore(client corev1client.ConfigMapsGetter, limiter *rate.Limiter) *Store
NewStore returns a store that can retrieve or persist signatures on a cluster. If limiter is not specified it defaults to one call every 30 seconds.
func (*Store) Signatures ¶
func (s *Store) Signatures(ctx context.Context, name string, digest string, fn store.Callback) error
Signatures fetches signatures for the provided digest out of config maps labelled with ReleaseLabelConfigMap in the NamespaceLabelConfigMap namespace.
Click to show internal directories.
Click to hide internal directories.