file

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package file implements a session provider that reads credentials from a local config file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

Credentials represents the username and password for a single target in a config file. N.B. this is not a generic credentials type; it is specific to this particular provider's config format.

type Provider

type Provider struct {
	session.Provider
	// contains filtered or unexported fields
}

func New

func New(path string) (*Provider, error)

func (Provider) Credentials

func (p Provider) Credentials(ctx context.Context, addr string) (*session.Credentials, error)

Jump to

Keyboard shortcuts

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