...

Source file src/edge-infra.dev/pkg/sds/emergencyaccess/retriever/artifact.go

Documentation: edge-infra.dev/pkg/sds/emergencyaccess/retriever

     1  package retriever
     2  
     3  // ArtifactType is the type of Artifact to be retrieved
     4  type ArtifactType string
     5  
     6  const (
     7  	Executable ArtifactType = "executable" // Executable is a script or binary that can be executed on an IEN host
     8  )
     9  
    10  // slice of all artifact types to allow verifying supplied artifactType is valid.
    11  // Any new artifacts must be added to this slice
    12  var allArtifactTypes = []ArtifactType{
    13  	Executable,
    14  }
    15  
    16  // Artifact represents a single artifact stored in the DB
    17  type Artifact struct {
    18  	// Name is the human readable name of an artifact
    19  	Name string
    20  	// Type of the artifact
    21  	Type ArtifactType
    22  	// The Artifact field contains the byte contents of the artifact
    23  	Artifact []byte
    24  	// SHA is the SHA256 sum of the artifact contents
    25  	SHA []byte
    26  }
    27  

View as plain text