profiles

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: 10 Imported by: 1 module, 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

This section is empty.

Types

type Model

type Model struct {
	Spec Spec
}

type Profiles

type Profiles struct {
	TablesMap map[string]Model // normalized table name to table metadata (map[CQ Table Name]Model)
	// contains filtered or unexported fields
}

func NewProfiles

func NewProfiles(sp *api.SP, logger zerolog.Logger) *Profiles

func (*Profiles) GetDestTable

func (u *Profiles) GetDestTable(spec Spec) (*schema.Table, error)

func (*Profiles) Sync

func (u *Profiles) Sync(ctx context.Context, metrics *source.TableClientMetrics, res chan<- *schema.Resource, table *schema.Table) error

type Spec

type Spec struct {
	// Whether to enable user profiles sync
	Enabled bool `json:"enabled"`
	// Optional, an alias for the table name
	Alias string `json:"alias"`
}

Spec is the configuration for MMD term set source

func (*Spec) GetAlias added in v1.6.3

func (s *Spec) GetAlias() string

GetAlias returns the alias for the term set

func (*Spec) SetDefault added in v1.6.0

func (*Spec) SetDefault()

SetDefault sets default values for list spec

func (*Spec) Validate added in v1.6.3

func (*Spec) Validate() error

Validate validates user profiles spec validity

Jump to

Keyboard shortcuts

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