Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthorAnnotation = "chainloop.dev" // Default prefix for the blobmanager DefaultPrefix = "chainloop" )
Variables ¶
View Source
var ErrValidation = errors.New("credentials validation error")
Functions ¶
func DetectedMediaType ¶
Detect the media type based on the provided content
func IsNotFound ¶
Types ¶
type Downloader ¶
type ErrNotFound ¶
type ErrNotFound struct {
// contains filtered or unexported fields
}
func NewErrNotFound ¶
func NewErrNotFound(entity string) ErrNotFound
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
type Provider ¶
type Provider interface { // Provider identifier ID() string // retrieve a downloader/uploader from a secret FromCredentials(ctx context.Context, secretName string) (UploaderDownloader, error) // validate and extract credentials from raw json ValidateAndExtractCredentials(location string, credsJSON []byte) (any, error) }
Provider is an interface that allows to create a backend from a secret
type UploaderDownloader ¶
type UploaderDownloader interface { Uploader Downloader Describer }
Click to show internal directories.
Click to hide internal directories.