config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 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
	PrivateKey  string
	AppID       int64
	InstallID   int64
	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