config

package
v0.0.0-...-d324752 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: GPL-3.0 Imports: 4 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 {
	HarborConfig struct {
		Url          string `yaml:"url"`
		User         string `yaml:"user"`
		Password     string `yaml:"password_env_var"`
		ClientSecret string `yaml:"client_secret_env"`
		ClientId     string `yaml:"client_id"`
		OIDCLogin    bool   `yaml:"oidc_login"`
		OIDCEndpoint string `yaml:"oidc_endpoint"`
	} `yaml:"harbor"`
	DojoConfig struct {
		Url     string `yaml:"url"`
		UserId  int    `yaml:"user_id"`
		Token   string `yaml:"token_env_var"`
		Product int    `yaml:"docker_images_product_id"`
	} `yaml:"dojo"`
	Hook struct {
		AuthToken  string `yaml:"auth_token_env_var"`
		Host       string `yaml:"host"`
		Port       int    `yaml:"port"`
		Debug      bool   `yaml:"debug"`
		MaxWorkers int    `yaml:"max_workers"`
	}
}

func New

func New(configFile string) Config

Jump to

Keyboard shortcuts

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