config

package
v0.0.0-...-9b07614 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// TokenFlag means token flag
	TokenFlag *bool
)

Functions

func GetASCert

func GetASCert() *x509.Certificate

GetASCert returns the as cert file in *x509.Certificate format.

func GetASCertFile

func GetASCertFile() string

GetASCertFile returns the tas service key cert file configuration.

func GetASKeyFile

func GetASKeyFile() string

GetASKeyFile returns the tas service private key file configuration.

func GetASPrivKey

func GetASPrivKey() *rsa.PrivateKey

GetASPrivKey returns the as private key in *rsa.PrivateKey format.

func GetAuthKeyFile

func GetAuthKeyFile() string

GetAuthKeyFile returns the tas service auth key file configuration.

func GetBaseValue

func GetBaseValue() string

GetBaseValue returns the tas service basevalue configuration.

func GetConfigs

func GetConfigs() *tasConfig

GetConfigs gets all config from config.yaml file.

func GetDAAGrpPrivKey

func GetDAAGrpPrivKey() (string, string)

GetDAAGrpPrivKey returns the tas service daa crp private key x and private key y configuration.

func GetHWCert

func GetHWCert() *x509.Certificate

GetHWCert returns hua wei cert.

func GetHWCertFile

func GetHWCertFile() string

GetHWCertFile returns the tas service hua wei IT ca cert file configuration.

func GetRestPort

func GetRestPort() string

GetRestPort returns the tas restful api interface ip:port configuration.

func GetServerPort

func GetServerPort() string

GetServerPort returns the tas service ip:port configuration.

func InitFlags

func InitFlags()

InitFlags inits the tas server command flags.

func InitializeAS

func InitializeAS() error

InitializeAS initializes tas server by parsing as cert, parsing as private key and parsing hw it ca cert.

func LoadConfigs

func LoadConfigs()

LoadConfigs searches and loads config from config.yaml file.

func SetBaseValue

func SetBaseValue(s string)

SetBaseValue sets the tas service basevalue configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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