config

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package config manages config for the auth service

  • Copyright (c) 2025-2026, NVIDIA CORPORATION. All rights reserved.

Index

Constants

View Source
const (
	ServiceName = "AuthN"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfManager

type ConfManager struct {
	// contains filtered or unexported fields
}

ConfManager Used by AuthN to interface with the shared authN config used on both API and server-side Provides utilities used only by the authN service (not API)

func NewConfManager

func NewConfManager() *ConfManager

func (*ConfManager) GetConf

func (cm *ConfManager) GetConf() *authn.Config

func (*ConfManager) GetDBPath added in v1.4.3

func (cm *ConfManager) GetDBPath() string

func (*ConfManager) GetDBType added in v1.4.3

func (cm *ConfManager) GetDBType() string

func (*ConfManager) GetDefaultTimeout

func (cm *ConfManager) GetDefaultTimeout() time.Duration

func (*ConfManager) GetExpiry

func (cm *ConfManager) GetExpiry() time.Duration

func (*ConfManager) GetExternalURL added in v1.4.3

func (cm *ConfManager) GetExternalURL() *url.URL

func (*ConfManager) GetLogFlushInterval added in v1.4.3

func (cm *ConfManager) GetLogFlushInterval() time.Duration

func (*ConfManager) GetPort

func (cm *ConfManager) GetPort() (s string)

func (*ConfManager) GetRSAConfig added in v1.4.3

func (cm *ConfManager) GetRSAConfig() *RSAKeyConfig

func (*ConfManager) GetSecret

func (cm *ConfManager) GetSecret() cmn.Censored

func (*ConfManager) GetServerCert

func (cm *ConfManager) GetServerCert() string

func (*ConfManager) GetServerKey

func (cm *ConfManager) GetServerKey() string

func (*ConfManager) Init

func (cm *ConfManager) Init(cfgPathArg string)

func (*ConfManager) IsHTTPS

func (cm *ConfManager) IsHTTPS() bool

func (*ConfManager) IsVerbose

func (cm *ConfManager) IsVerbose() bool

func (*ConfManager) UpdateConf

func (cm *ConfManager) UpdateConf(cu *authn.ConfigToUpdate) error

type RSAKeyConfig added in v1.4.3

type RSAKeyConfig struct {
	Filepath string
	Size     int
}

ConfManager Used by AuthN to interface with the shared authN config used on both API and server-side Provides utilities used only by the authN service (not API)

Jump to

Keyboard shortcuts

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