config

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config is for the nametag cli config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCachedConfig

func ClearCachedConfig()

ClearCachedConfig clears the cached config

func GetPath

func GetPath(cmd *cobra.Command) (string, error)

GetPath returns the config path

Types

type Config

type Config struct {
	Version    string     `yaml:"version"`
	Server     string     `yaml:",omitempty"`
	Token      string     `yaml:"token"`
	LDAPConfig LDAPConfig `yaml:"LDAPConfig"`
}

Config represents the format of the configuration file that contains the authentication token and other settings.

func ReadConfig

func ReadConfig(cmd *cobra.Command) (*Config, error)

ReadConfig returns the config from the file system

type LDAPConfig

type LDAPConfig struct {
	LDAPUrl                 string `yaml:"ldapURL"`
	BaseDN                  string `yaml:"baseDN"`
	BindDN                  string `yaml:"bindDN"`
	BindPassword            string `yaml:"bindPassword"`
	PageSize                uint32 `yaml:"pageSize"`
	DefaultPasswordPolicyDN string `yaml:"defaultPasswordPolicyDN"`
}

LDAPConfig represents the format of settings related to the LDAP agent functionality

Jump to

Keyboard shortcuts

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