config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

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

	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,
	CertCertificateFile: "plasmid-cert.pem",
	CertKeyFile:         "plasmid-key.pem",
	UserUsername:        "admin",
	UserPassword:        "Password123",
	UserFirstName:       "Admin",
	UserLastName:        "User",
	UserEmail:           "admin@example.com",
	UserGroups:          []string{"Administrators", "Users"},
}

Functions

func Init

func Init()

func LoadFile added in v1.1.0

func LoadFile(filePath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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