Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAttachmentData ¶
func DecodeAttachmentData( raw json.RawMessage, ) (spec.AttachmentData, error)
func EncodeAttachmentData ¶
func EncodeAttachmentData( value spec.AttachmentData, ) (json.RawMessage, error)
func ValidateAttachmentDataForRole ¶
func ValidateAttachmentDataForRole( role basespec.AttachmentRole, value spec.AttachmentData, ) error
Types ¶
type AttachmentOperation ¶
type AttachmentOperation struct {
Role basespec.AttachmentRole
CanAttach bool
IsPrimary bool
RequiredSourceKind basespec.SourceKind
DefaultAuthoritative bool
IncludeReadmeWhenRequested bool
AppliesWorkspaceDiscoveryPreferences bool
AllowsAttachmentDiscoveryOverrides bool
}
func AttachmentOperationFor ¶
func AttachmentOperationFor( role basespec.AttachmentRole, ) (AttachmentOperation, bool)
Click to show internal directories.
Click to hide internal directories.