config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Orgs     bool
	Repos    bool
	Actions  bool
	Packages bool
	Storage  bool
}

Collector defines the collector specific configuration.

type Config

type Config struct {
	Server    Server
	Logs      Logs
	Target    Target
	Collector Collector
}

Config is a combination of all available configurations.

func Load

func Load() *Config

Load initializes a default configuration struct.

type Logs

type Logs struct {
	Level  string
	Pretty bool
}

Logs defines the level and color for log configuration.

type Server

type Server struct {
	Addr    string
	Path    string
	Timeout time.Duration
	Web     string
}

Server defines the general server configuration.

type Target

type Target struct {
	Token       string
	BaseURL     string
	Insecure    bool
	Enterprises cli.StringSlice
	Orgs        cli.StringSlice
	Repos       cli.StringSlice
	Timeout     time.Duration
}

Target defines the target specific configuration.

Jump to

Keyboard shortcuts

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