Documentation
¶
Index ¶
- Variables
- func ContactBytes(middleName string) []byte
- func ContactBytesWith(displayName, fileAsName, givenName, middleName, surname, phone string) []byte
- func EventBytes(subject string) []byte
- func EventMessageRequest(subject string) []byte
- func EventMessageResponse(subject string) []byte
- func EventWith(...) []byte
- func EventWithAttachment(subject string) []byte
- func EventWithAttendeesBytes(subject string) []byte
- func EventWithRecurrenceAndCancellationBytes(subject string) []byte
- func EventWithRecurrenceAndExceptionAndAttachmentBytes(subject string) []byte
- func EventWithRecurrenceAndExceptionBytes(subject string) []byte
- func EventWithRecurrenceBytes(subject, recurrenceTimeZone string) []byte
- func EventWithRemovedFields(subject string) []byte
- func EventWithSubjectBytes(subject string) []byte
- func MessageBytes(subject string) []byte
- func MessageWith(...) []byte
- func MessageWithBodyBytes(subject, body, preview string) []byte
- func MessageWithDirectAttachment(subject string) []byte
- func MessageWithItemAttachmentEvent(subject string) []byte
- func MessageWithItemAttachmentMail(subject string) []byte
- func MessageWithLargeAttachment(subject string) []byte
- func MessageWithNestedItemAttachmentContact(t *testing.T, nested []byte, subject string) []byte
- func MessageWithNestedItemAttachmentEvent(subject string) []byte
- func MessageWithNestedItemAttachmentMail(t *testing.T, nested []byte, subject string) []byte
- func MessageWithOneDriveAttachment(subject string) []byte
- func MessageWithSizedAttachment(subject string, n int) []byte
- func MessageWithSpecialCharacters(subject string) []byte
- func MessageWithTwoAttachments(subject string) []byte
- func StubMailInfo() details.ItemInfo
- type DataCollection
- func (medc DataCollection) DoNotMergeItems() bool
- func (medc DataCollection) FullPath() path.Path
- func (medc *DataCollection) Items(ctx context.Context, _ *fault.Bus) <-chan data.Item
- func (medc DataCollection) LocationPath() *path.Builder
- func (medc DataCollection) PreviousPath() path.Path
- func (medc DataCollection) State() data.CollectionState
Constants ¶
This section is empty.
Variables ¶
var ( NoAttachments = "" NoOriginalStartDate = `` NoRecurrence = `null` NoCancelledOccurrences = "" NoExceptionOccurrences = "" NoAttendees = `[]` )
Functions ¶
func ContactBytes ¶
ContactBytes returns bytes for Contactable item. When hydrated: contact.GetGivenName() shows differences
func ContactBytesWith ¶
func EventBytes ¶
EventBytes returns test byte array representative of full Eventable item.
func EventMessageRequest ¶
EventMessageRequest returns byte representation of EventMessageRequest Special Mock to ensure that EventMessageRequests are transformed properly
func EventMessageResponse ¶
EventMessageResponse returns byte representation of EventMessageResponse Special Mock to ensure that EventMessageResponse emails are transformed properly
func EventWith ¶
func EventWith( organizer, subject, body, bodyPreview, originalStartDate, startDateTime, endDateTime, recurrence, attendees, attachments, cancelledOccurrences, exceptionOccurrences string, ) []byte
EventWith returns bytes for an Eventable item. start and end times should be in the format 2006-01-02T15:04:05.0000000Z. The timezone (Z) will be automatically stripped. A non-utc timezone may produce unexpected results. Body must contain a well-formatted string, consumable in a json payload. IE: no unescaped newlines.
func EventWithAttachment ¶
func EventWithAttendeesBytes ¶
func EventWithRemovedFields ¶
func EventWithSubjectBytes ¶
func MessageBytes ¶
MessageBytes returns bytes for a Messageable item. Contents verified as working with sample data from kiota-serialization-json-go v0.5.5
func MessageWith ¶
func MessageWith( to, from, sender, subject, body, preview, created, modified, sent, received string, ) []byte
MessageWith returns bytes for a Messageable item. Contents verified as working with sample data from kiota-serialization-json-go v0.5.5 created, modified, sent, and received should be in the format 2006-01-02T15:04:05Z Body must contain a well-formatted string, consumable in a json payload. IE: no unescaped newlines.
func MessageWithBodyBytes ¶
MessageWithBodyBytes returns bytes for a Messageable item. Contents verified as working with sample data from kiota-serialization-json-go v0.5.5 Body must contain a well-formatted string, consumable in a json payload. IE: no unescaped newlines.
func MessageWithDirectAttachment ¶
MessageWithDirectAttachment returns a message with inline attachment Serialized with: kiota-serialization-json-go v0.7.1
func MessageWithLargeAttachment ¶
MessageWithDirectAttachment returns a message with a large attachment. This is derived from the message used in MessageWithDirectAttachment Serialized with: kiota-serialization-json-go v0.7.1
func MessageWithOneDriveAttachment ¶
GetMessageWithOneDriveAttachment returns a message with an OneDrive attachment represented in bytes Serialized with: kiota-serialization-json-go v0.7.1
func MessageWithSizedAttachment ¶
MessageWithDirectAttachment returns a message an attachment that contains n MB of data. Max limit on N is 35 (imposed by exchange) . Serialized with: kiota-serialization-json-go v0.7.1
func MessageWithTwoAttachments ¶
MessageWithTwoAttachments returns byte representation of message with two attachments Serialized with: kiota-serialization-json-go v0.7.1
func StubMailInfo ¶
Types ¶
type DataCollection ¶
type DataCollection struct { LocPath path.Path Data [][]byte Names []string ModTimes []time.Time ColState data.CollectionState PrevPath path.Path DeletedItems []bool DoNotMerge bool // contains filtered or unexported fields }
DataCollection represents a mock exchange mailbox
func NewCollection ¶
func NewCollection( storagePath path.Path, locationPath path.Path, numMessagesToReturn int, ) *DataCollection
NewCollection creates an data collection that will return the specified number of mock messages when iterated. Exchange type mail
func NewContactCollection ¶
func NewContactCollection(pathRepresentation path.Path, numMessagesToReturn int) *DataCollection
NewContactCollection creates an data collection that will return the specified number of mock messages when iterated. Exchange type mail
func (DataCollection) DoNotMergeItems ¶
func (medc DataCollection) DoNotMergeItems() bool
func (DataCollection) FullPath ¶
func (medc DataCollection) FullPath() path.Path
func (*DataCollection) Items ¶
Items returns a channel that has the next items in the collection. The channel is closed when there are no more items available.
func (DataCollection) LocationPath ¶
func (medc DataCollection) LocationPath() *path.Builder
func (DataCollection) PreviousPath ¶
func (medc DataCollection) PreviousPath() path.Path
func (DataCollection) State ¶
func (medc DataCollection) State() data.CollectionState