config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvPrefix   = "IDP"
	FileFormat  = "yaml"
	DefaultFile = "plasmid.yaml"
	DefaultPath = "."

	Host                = "host"
	Port                = "port"
	BaseUrl             = "base_url"
	CertCaOrg           = "cert.ca_org"
	CertCaCountry       = "cert.ca_country"
	CertCaState         = "cert.ca_state"
	CertCaLocality      = "cert.ca_locality"
	CertCaAddress       = "cert.ca_address"
	CertCaPostcode      = "cert.ca_postcode"
	CertCaExpYears      = "cert.ca_exp_years"
	CertCertificateFile = "cert.certificate_file"
	CertKeyFile         = "cert.key_file"
	CertKeySize         = "cert.key_size"
	UserUsername        = "user.username"
	UserPassword        = "user.password"
	UserFirstName       = "user.given_name"
	UserLastName        = "user.surname"
	UserEmail           = "user.email"
	UserGroups          = "user.groups"
	SPName              = "sp.name"
	SPMetadata          = "sp.metadata"
)

Variables

View Source
var DefaultValues = map[string]interface{}{
	Host:           "127.0.0.1",
	Port:           8000,
	BaseUrl:        "http://127.0.0.1:8000",
	CertCaOrg:      "Example Org",
	CertCaCountry:  "FR",
	CertCaState:    "Ile de France",
	CertCaLocality: "Paris",
	CertCaPostcode: "75001",
	CertCaExpYears: 1,
	CertKeySize:    2048,
	UserUsername:   "admin",
	UserPassword:   "Password123",
	UserFirstName:  "Admin",
	UserLastName:   "User",
	UserEmail:      "admin@example.com",
	UserGroups:     []string{"Administrators", "Users"},
}

Functions

func Init

func Init()

Types

This section is empty.

Jump to

Keyboard shortcuts

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