Skip to content

Commit

Permalink
generate
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Dec 27, 2024
1 parent 3d5fada commit 6e773d8
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/ocm/extensions/repositories/genericocireg/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ var _ = Describe("component repository mapping", func() {

m1 := compdesc.NewResourceMeta("rsc1", resourcetypes.PLAIN_TEXT, metav1.LocalRelation)
blob := blobaccess.ForString(mime.MIME_TEXT, ocmtesthelper.S_TESTDATA)
MustBeSuccessful(vers.SetResourceBlob(m1, blob, "", nil))
MustBeSuccessful(vers.SetResourceBlob(m1, blob, refhints.NONE, nil))

MustBeSuccessful(comp.AddVersion(vers))

Expand Down
2 changes: 1 addition & 1 deletion api/ocm/refhints/hints.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"ocm.software/ocm/api/utils/runtime"
)

// NONE described non-existing hints.
// NONE describes non-existing hints.
var NONE = []ReferenceHint(nil)

const (
Expand Down
24 changes: 24 additions & 0 deletions docs/reference/ocm_add_resource-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ with the field <code>type</code> in the <code>input</code> field:

The binary data to provide.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down Expand Up @@ -229,6 +233,10 @@ with the field <code>type</code> in the <code>input</code> field:
The default media type is application/x-tar and
application/gzip if compression is enabled.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>compress</code>** *bool*

This OPTIONAL property describes whether the file content should be stored
Expand Down Expand Up @@ -315,6 +323,10 @@ with the field <code>type</code> in the <code>input</code> field:
This REQUIRED property describes the path to the file relative to the
resource file location.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down Expand Up @@ -502,6 +514,10 @@ with the field <code>type</code> in the <code>input</code> field:
This REQUIRED property describes the path to the file relative to the
resource file location.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand All @@ -523,6 +539,10 @@ with the field <code>type</code> in the <code>input</code> field:
This OPTIONAL property describes a list of spiff libraries to include in template
processing.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

The variable settings from the command line are available as binding, also. They are provided under the node
<code>values</code>.

Expand All @@ -548,6 +568,10 @@ with the field <code>type</code> in the <code>input</code> field:

The content emitted as YAML.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down
24 changes: 24 additions & 0 deletions docs/reference/ocm_add_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ with the field <code>type</code> in the <code>input</code> field:

The binary data to provide.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down Expand Up @@ -241,6 +245,10 @@ with the field <code>type</code> in the <code>input</code> field:
The default media type is application/x-tar and
application/gzip if compression is enabled.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>compress</code>** *bool*

This OPTIONAL property describes whether the file content should be stored
Expand Down Expand Up @@ -327,6 +335,10 @@ with the field <code>type</code> in the <code>input</code> field:
This REQUIRED property describes the path to the file relative to the
resource file location.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down Expand Up @@ -514,6 +526,10 @@ with the field <code>type</code> in the <code>input</code> field:
This REQUIRED property describes the path to the file relative to the
resource file location.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand All @@ -535,6 +551,10 @@ with the field <code>type</code> in the <code>input</code> field:
This OPTIONAL property describes a list of spiff libraries to include in template
processing.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

The variable settings from the command line are available as binding, also. They are provided under the node
<code>values</code>.

Expand All @@ -560,6 +580,10 @@ with the field <code>type</code> in the <code>input</code> field:

The content emitted as YAML.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down
24 changes: 24 additions & 0 deletions docs/reference/ocm_add_source-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ with the field <code>type</code> in the <code>input</code> field:

The binary data to provide.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down Expand Up @@ -229,6 +233,10 @@ with the field <code>type</code> in the <code>input</code> field:
The default media type is application/x-tar and
application/gzip if compression is enabled.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>compress</code>** *bool*

This OPTIONAL property describes whether the file content should be stored
Expand Down Expand Up @@ -315,6 +323,10 @@ with the field <code>type</code> in the <code>input</code> field:
This REQUIRED property describes the path to the file relative to the
resource file location.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down Expand Up @@ -502,6 +514,10 @@ with the field <code>type</code> in the <code>input</code> field:
This REQUIRED property describes the path to the file relative to the
resource file location.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand All @@ -523,6 +539,10 @@ with the field <code>type</code> in the <code>input</code> field:
This OPTIONAL property describes a list of spiff libraries to include in template
processing.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

The variable settings from the command line are available as binding, also. They are provided under the node
<code>values</code>.

Expand All @@ -548,6 +568,10 @@ with the field <code>type</code> in the <code>input</code> field:

The content emitted as YAML.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down
24 changes: 24 additions & 0 deletions docs/reference/ocm_add_sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ with the field <code>type</code> in the <code>input</code> field:

The binary data to provide.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down Expand Up @@ -239,6 +243,10 @@ with the field <code>type</code> in the <code>input</code> field:
The default media type is application/x-tar and
application/gzip if compression is enabled.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>compress</code>** *bool*

This OPTIONAL property describes whether the file content should be stored
Expand Down Expand Up @@ -325,6 +333,10 @@ with the field <code>type</code> in the <code>input</code> field:
This REQUIRED property describes the path to the file relative to the
resource file location.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down Expand Up @@ -512,6 +524,10 @@ with the field <code>type</code> in the <code>input</code> field:
This REQUIRED property describes the path to the file relative to the
resource file location.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand All @@ -533,6 +549,10 @@ with the field <code>type</code> in the <code>input</code> field:
This OPTIONAL property describes a list of spiff libraries to include in template
processing.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

The variable settings from the command line are available as binding, also. They are provided under the node
<code>values</code>.

Expand All @@ -558,6 +578,10 @@ with the field <code>type</code> in the <code>input</code> field:

The content emitted as YAML.

- **<code>referenceHints</code>** *[]map[string]string*

This OPTIONAL property describes a list of implicit reference hints.

- **<code>mediaType</code>** *string*

This OPTIONAL property describes the media type to store with the local blob.
Expand Down

0 comments on commit 6e773d8

Please sign in to comment.