mstodo

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFacade added in v0.0.2

type ClientFacade interface {
	ReadOpenTasks(listID *string) (*[]Task, error)
}

type ClientFactory added in v0.0.2

type ClientFactory struct {
	// Using functions is required as Viper parses the config not before a command's
	// Execute() function is called.
	GetTenantID func() string
	GetClientID func() string
}

func (*ClientFactory) GetGraphClient added in v0.0.2

func (fact *ClientFactory) GetGraphClient() (*GraphClient,
	error,
)

Get returns a singleton instance of a Microsoft Graph client using the Device Code Authentication Provider.

type GraphClient added in v0.0.2

type GraphClient struct {
	// contains filtered or unexported fields
}

func (GraphClient) ReadOpenTasks added in v0.0.2

func (graph GraphClient) ReadOpenTasks(
	listID *string,
) (*[]Task, error)

ReadOpenTasks uses the Microsoft Graph API to fetch the To-Do tasks with status 'notStarted'.

type Task added in v0.0.2

type Task struct {
	ID    *string
	Title *string
}

Jump to

Keyboard shortcuts

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