dockerhsm

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package dockerhsm provides a way to fire up the NetHSM docker image for use in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DockerAvailable

func DockerAvailable() bool

DockerAvailable is used to determine if docker is available. This can be used to skip tests.

Types

type DockerHSM

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

DockerHSM is a tool for running NetHSM in a docker container for testing.

func Create

func Create() (*DockerHSM, error)

Create NetHSM docker container. When this function returns the container has been created and the NetHSM is starting. However it is not necessarily ready to serve requests yet.

func (*DockerHSM) APIURL

func (d *DockerHSM) APIURL() string

APIURL returns the API URL for the NetHSM.

func (*DockerHSM) AdminPassword

func (d *DockerHSM) AdminPassword() string

AdminPassword returns the generated admin password.

func (*DockerHSM) Shutdown

func (d *DockerHSM) Shutdown() error

Shutdown the NetHSM docker container

func (*DockerHSM) UnlockPassword

func (d *DockerHSM) UnlockPassword() string

UnlockPassword returns the generated unlock password.

Jump to

Keyboard shortcuts

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