core

package module
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

README

Crypto Core

Introduction

This package is a library to abstract crypto providers for go. The providers can be loaded during startup by adding the respective module in the local folder.

Usage

Implement/Choose an Plugin which implements the commonProvider Interface and put it in the docker container in an folder which is identified by the environment variable CRYPTO_CORE_MODULE_PATH next to your application (e.g. in Docker File)

Compilation of Modules

Compilation

go build -buildmode=plugin

Plugin

func GetCryptoProvider() CryptoProvider {
    return provider
}

var Plugin CryptoProviderModule //export Plugin Symbol, dont change this name:) 

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCryptoEngine

func CreateCryptoEngine(path string) types.CryptoProvider

Allows it to switch the Plugin and reload a crypto engine from another path. Makes only sense when the file system contains more than one plugin. Mostly just for unit tests relevant.

func CryptoEngine

func CryptoEngine() types.CryptoProvider

Returns standard Cryptoengine which is shipped with the docker image and/or the local file system.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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