MCPcopy Index your code
hub / github.com/devcontainers/cli / getFeaturesConfig

Function getFeaturesConfig

src/test/imageMetadata.test.ts:562–594  ·  view source on GitHub ↗
(features: Feature[])

Source from the content-addressed store, hash-verified

560});
561
562function getFeaturesConfig(features: Feature[]): FeaturesConfig {
563 return {
564 featureSets: features.map((feature): FeatureSet => ({
565 features: [feature],
566 sourceInformation: {
567 type: 'oci',
568 userFeatureId: `ghcr.io/my-org/my-repo/${feature.id}:1`,
569 userFeatureIdWithoutVersion: `ghcr.io/my-org/my-repo/${feature.id}`,
570 featureRef: {
571 registry: 'ghcr.io',
572 owner: 'my-org',
573 namespace: 'my-org/my-repo',
574 path: 'my-org/my-repo/test',
575 resource: 'ghcr.io/my-org/my-repo/test',
576 id: 'test',
577 tag: '1.2.3',
578 version: '1.2.3',
579 },
580 manifest: {
581 schemaVersion: 1,
582 mediaType: '',
583 config: {
584 digest: '',
585 mediaType: '',
586 size: 0,
587 },
588 layers: [],
589 },
590 manifestDigest: '',
591 }
592 }))
593 };
594}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected