Skip to content

Commit

Permalink
Merge pull request #11 from CloudNativeAI/feature/layer
Browse files Browse the repository at this point in the history
feat: add additional annotations for layer
  • Loading branch information
chlins authored Oct 24, 2024
2 parents 0358f11 + 8a6122e commit 831fa0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/v1/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ This property contains arbitrary metadata, and SHOULD follow the rules of [OCI i
### Layer Annotation Keys

- **`org.cnai.model.readme`**: Specifies the layer is a README.md file (boolean), such as `true` or `false`.
- **`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`.
9 changes: 9 additions & 0 deletions specs-go/v1/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,13 @@ const (
const (
// AnnotationReadme is the annotation key for the layer is a README.md file (boolean), such as `true` or `false`.
AnnotationReadme = "org.cnai.model.readme"

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

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

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

0 comments on commit 831fa0a

Please sign in to comment.