contextdomain

package
v0.2.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArtifactSupport

func ArtifactSupport() workspaceDomain.ArtifactSupport

func DiscoveryProfile

func DiscoveryProfile() workspaceDomain.DiscoveryProfile

func LogicalName

func LogicalName(name string) basespec.LogicalName

func RuntimeOrder

func RuntimeOrder(locator basespec.Locator) int

Types

type Definition

type Definition struct {
	Name      string                                    `json:"name"`
	Role      artifactbuiltin.WorkspaceContextRole      `json:"role"`
	MediaType artifactbuiltin.WorkspaceContextMediaType `json:"mediaType"`
	Content   string                                    `json:"content"`
}

func ContextFromDefinition

func ContextFromDefinition(
	value definition.Definition,
) (Definition, error)

ContextFromDefinition validates a canonical Workspace Context Artifact definition and returns its typed body in a single decode.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL