config

package
v0.0.0-...-7c9ed48 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	// logger
	Logger struct {
		Debug       bool `long:"log.debug"    env:"LOG_DEBUG"  description:"debug mode"`
		Development bool `long:"log.devel"    env:"LOG_DEVEL"  description:"development mode"`
		Json        bool `long:"log.json"     env:"LOG_JSON"   description:"Switch log output to json format"`
	}

	// scrape time settings
	Scrape struct {
		Time              time.Duration  `` /* 158-byte string literal not displayed */
		TimeProjects      *time.Duration `` /* 134-byte string literal not displayed */
		TimeRepository    *time.Duration `` /* 137-byte string literal not displayed */
		TimeBuild         *time.Duration `` /* 132-byte string literal not displayed */
		TimeRelease       *time.Duration `` /* 134-byte string literal not displayed */
		TimeDeployment    *time.Duration `` /* 137-byte string literal not displayed */
		TimePullRequest   *time.Duration `` /* 139-byte string literal not displayed */
		TimeStats         *time.Duration `` /* 133-byte string literal not displayed */
		TimeResourceUsage *time.Duration `` /* 141-byte string literal not displayed */
		TimeQuery         *time.Duration `` /* 133-byte string literal not displayed */
		TimeLive          *time.Duration `` /* 158-byte string literal not displayed */
	}

	// summary options
	Stats struct {
		SummaryMaxAge *time.Duration `` /* 135-byte string literal not displayed */
	}

	// azure settings
	Azure struct {
		TenantId     string `` /* 140-byte string literal not displayed */
		ClientId     string `` /* 134-byte string literal not displayed */
		ClientSecret string `` /* 147-byte string literal not displayed */
	}

	// azure settings
	AzureDevops struct {
		Url             *string `` /* 141-byte string literal not displayed */
		AccessToken     string  `` /* 128-byte string literal not displayed */
		AccessTokenFile *string `` /* 131-byte string literal not displayed */
		Organisation    string  `` /* 135-byte string literal not displayed */
		ApiVersion      string  `` /* 133-byte string literal not displayed */

		// agentpool
		AgentPoolIdList *[]int64 `` /* 132-byte string literal not displayed */

		// ignore settings
		FilterProjects    []string `long:"whitelist.project"    env:"AZURE_DEVOPS_FILTER_PROJECT"    env-delim:" "   description:"Filter projects (UUIDs)"`
		BlacklistProjects []string `long:"blacklist.project"    env:"AZURE_DEVOPS_BLACKLIST_PROJECT" env-delim:" "   description:"Filter projects (UUIDs)"`

		FilterTimelineState  []string `` /* 174-byte string literal not displayed */
		FetchAllBuildsFilter []string `` /* 156-byte string literal not displayed */

		// query settings
		QueriesWithProjects []string `` /* 150-byte string literal not displayed */

		// tag settings
		TagsSchema                *[]string `` /* 206-byte string literal not displayed */
		TagsBuildDefinitionIdList *[]int64  `` /* 144-byte string literal not displayed */
	}

	// cache settings
	Cache struct {
		Path string `` /* 186-byte string literal not displayed */
	}

	Request struct {
		ConcurrencyLimit int64 `` /* 154-byte string literal not displayed */
		Retries          int   `` /* 153-byte string literal not displayed */
	}

	ServiceDiscovery struct {
		RefreshDuration time.Duration `` /* 147-byte string literal not displayed */
	}

	Limit struct {
		Project                      int64         `` /* 149-byte string literal not displayed */
		BuildsPerProject             int64         `` /* 149-byte string literal not displayed */
		BuildsPerDefinition          int64         `` /* 148-byte string literal not displayed */
		ReleasesPerProject           int64         `` /* 149-byte string literal not displayed */
		ReleasesPerDefinition        int64         `` /* 149-byte string literal not displayed */
		DeploymentPerDefinition      int64         `` /* 149-byte string literal not displayed */
		ReleaseDefinitionsPerProject int64         `` /* 149-byte string literal not displayed */
		BuildHistoryDuration         time.Duration `` /* 192-byte string literal not displayed */
		ReleaseHistoryDuration       time.Duration `` /* 194-byte string literal not displayed */
	}

	Server struct {
		// general options
		Bind         string        `long:"server.bind"              env:"SERVER_BIND"           description:"Server address"        default:":8080"`
		ReadTimeout  time.Duration `long:"server.timeout.read"      env:"SERVER_TIMEOUT_READ"   description:"Server read timeout"   default:"5s"`
		WriteTimeout time.Duration `long:"server.timeout.write"     env:"SERVER_TIMEOUT_WRITE"  description:"Server write timeout"  default:"10s"`
	}
}

func (*Opts) GetCachePath

func (o *Opts) GetCachePath(path string) (ret *string)

func (*Opts) GetJson

func (o *Opts) GetJson() []byte

Jump to

Keyboard shortcuts

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