Documentation ¶
Index ¶
- func CertPath(ca string, certname string) string
- func CreateChoriaTokenAndKeys(targetDir string, tokenSignerFile string, public ed25519.PublicKey, ...) (tokenFile string, signedToken string, pubFile string, priFile string, ...)
- func CreateRSAKeyAndCert(td string) (pri *rsa.PrivateKey, err error)
- func CreateSignedClientJWT(pk any, claims map[string]any) (string, error)
- func CreateSignedServerJWT(pk any, pubK []byte, claims map[string]any) (string, error)
- func GbytesLogger(level logrus.Level) (*gbytes.Buffer, *logrus.Logger)
- func KeyPath(ca string, certname string) string
- func LoadRSAKey(key string) (pri *rsa.PrivateKey, err error)
- func NewFuncSigner(fn func(context.Context, []byte, inter.RequestSignerConfig) ([]byte, error)) *funcSigner
- func StartServerInstance(ctx context.Context, wg *sync.WaitGroup, cfgFile string, log *logrus.Logger, ...) (*server.Instance, error)
- type ServerInstanceOption
- type ServerInstanceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChoriaTokenAndKeys ¶ added in v0.27.0
func CreateRSAKeyAndCert ¶
func CreateRSAKeyAndCert(td string) (pri *rsa.PrivateKey, err error)
CreateRSAKeyAndCert public.pem and private.pem in td
func CreateSignedClientJWT ¶
func CreateSignedServerJWT ¶
func LoadRSAKey ¶
func LoadRSAKey(key string) (pri *rsa.PrivateKey, err error)
func NewFuncSigner ¶ added in v0.27.0
Types ¶
type ServerInstanceOption ¶ added in v0.27.0
type ServerInstanceOption func(options *ServerInstanceOptions)
func ServerWithChoriaUtilAgent ¶ added in v0.27.0
func ServerWithChoriaUtilAgent() ServerInstanceOption
func ServerWithDiscovery ¶ added in v0.27.0
func ServerWithDiscovery() ServerInstanceOption
func ServerWithOutDataPlugins ¶ added in v0.27.0
func ServerWithOutDataPlugins() ServerInstanceOption
func ServerWithRPCUtilAgent ¶ added in v0.27.0
func ServerWithRPCUtilAgent() ServerInstanceOption
Click to show internal directories.
Click to hide internal directories.