Documentation
¶
Index ¶
- func DecodeAttachmentData(raw json.RawMessage) (workspaceDomain.AttachmentData, error)
- func EncodeAttachmentData(value workspaceDomain.AttachmentData) (json.RawMessage, error)
- func ValidateAttachmentDataForRole(role collection.AttachmentRole, value workspaceDomain.AttachmentData) error
- type AttachmentOperation
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)
Click to show internal directories.
Click to hide internal directories.