netrc

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	client *scm.Client,
	renewer core.Renewer,
	private bool,
	username string,
	password string,
) core.NetrcService

New returns a new Netrc service.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements a netrc file generation service.

func (*Service) Create

func (s *Service) Create(ctx context.Context, user *core.User, repo *core.Repository) (*core.Netrc, error)

Create creates a netrc file for the user and repository.

Jump to

Keyboard shortcuts

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