connection

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(
	connectionType, address string,
	timeout time.Duration,
	tlsConfig *tls.Config,
) (net.Conn, error)

Get returns a connector according to initialized params.

func Read

func Read(conn connector, timeout time.Duration) (string, error)

Read reads and parse response from secret agent.

func ReadBytes

func ReadBytes(conn connector, length int) ([]byte, error)

func Write

func Write(conn connector, timeout time.Duration, resource, secretKey string) error

Write forms and executes a request to the secret agent.

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