source

package
v1.80.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoConfigurator = errors.New("no configurator")

ErrNoConfigurator is defined in the config.

Module for fx.

Functions

func NewConfigurator

func NewConfigurator(params ConfiguratorParams) (configurator.Configurator, error)

NewConfigurator for source.

Types

type Config

type Config struct {
	Kind   string         `yaml:"kind,omitempty" json:"kind,omitempty" toml:"kind,omitempty"`
	Git    *git.Config    `yaml:"git,omitempty" json:"git,omitempty" toml:"git,omitempty"`
	Folder *folder.Config `yaml:"folder,omitempty" json:"folder,omitempty" toml:"folder,omitempty"`
	S3     *s3.Config     `yaml:"s3,omitempty" json:"s3,omitempty" toml:"s3,omitempty"`
}

Config for source.

func (*Config) IsFolder

func (c *Config) IsFolder() bool

IsFolder configured.

func (*Config) IsGit

func (c *Config) IsGit() bool

IsGit configured.

func (*Config) IsS3 added in v1.21.0

func (c *Config) IsS3() bool

IsS3 configured.

type ConfiguratorParams added in v1.16.0

type ConfiguratorParams struct {
	fx.In

	Config     *Config
	HTTPConfig *http.Config
	Logger     *zap.Logger
	HTTPTracer ht.Tracer
	Meter      metric.Meter
	GitTracer  gt.Tracer
	S3Tracer   st.Tracer
}

ConfiguratorParams for source.

Directories

Path Synopsis
git
s3

Jump to

Keyboard shortcuts

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