netrc

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package netrc implements GNU .netrc specification. This implementation is borrowed from the original implementation by the go authors. See https://github.com/golang/go/blob/master/src/cmd/go/internal/auth/netrc.go See https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html

Index

Constants

This section is empty.

Variables

View Source
var ErrNetrcEntryNotFound = fmt.Errorf("netrc config: entry not found")

ErrNetrcEntryNotFound is thrown if details for the machine is not found.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Machine  string
	Login    string
	Password string
}

Entry is a netrc config entry.

func Read

func Read(machine string, login string) (*Entry, error)

Read reads config for the given machine.

Jump to

Keyboard shortcuts

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