configv3

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client = configbase.Client

type Config

type Config struct {
	Client  `yaml:"client"`
	Manager `yaml:"manager"`
	Sources `yaml:"sources"`
	*Log    `yaml:"log,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Build

func (c *Config) Build() error

func (*Config) GetClientPool

func (c *Config) GetClientPool() client.Pool

func (*Config) GetLogger

func (c *Config) GetLogger() logger.Logger

func (*Config) GetManager

func (c *Config) GetManager() manager.Manager

func (*Config) Optimize

func (c *Config) Optimize(configPath string) error

type Log

type Log = configbase.Log

type Manager

type Manager struct {
	GraphName          string `yaml:"spaceName"`
	configbase.Manager `yaml:",inline"`
}

func (*Manager) BuildManager

func (m *Manager) BuildManager(
	l logger.Logger,
	pool client.Pool,
	sources Sources,
	opts ...manager.Option,
) (manager.Manager, error)

type Source

type Source struct {
	configbase.Source `yaml:",inline"`
	Nodes             specv3.Nodes `yaml:"tags,omitempty"`
	Edges             specv3.Edges `yaml:"edges,omitempty"`
}

func (*Source) BuildGraph

func (s *Source) BuildGraph(graphName string, opts ...specv3.GraphOption) (*specv3.Graph, error)

func (*Source) BuildImporters

func (s *Source) BuildImporters(graphName string, pool client.Pool) ([]importer.Importer, error)

type Sources

type Sources []Source

func (Sources) OptimizePath

func (ss Sources) OptimizePath(configPath string) error

OptimizePath optimizes relative paths base to the configuration file path

func (*Sources) OptimizePathWildCard

func (ss *Sources) OptimizePathWildCard() error

OptimizePathWildCard optimizes the wildcards in the paths

Jump to

Keyboard shortcuts

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