Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add org.cnai.model.filepath for the layer annotations #12

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
)