whisper

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() whisper.Service

Accessor for the client, used in testing.

func ConnectClient

func ConnectClient(endpoint string) error

Connects the client to the Whisper service, throws an error if the client is already connected.

func CreateSecretLink(secret string, password string, accesses int, expirationDate time.Time) (link string, err error)

Creates a Whisper secret and returns the link to the Whisper UI where a user can access the secret value. If the password is specified, then the user will need to enter the password to access the secret. The accesses and expiration date options limit how long the secret is available. By default these values are 3 accesses and 7 days from today. An error is returned if the secret cannot be created with Whisper.

func ResetClient

func ResetClient()

Resets the client connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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