attachmentdata

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 DecodeAttachmentData

func DecodeAttachmentData(
	raw json.RawMessage,
) (workspaceDomain.AttachmentData, error)

func EncodeAttachmentData

func EncodeAttachmentData(
	value workspaceDomain.AttachmentData,
) (json.RawMessage, error)

func ValidateAttachmentDataForRole

func ValidateAttachmentDataForRole(
	role collection.AttachmentRole,
	value workspaceDomain.AttachmentData,
) error

Types

type AttachmentOperation

type AttachmentOperation struct {
	Role                                 collection.AttachmentRole
	CanAttach                            bool
	IsPrimary                            bool
	RequiredSourceKind                   source.SourceKind
	DefaultAuthoritative                 bool
	IncludeReadmeWhenRequested           bool
	AppliesWorkspaceDiscoveryPreferences bool
	AllowsAttachmentDiscoveryOverrides   bool
}

func AttachmentOperationFor

func AttachmentOperationFor(
	role collection.AttachmentRole,
) (AttachmentOperation, bool)

Jump to

Keyboard shortcuts

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