repowatch

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(config Config, params Params) (<-chan string, error)

Types

type Config

type Config struct {
	AwsSecretId              string        `yaml:"aws_secret_id"`
	Branch                   string        `yaml:"branch"`
	CheckInterval            time.Duration `yaml:"check_interval"`
	LocalRepositoryDirectory string        `yaml:"local_repository_directory"`
	RepositoryURL            string        `yaml:"repository_url"`
}

Config specifies the configuration.

type Params

type Params struct {
	// Mandatory parameters.
	Logger log.DebugLogger
	// Optional parameters.
	AwsConfig       *aws.Config
	MetricDirectory string
	SecretsClient   *secretsmanager.Client
}

Params specifies runtime parameters.

Jump to

Keyboard shortcuts

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