gitauth

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitAuthFactory

type GitAuthFactory struct {
	Credentials repository.AuthFactorier
}

GitAuthFactory is a factory for creating GitAuther

func NewGitAuthFactory

func NewGitAuthFactory(credentials repository.AuthFactorier) *GitAuthFactory

NewGitAuthFactory creates a new GitAuthFactory

func (*GitAuthFactory) GenerateAuthMethod

func (f *GitAuthFactory) GenerateAuthMethod(options *builder.DockerDriverGitContextAuthOptions) (GitAuther, error)

GenerateAuthMethod returns a new auth method based on the given context

type GitAuther

type GitAuther interface {
	Auth() (transport.AuthMethod, error)
}

GitAuther is an interface for git authentication

Jump to

Keyboard shortcuts

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