mock

package
v0.0.0-...-df423d5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(title, columnName string, items map[string]string) models.Listable

List returns a Listable object with two columns. @param: Name of the displayable list @param: Column Name: Defines the 2nd Column Name of the created list the values from the map. The key values of the input map are used for the `Title` column. The values of the map are placed within the 2nd column. Source: https://learn.microsoft.com/en-us/graph/api/list-create?view=graph-rest-1.0&tabs=go

func ListBytes

func ListBytes(title string) ([]byte, error)

ListBytes returns the byte representation of List

func ListDefault

func ListDefault(title string) models.Listable

ListDefault returns a two-list column list of Music lbums and the associated artist.

func Page

func Page(title string) []byte

Page returns bytes for models.SitePageable object Title string changes of fields: name and title

Types

type ListCollection

type ListCollection struct {
	Data  [][]byte
	Names []string
	// contains filtered or unexported fields
}

func NewCollection

func NewCollection(
	storagePath path.Path,
	locationPath path.Path,
	numMessagesToReturn int,
) *ListCollection

func (*ListCollection) DoNotMergeItems

func (mlc *ListCollection) DoNotMergeItems() bool

func (*ListCollection) FullPath

func (mlc *ListCollection) FullPath() path.Path

func (*ListCollection) Items

func (mlc *ListCollection) Items(
	ctx context.Context,
	_ *fault.Bus,
) <-chan data.Item

func (*ListCollection) PreviousPath

func (mlc *ListCollection) PreviousPath() path.Path

func (*ListCollection) SetPath

func (mlc *ListCollection) SetPath(p path.Path)

func (*ListCollection) State

func (mlc *ListCollection) State() data.CollectionState

type ListData

type ListData struct {
	ItemID  string
	Reader  io.ReadCloser
	ReadErr error
	// contains filtered or unexported fields
}

func ListStream

func ListStream(t *testing.T, title string, numOfItems int) *ListData

ListStream returns the data.Item representation of the Mocked SharePoint List

func (ListData) Deleted

func (mld ListData) Deleted() bool

func (*ListData) ID

func (mld *ListData) ID() string

func (*ListData) ToReader

func (mld *ListData) ToReader() io.ReadCloser

Jump to

Keyboard shortcuts

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