git

package
v1.34.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Unlicense Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL   string `yaml:"url" json:"url" toml:"url"`
	Dir   string `yaml:"dir" json:"dir" toml:"dir"`
	Token string `yaml:"token" json:"token" toml:"token"`
}

Config for git.

func (*Config) GetToken added in v1.20.0

func (c *Config) GetToken() string

GetToken that is specified in config or from KONFIG_GIT_TOKEN env variable.

type Configurator

type Configurator struct {
	// contains filtered or unexported fields
}

Configurator for git.

func NewConfigurator

func NewConfigurator(cfg Config, tracer opentracing.Tracer, client *http.Client) *Configurator

NewConfigurator for git.

func (*Configurator) GetConfig

func (c *Configurator) GetConfig(ctx context.Context, params source.ConfigParams) (*source.Config, error)

GetConfig for git.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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