Skip to content

Commit

Permalink
feat: add org.cnai.model.filepath for the layer annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi committed Nov 7, 2024
1 parent 831fa0a commit 43e5fbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/v1/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ This property contains arbitrary metadata, and SHOULD follow the rules of [OCI i
- **`org.cnai.model.license`**: Specifies the layer is a LICENSE file (boolean), such as `true` or `false`.
- **`org.cnai.model.config`**: Specifies the layer is a configuration file (boolean), such as `true` or `false`.
- **`org.cnai.model.model`**: Specifies the layer is a model file (boolean), such as `true` or `false`.
- **`org.cnai.model.filepath`**: Specifies the file path of the layer (string).
3 changes: 3 additions & 0 deletions specs-go/v1/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,7 @@ const (

// AnnotationModel is the annotation key for the layer is a model file (boolean), such as `true` or `false`.
AnnotationModel = "org.cnai.model.model"

// AnnotationFilepath is the annotation key for the file path of the layer.
AnnotationFilepath = "org.cnai.model.filepath"
)

0 comments on commit 43e5fbb

Please sign in to comment.