artifacts

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Artifacts = make(map[string]Artifact)
View Source
var FileReadError = errors.New("failed to read artifact")

Functions

func Read

func Read(ctx context.Context, repoStore drivers.RepoStore, repoId string, filePath string) (*api.CatalogObject, error)

func Register

func Register(name string, artifact Artifact)

func Write

func Write(ctx context.Context, repoStore drivers.RepoStore, repoId string, catalog *api.CatalogObject) error

Types

type Artifact

type Artifact interface {
	DeSerialise(ctx context.Context, filePath string, blob string) (*api.CatalogObject, error)
	Serialise(ctx context.Context, catalogObject *api.CatalogObject) (string, error)
}

Directories

Path Synopsis
Package yaml reads and writes artifacts that exactly mirror the internal representation
Package yaml reads and writes artifacts that exactly mirror the internal representation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL