client

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(_ context.Context, logger zerolog.Logger, src specs.Source, opts source.Options) (schema.ClientMeta, error)

Types

type Client

type Client struct {
	Tables schema.Tables
	// contains filtered or unexported fields
}

func (*Client) ID

func (c *Client) ID() string

func (*Client) Sync

func (c *Client) Sync(ctx context.Context, metrics *source.Metrics, res chan<- *schema.Resource) error

type Spec

type Spec struct {
	// Gosip auth config connection params https://go.spflow.com/auth/overview
	Auth auth.Spec `json:"auth"`

	// A map of URIs to the list configuration
	// If no lists are provided, nothing will be fetched
	Lists map[string]lists.Spec `json:"lists"`

	// A map of TermSets GUIDs to the MMD configuration
	MMD map[string]mmd.Spec `json:"mmd"`

	// User profiles configuration
	Profiles profiles.Spec `json:"profiles"`

	// Search query results
	Search map[string]search.Spec `json:"search"`

	// Content types based rollup
	ContentTypes map[string]ct.Spec `json:"content_types"`
}

Spec is the configuration for a SharePoint source

func (*Spec) SetDefaults

func (s *Spec) SetDefaults()

SetDefaults sets default values for top level spec

func (*Spec) Validate

func (s *Spec) Validate() error

Validate validates SharePoint source spec validity

Jump to

Keyboard shortcuts

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