Documentation ¶
Index ¶
- Constants
- func NewError(resp *http.Response) error
- type CancelCalendarItemOperation
- type CancelCalendarItemResponse
- type Client
- type CreateAttachmentOperation
- type CreateAttachmentResponse
- type CreateCalendarItemsResponse
- type CreateFolderOperation
- type CreateFolderResponse
- type CreateItemCalendarItemsOperation
- type DeleteAttachmentOperation
- type DeleteAttachmentResponse
- type DeleteFolderOperation
- type DeleteFolderResponse
- type DeleteItemCalendarItemsOperation
- type DeleteItemCalendarItemsResponse
- type Fault
- type FindFolderOperation
- type FindFolderResponse
- type FindItemCalendarViewOperation
- type FindItemQueryStringOperation
- type FindItemResponse
- type GetAttachmentOperation
- type GetAttachmentResponse
- type GetFolderOperation
- type GetFolderResponse
- type GetItemCalendarItemsOperation
- type GetItemCalendarItemsResponse
- type GetRemindersOperation
- type GetRemindersResponse
- type GetRoomListsOperation
- type GetRoomListsResponse
- type GetRoomsOperation
- type GetRoomsResponse
- type GetUserAvailabilityOperation
- type GetUserAvailabilityResponse
- type GetUserConfigurationOperation
- type GetUserConfigurationResponse
- type HTTPError
- type Logger
- type MoveItemOperation
- type MoveItemResponse
- type Operation
- type Option
- func WithBasicAuth(user, pass string) Option
- func WithDefaultLogger() Option
- func WithDefaultTransport(skipTls bool) Option
- func WithExchangeImpersonation(v string) Option
- func WithLogger(l Logger) Option
- func WithNTLM(skipTls bool) Option
- func WithTimeout(t time.Duration) Option
- func WithTransport(t http.RoundTripper) Option
- type Request
- type Requester
- type RespondToCalendarItemOperation
- type RespondToCalendarItemResponse
- type SendNotificationResponse
- type SendNotificationResultOperation
- type SoapError
- type SubscribeOperation
- type SubscribeResponse
- type UpdateCalendarItemResponse
- type UpdateCalendarItemsOperation
- type UpdateFolderOperation
- type UpdateFolderResponse
- type UpdateUserConfigurationOperation
- type UpdateUserConfigurationResponse
- type Version
Constants ¶
View Source
const ( Exchange2010 Version = "Exchange2010" Exchange2013_SP1 Version = "Exchange2013_SP1" RequestError errors.Kind = "request error" UnmarshalError errors.Kind = "unmarshal error" )
View Source
const PanicNilBody = "body must be a non-nil value"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CancelCalendarItemOperation ¶
type CancelCalendarItemOperation struct { CreateItem ewsxml.CreateItem // contains filtered or unexported fields }
func (*CancelCalendarItemOperation) Body ¶
func (op *CancelCalendarItemOperation) Body() interface{}
func (*CancelCalendarItemOperation) Header ¶
func (op *CancelCalendarItemOperation) Header() *ewsxml.Header
type CancelCalendarItemResponse ¶
type CancelCalendarItemResponse struct { XMLName xml.Name `xml:"CreateItemResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` CreateItemResponse ewsxml.CreateItemResponseMessage } }
func CancelCalendarItem ¶
func CancelCalendarItem(ctx context.Context, req Requester, op *CancelCalendarItemOperation) (*CancelCalendarItemResponse, error)
type Client ¶
type CreateAttachmentOperation ¶
type CreateAttachmentOperation struct { CreateAttachment struct { ewsxml.CreateAttachment } // contains filtered or unexported fields }
func (*CreateAttachmentOperation) Body ¶
func (op *CreateAttachmentOperation) Body() interface{}
func (*CreateAttachmentOperation) Header ¶
func (op *CreateAttachmentOperation) Header() *ewsxml.Header
type CreateAttachmentResponse ¶
type CreateAttachmentResponse struct { XMLName xml.Name `xml:"CreateAttachmentResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` CreateAttachmentsResponseMessage ewsxml.CreateAttachmentsResponseMessage } }
func CreateAttachment ¶
func CreateAttachment(ctx context.Context, req Requester, op *CreateAttachmentOperation) (*CreateAttachmentResponse, error)
type CreateCalendarItemsResponse ¶
type CreateCalendarItemsResponse struct { XMLName xml.Name `xml:"CreateItemResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` CreateItemResponseMessage ewsxml.CreateItemResponseMessage } }
func CreateCalendarItems ¶
func CreateCalendarItems(ctx context.Context, req Requester, op *CreateItemCalendarItemsOperation) (*CreateCalendarItemsResponse, error)
type CreateFolderOperation ¶
type CreateFolderOperation struct { CreateFolder ewsxml.CreateFolder // contains filtered or unexported fields }
func (*CreateFolderOperation) Body ¶
func (op *CreateFolderOperation) Body() interface{}
func (*CreateFolderOperation) Header ¶
func (op *CreateFolderOperation) Header() *ewsxml.Header
type CreateFolderResponse ¶
type CreateFolderResponse struct { XMLName xml.Name `xml:"CreateFolderResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` CreateFolderResponseMessage []ewsxml.CreateFolderResponseMessage } }
func CreateCalendarFolder ¶
func CreateCalendarFolder(ctx context.Context, req Requester, op *CreateFolderOperation) (*CreateFolderResponse, error)
type CreateItemCalendarItemsOperation ¶
type CreateItemCalendarItemsOperation struct { CreateItem struct { ewsxml.CreateItem } // contains filtered or unexported fields }
func (*CreateItemCalendarItemsOperation) Body ¶
func (op *CreateItemCalendarItemsOperation) Body() interface{}
func (*CreateItemCalendarItemsOperation) Header ¶
func (op *CreateItemCalendarItemsOperation) Header() *ewsxml.Header
type DeleteAttachmentOperation ¶
type DeleteAttachmentOperation struct { DeleteAttachment ewsxml.DeleteAttachment // contains filtered or unexported fields }
func (*DeleteAttachmentOperation) Body ¶
func (op *DeleteAttachmentOperation) Body() interface{}
func (*DeleteAttachmentOperation) Header ¶
func (op *DeleteAttachmentOperation) Header() *ewsxml.Header
type DeleteAttachmentResponse ¶
type DeleteAttachmentResponse struct { XMLName xml.Name `xml:"DeleteAttachmentResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` GetAttachmentResponseMessage ewsxml.DeleteAttachmentResponseMessage } }
func DeleteAttachment ¶
func DeleteAttachment(ctx context.Context, req Requester, op *DeleteAttachmentOperation) (*DeleteAttachmentResponse, error)
type DeleteFolderOperation ¶
type DeleteFolderOperation struct { DeleteFolder ewsxml.DeleteFolder // contains filtered or unexported fields }
func (*DeleteFolderOperation) Body ¶
func (op *DeleteFolderOperation) Body() interface{}
func (*DeleteFolderOperation) Header ¶
func (op *DeleteFolderOperation) Header() *ewsxml.Header
type DeleteFolderResponse ¶
type DeleteFolderResponse struct { XMLName xml.Name `xml:"DeleteFolderResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` DeleteFolderResponseMessage []ewsxml.DeleteFolderResponseMessage } }
func DeleteFolder ¶
func DeleteFolder(ctx context.Context, req Requester, op *DeleteFolderOperation) (*DeleteFolderResponse, error)
type DeleteItemCalendarItemsOperation ¶
type DeleteItemCalendarItemsOperation struct { DeleteItem ewsxml.DeleteItem // contains filtered or unexported fields }
func (*DeleteItemCalendarItemsOperation) Body ¶
func (op *DeleteItemCalendarItemsOperation) Body() interface{}
func (*DeleteItemCalendarItemsOperation) Header ¶
func (op *DeleteItemCalendarItemsOperation) Header() *ewsxml.Header
type DeleteItemCalendarItemsResponse ¶
type DeleteItemCalendarItemsResponse struct { XMLName xml.Name `xml:"DeleteItemResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` DeleteItemResponseMessage ewsxml.DeleteItemResponseMessage } }
func DeleteCalendarItems ¶
func DeleteCalendarItems(ctx context.Context, req Requester, op *DeleteItemCalendarItemsOperation) (*DeleteItemCalendarItemsResponse, error)
type FindFolderOperation ¶
type FindFolderOperation struct { FindFolder ewsxml.FindFolder // contains filtered or unexported fields }
func (*FindFolderOperation) Body ¶
func (op *FindFolderOperation) Body() interface{}
func (*FindFolderOperation) Header ¶
func (op *FindFolderOperation) Header() *ewsxml.Header
type FindFolderResponse ¶
type FindFolderResponse struct { XMLName xml.Name `xml:"FindFolderResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` FindFolderResponseMessage []ewsxml.FindFolderResponseMessage } }
func FindCalendarFolders ¶
func FindCalendarFolders(ctx context.Context, req Requester, op *FindFolderOperation) (*FindFolderResponse, error)
type FindItemCalendarViewOperation ¶
type FindItemCalendarViewOperation struct { FindItem struct { ewsxml.FindItem CalendarView ewsxml.CalendarView // https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/parentfolderids ParentFolderIds ewsxml.SendParentFolderIds } // contains filtered or unexported fields }
func (*FindItemCalendarViewOperation) Body ¶
func (op *FindItemCalendarViewOperation) Body() interface{}
func (*FindItemCalendarViewOperation) Header ¶
func (op *FindItemCalendarViewOperation) Header() *ewsxml.Header
type FindItemQueryStringOperation ¶
type FindItemQueryStringOperation struct { FindItem struct { ewsxml.FindItem // https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/querystring-querystringtype QueryString string `xml:"m:QueryString"` SortOrder ewsxml.SortOrder ParentFolderIds struct { DistinguishedFolderId ewsxml.DistinguishedFolderId `xml:"t:DistinguishedFolderId"` } `xml:"m:ParentFolderIds"` } // contains filtered or unexported fields }
func (*FindItemQueryStringOperation) Body ¶
func (op *FindItemQueryStringOperation) Body() interface{}
func (*FindItemQueryStringOperation) Header ¶
func (op *FindItemQueryStringOperation) Header() *ewsxml.Header
type FindItemResponse ¶
type FindItemResponse struct { XMLName xml.Name `xml:"FindItemResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` FindItemResponseMessage ewsxml.FindItemResponseMessage } }
func GetCalendars ¶
func GetCalendars(ctx context.Context, req Requester, op *FindItemCalendarViewOperation) (*FindItemResponse, error)
func SearchCalendarItem ¶
func SearchCalendarItem(ctx context.Context, req Requester, op *FindItemQueryStringOperation) (*FindItemResponse, error)
type GetAttachmentOperation ¶
type GetAttachmentOperation struct { GetAttachment ewsxml.GetAttachment // contains filtered or unexported fields }
func (*GetAttachmentOperation) Body ¶
func (op *GetAttachmentOperation) Body() interface{}
func (*GetAttachmentOperation) Header ¶
func (op *GetAttachmentOperation) Header() *ewsxml.Header
type GetAttachmentResponse ¶
type GetAttachmentResponse struct { XMLName xml.Name `xml:"GetAttachmentResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` GetAttachmentResponseMessage ewsxml.GetAttachmentResponseMessage } }
func GetAttachments ¶
func GetAttachments(ctx context.Context, req Requester, op *GetAttachmentOperation) (*GetAttachmentResponse, error)
type GetFolderOperation ¶
type GetFolderOperation struct { GetFolder ewsxml.GetFolder // contains filtered or unexported fields }
func (*GetFolderOperation) Body ¶
func (op *GetFolderOperation) Body() interface{}
func (*GetFolderOperation) Header ¶
func (op *GetFolderOperation) Header() *ewsxml.Header
type GetFolderResponse ¶
type GetFolderResponse struct { XMLName xml.Name `xml:"GetFolderResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` GetFolderResponseMessage []ewsxml.GetFolderResponseMessage } }
func GetCalendarFolders ¶
func GetCalendarFolders(ctx context.Context, req Requester, op *GetFolderOperation) (*GetFolderResponse, error)
type GetItemCalendarItemsOperation ¶
type GetItemCalendarItemsOperation struct { GetItem ewsxml.GetItem // contains filtered or unexported fields }
func (*GetItemCalendarItemsOperation) Body ¶
func (op *GetItemCalendarItemsOperation) Body() interface{}
func (*GetItemCalendarItemsOperation) Header ¶
func (op *GetItemCalendarItemsOperation) Header() *ewsxml.Header
type GetItemCalendarItemsResponse ¶
type GetItemCalendarItemsResponse struct { XMLName xml.Name `xml:"GetItemResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` GetItemResponseMessage ewsxml.GetItemResponseMessage } }
func GetCalendarItems ¶
func GetCalendarItems(ctx context.Context, req Requester, op *GetItemCalendarItemsOperation) (*GetItemCalendarItemsResponse, error)
type GetRemindersOperation ¶
type GetRemindersOperation struct { GetReminders struct { ewsxml.GetReminders } // contains filtered or unexported fields }
func (*GetRemindersOperation) Body ¶
func (op *GetRemindersOperation) Body() interface{}
func (*GetRemindersOperation) Header ¶
func (op *GetRemindersOperation) Header() *ewsxml.Header
type GetRemindersResponse ¶
type GetRemindersResponse struct { XMLName xml.Name `xml:"GetRemindersResponse"` Reminders ewsxml.Reminders }
func GetCalendarReminders ¶
func GetCalendarReminders(ctx context.Context, req Requester, op *GetRemindersOperation) (*GetRemindersResponse, error)
type GetRoomListsOperation ¶
type GetRoomListsOperation struct {
// contains filtered or unexported fields
}
func (*GetRoomListsOperation) Body ¶
func (op *GetRoomListsOperation) Body() interface{}
func (*GetRoomListsOperation) Header ¶
func (op *GetRoomListsOperation) Header() *ewsxml.Header
type GetRoomListsResponse ¶
type GetRoomListsResponse struct { ewsxml.Response RoomLists struct { Address []ewsxml.Mailbox `xml:"Address"` } `xml:"RoomLists"` }
func GetRoomLists ¶
func GetRoomLists(ctx context.Context, req Requester, op *GetRoomListsOperation) (*GetRoomListsResponse, error)
type GetRoomsOperation ¶
type GetRoomsOperation struct { GetRooms ewsxml.GetRooms // contains filtered or unexported fields }
https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/getrooms-operation
func (*GetRoomsOperation) Body ¶
func (op *GetRoomsOperation) Body() interface{}
func (*GetRoomsOperation) Header ¶
func (op *GetRoomsOperation) Header() *ewsxml.Header
type GetRoomsResponse ¶
type GetRoomsResponse struct { ewsxml.Response Rooms []struct { Name string EmailAddress string RoutingType ewsxml.RoutingType MailboxType ewsxml.MailboxType } `xml:"Rooms>Room>Id"` }
https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/getroomsresponse
func GetRooms ¶
func GetRooms(ctx context.Context, req Requester, op *GetRoomsOperation) (*GetRoomsResponse, error)
type GetUserAvailabilityOperation ¶
type GetUserAvailabilityOperation struct { GetUserAvailabilityRequest ewsxml.GetUserAvailabilityRequest // contains filtered or unexported fields }
func (*GetUserAvailabilityOperation) Body ¶
func (op *GetUserAvailabilityOperation) Body() interface{}
func (*GetUserAvailabilityOperation) Header ¶
func (op *GetUserAvailabilityOperation) Header() *ewsxml.Header
type GetUserAvailabilityResponse ¶
type GetUserAvailabilityResponse struct { XMLName xml.Name `xml:"GetUserAvailabilityResponse"` FreeBusyResponseArray ewsxml.FreeBusyResponseArray SuggestionsResponse ewsxml.SuggestionsResponse }
func GetUserAvailability ¶
func GetUserAvailability(ctx context.Context, req Requester, op *GetUserAvailabilityOperation) (*GetUserAvailabilityResponse, error)
type GetUserConfigurationOperation ¶
type GetUserConfigurationOperation struct { GetUserConfiguration ewsxml.GetUserConfiguration // contains filtered or unexported fields }
func (*GetUserConfigurationOperation) Body ¶
func (op *GetUserConfigurationOperation) Body() interface{}
func (*GetUserConfigurationOperation) Header ¶
func (op *GetUserConfigurationOperation) Header() *ewsxml.Header
type GetUserConfigurationResponse ¶
type GetUserConfigurationResponse struct { XMLName xml.Name `xml:"GetUserConfigurationResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` GetUserConfigurationResponseMessage ewsxml.GetUserConfigurationResponseMessage } }
func GetUserConfiguration ¶
func GetUserConfiguration(ctx context.Context, req Requester, op *GetUserConfigurationOperation) (*GetUserConfigurationResponse, error)
type Logger ¶
type Logger interface { Server(url string, ver Version) HttpRequest(req *http.Request, body []byte) HttpResponse(resp *http.Response, body []byte) Response(resp ewsxml.Response) }
func DefaultLogger ¶
func DefaultLogger() Logger
type MoveItemOperation ¶
type MoveItemOperation struct { MoveItem struct { ewsxml.MoveItem } // contains filtered or unexported fields }
func (*MoveItemOperation) Body ¶
func (op *MoveItemOperation) Body() interface{}
func (*MoveItemOperation) Header ¶
func (op *MoveItemOperation) Header() *ewsxml.Header
type MoveItemResponse ¶
type MoveItemResponse struct { XMLName xml.Name `xml:"MoveItemResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` MoveItemResponseMessage ewsxml.MoveItemResponseMessage } }
func MoveCalendarItems ¶
func MoveCalendarItems(ctx context.Context, req Requester, op *MoveItemOperation) (*MoveItemResponse, error)
type Option ¶
type Option func(c *client) error
func WithBasicAuth ¶
func WithDefaultLogger ¶
func WithDefaultLogger() Option
func WithDefaultTransport ¶
func WithLogger ¶
func WithTimeout ¶
WithTimeout sets the Timeout field on the http.Client.
func WithTransport ¶
func WithTransport(t http.RoundTripper) Option
type RespondToCalendarItemOperation ¶
type RespondToCalendarItemOperation struct { CreateItem struct { ewsxml.CreateItem } // contains filtered or unexported fields }
func (*RespondToCalendarItemOperation) Body ¶
func (op *RespondToCalendarItemOperation) Body() interface{}
func (*RespondToCalendarItemOperation) Header ¶
func (op *RespondToCalendarItemOperation) Header() *ewsxml.Header
type RespondToCalendarItemResponse ¶
type RespondToCalendarItemResponse struct { XMLName xml.Name `xml:"CreateItemResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` CreateItemResponseMessage ewsxml.CreateItemResponseMessage } }
func RespondToCalendarItem ¶
func RespondToCalendarItem(ctx context.Context, req Requester, op *RespondToCalendarItemOperation) (*RespondToCalendarItemResponse, error)
type SendNotificationResultOperation ¶
type SendNotificationResultOperation struct { SendNotificationResult ewsxml.SendNotificationResult // contains filtered or unexported fields }
func (*SendNotificationResultOperation) Body ¶
func (op *SendNotificationResultOperation) Body() interface{}
func (*SendNotificationResultOperation) Header ¶
func (op *SendNotificationResultOperation) Header() *ewsxml.Header
type SubscribeOperation ¶
type SubscribeOperation struct { Subscribe ewsxml.Subscribe // contains filtered or unexported fields }
func (*SubscribeOperation) Body ¶
func (op *SubscribeOperation) Body() interface{}
func (*SubscribeOperation) Header ¶
func (op *SubscribeOperation) Header() *ewsxml.Header
type SubscribeResponse ¶
type SubscribeResponse struct { XMLName xml.Name `xml:"SubscribeResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` SubscribeResponseMessage ewsxml.SubscribeResponseMessage } }
func SubscribeToNotifications ¶
func SubscribeToNotifications(ctx context.Context, req Requester, op *SubscribeOperation) (*SubscribeResponse, error)
type UpdateCalendarItemResponse ¶
type UpdateCalendarItemResponse struct { XMLName xml.Name `xml:"UpdateItemResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` UpdateItemResponseMessage ewsxml.UpdateItemResponseMessage } }
func UpdateCalendarItems ¶
func UpdateCalendarItems(ctx context.Context, req Requester, op *UpdateCalendarItemsOperation) (*UpdateCalendarItemResponse, error)
type UpdateCalendarItemsOperation ¶
type UpdateCalendarItemsOperation struct { UpdateItem struct { ewsxml.UpdateItem } // contains filtered or unexported fields }
func (*UpdateCalendarItemsOperation) Body ¶
func (op *UpdateCalendarItemsOperation) Body() interface{}
func (*UpdateCalendarItemsOperation) Header ¶
func (op *UpdateCalendarItemsOperation) Header() *ewsxml.Header
type UpdateFolderOperation ¶
type UpdateFolderOperation struct { UpdateFolder struct { ewsxml.UpdateFolder } // contains filtered or unexported fields }
func (*UpdateFolderOperation) Body ¶
func (op *UpdateFolderOperation) Body() interface{}
func (*UpdateFolderOperation) Header ¶
func (op *UpdateFolderOperation) Header() *ewsxml.Header
type UpdateFolderResponse ¶
type UpdateFolderResponse struct { XMLName xml.Name `xml:"UpdateFolderResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` UpdateFolderResponseMessage ewsxml.UpdateFolderResponseMessage } }
func UpdateCalendarFolder ¶
func UpdateCalendarFolder(ctx context.Context, req Requester, op *UpdateFolderOperation) (*UpdateFolderResponse, error)
type UpdateUserConfigurationOperation ¶
type UpdateUserConfigurationOperation struct { UpdateUserConfiguration ewsxml.UpdateUserConfiguration // contains filtered or unexported fields }
func (*UpdateUserConfigurationOperation) Body ¶
func (op *UpdateUserConfigurationOperation) Body() interface{}
func (*UpdateUserConfigurationOperation) Header ¶
func (op *UpdateUserConfigurationOperation) Header() *ewsxml.Header
type UpdateUserConfigurationResponse ¶
type UpdateUserConfigurationResponse struct { XMLName xml.Name `xml:"UpdateUserConfigurationResponse"` ResponseMessages struct { XMLName xml.Name `xml:"ResponseMessages"` UpdateUserConfigurationResponseMessage ewsxml.Response } }
func UpdateUserConfiguration ¶
func UpdateUserConfiguration(ctx context.Context, req Requester, op *UpdateUserConfigurationOperation) (*UpdateUserConfigurationResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.