credentials

package
v0.0.1-prerelease7 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

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

func (*Credential) GitAuthentication

func (c *Credential) GitAuthentication() (auth transport.AuthMethod, err error)

func (*Credential) GitHubClient

func (c *Credential) GitHubClient(ctx context.Context) (_ *github.Client, err error)

func (*Credential) HTTPClient

func (c *Credential) HTTPClient(ctx context.Context) (*http.Client, error)

func (*Credential) OCIClient

func (c *Credential) OCIClient(registry string) (_ *auth.Client, err error)

type CredentialSource

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

func New

func New(configs config.Credentials) *CredentialSource

func (*CredentialSource) Get

func (s *CredentialSource) Get(name string) (*Credential, error)

Jump to

Keyboard shortcuts

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