config

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 3 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 {
	Provider  string
	ProjectID string
	Providers struct {
		AWS struct {
			Profile  string
			Region   string
			Services StringSliceFlag
		}
		GCP struct {
			DefaultGCSDiscount int
			Projects           StringSliceFlag
			Region             string
			Services           StringSliceFlag
		}
		Azure struct {
			Services       StringSliceFlag
			SubscriptionId string
		}
	}
	Collector struct {
		ScrapeInterval time.Duration
		Timeout        time.Duration
	}

	Server struct {
		Address string
		Path    string
		Timeout time.Duration
	}
	LoggerOpts struct {
		Level  string // Maps to slog levels: debug, info, warn, error
		Output string // io.Writer interface to write out to: stdout, stderr, file
		Type   string // How to write out the logs: json, text
	}

	Logger *slog.Logger
}

type StringSliceFlag

type StringSliceFlag []string

func (*StringSliceFlag) Set

func (f *StringSliceFlag) Set(value string) error

func (*StringSliceFlag) String

func (f *StringSliceFlag) String() string

Jump to

Keyboard shortcuts

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