Documentation ¶
Index ¶
- Variables
- func IsValidName(itemName string) bool
- func Read(ctx context.Context, repoStore drivers.RepoStore, ...) (*drivers.CatalogEntry, error)
- func Register(name string, artifact Artifact)
- func SanitizedName(filePath string) string
- func Write(ctx context.Context, repoStore drivers.RepoStore, instID string, ...) error
- type Artifact
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFileRead = errors.New("failed to read artifact") ErrInvalidFileName = errors.New("invalid file name") )
View Source
var Artifacts = make(map[string]Artifact)
Functions ¶
func IsValidName ¶ added in v0.16.0
func Read ¶
func Read(ctx context.Context, repoStore drivers.RepoStore, registryStore drivers.RegistryStore, instID, filePath string) (*drivers.CatalogEntry, error)
func SanitizedName ¶ added in v0.16.0
SanitizedName returns a sanitized name for an artifact from file path.
Types ¶
Click to show internal directories.
Click to hide internal directories.