config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Basic struct {
		Enabled  bool   `json:"enabled"`
		Username string `json:"username"`
		Password string `json:"password"`
	} `json:"basic"`
	Bearer struct {
		Enabled bool   `json:"enabled"`
		Token   string `json:"token"`
	} `json:"bearer"`
}

type Config

type Config struct {
	Directory client.Config `json:"directory"`
	Server    struct {
		ListenAddress string     `json:"listen_address"`
		Auth          AuthConfig `json:"auth"`
	} `json:"server"`

	SCIM struct {
		CreateEmailIdentities bool `json:"create_email_identities"`
		CreateRoleGroups      bool `json:"create_role_groups"`
	} `json:"scim"`
}

func NewConfig

func NewConfig(configPath string) (*Config, error)

Jump to

Keyboard shortcuts

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