package retriever // ArtifactType is the type of Artifact to be retrieved type ArtifactType string const ( Executable ArtifactType = "executable" // Executable is a script or binary that can be executed on an IEN host ) // slice of all artifact types to allow verifying supplied artifactType is valid. // Any new artifacts must be added to this slice var allArtifactTypes = []ArtifactType{ Executable, } // Artifact represents a single artifact stored in the DB type Artifact struct { // Name is the human readable name of an artifact Name string // Type of the artifact Type ArtifactType // The Artifact field contains the byte contents of the artifact Artifact []byte // SHA is the SHA256 sum of the artifact contents SHA []byte }