config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Version       = "0.9.2"
	GroupMember   = 100
	GroupSysAdmin = 1
)

Variables

View Source
var (
	VersionHash              = Version
	Prefix                   = "/opt/hooto/iam"
	UserRegistrationDisabled = false
	Config                   = &ConfigCommon{}
)

Functions

func Flush

func Flush() error

func Setup

func Setup(prefix string) error

func SetupConfig

func SetupConfig(prefix string, cfg *ConfigCommon) error

Types

type ConfigCommon

type ConfigCommon struct {
	InstanceID               string             `json:"instance_id" toml:"instance_id"`
	HttpPort                 uint16             `json:"http_port,omitempty" toml:"http_port,omitempty"`
	ServiceName              string             `json:"service_name" toml:"service_name"`
	AccessKeys               []*hauth.AccessKey `json:"access_keys" toml:"access_keys"`
	WebUiBannerTitle         string             `json:"-" toml:"-"`
	ServiceLoginFormAlertMsg string             `json:"-" toml:"-"`
}

Jump to

Keyboard shortcuts

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