pkg

package
v1.0.1-0...-422cc01 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: GPL-3.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 Authn

type Authn struct {
	Users []User `yaml:"users"`
}

Authn Contains a list of users

func ParseConfig

func ParseConfig(location *string) (*Authn, error)

ParseConfig read a configuration file in the path `location` and returns an Authn object

type User

type User struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	OrgID    string `yaml:"orgid"`
}

User Identifies a user including the tenant

Jump to

Keyboard shortcuts

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