extract

package
v0.0.0-...-1e25372 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRead              = errors.New("cannot read file")
	ErrExtractConnection = errors.New("cannot extract connection from file")
)

Functions

func PEM

func PEM(b []byte) (encodedData string, err error)

Types

type Extractor

type Extractor struct{}

func New

func New() *Extractor

func (*Extractor) Data

func (e *Extractor) Data(filepath string) (lines []string,
	connection models.Connection, err error)

Data extracts the lines and connection from the OpenVPN configuration file.

Jump to

Keyboard shortcuts

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