Documentation
¶
Overview ¶
Package artifacts stores content-addressed policy evaluation artifacts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("artifact not found")
ErrNotFound means no artifact has the requested digest.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) Put ¶
func (s *Service) Put(ctx context.Context, mediaType string, canonical []byte, agentID *uuid.UUID) (*artifact.Info, bool, error)
Put stores canonical content of mediaType under its digest and reports whether this call created it. Storing content that is already present changes nothing.
Click to show internal directories.
Click to hide internal directories.