GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Why Go
  • Case Studies
  • Use Cases
  • Security
  • Learn
  • Effective Go
  • Go User Manual
  • Standard library
  • Release Notes
  • API
  • Packages
  • Recorded Talks
  • Meetups
  • Conferences

This view

  • Original page
  • New address

GeezerVison is showing pkg.go.dev — pass package - github.com/docker/docker-credential-helpers/pass - Go Packages

Details

  • checked Valid go.mod file

    The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.

  • checked Redistributable license

    Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.

  • checked Tagged version

    Modules with tagged versions give importers more predictable builds.

  • unchecked Stable version

    When a project reaches major version v1 it is considered stable.

  • Learn more about best practices

Repository

github.com/docker/docker-credential-helpers

Links

  • Open Source Insights Logo Open Source Insights

Documentation ¶

Rendered for

Overview ¶

Package pass implements a `pass` based credential helper. Passwords are stored as arguments to pass of the form: "$PASS_FOLDER/base64-url(serverURL)/username". We base64-url encode the serverURL, because under the hood pass uses files and folders, so /s will get translated into additional folders.

Index ¶

  • Constants
  • type Pass
    • func (p Pass) Add(creds *credentials.Credentials) error
    • func (p Pass) CheckInitialized() bool
    • func (p Pass) Delete(serverURL string) error
    • func (p Pass) Get(serverURL string) (string, string, error)
    • func (p Pass) List() (map[string]string, error)

Constants ¶

View Source
const PASS_FOLDER = "docker-credential-helpers" //nolint:revive

PASS_FOLDER contains the directory where credentials are stored

Variables ¶

This section is empty.

Functions ¶

This section is empty.

Types ¶

type Pass ¶

type Pass struct{}

Pass handles secrets using pass as a store.

func (Pass) Add ¶

func (p Pass) Add(creds *credentials.Credentials) error

Add adds new credentials to the keychain.

func (Pass) CheckInitialized ¶ added in v0.6.1

func (p Pass) CheckInitialized() bool

CheckInitialized checks whether the password helper can be used. It internally caches and so may be safely called multiple times with no impact on performance, though the first call may take longer.

func (Pass) Delete ¶

func (p Pass) Delete(serverURL string) error

Delete removes credentials from the store.

func (Pass) Get ¶

func (p Pass) Get(serverURL string) (string, string, error)

Get returns the username and secret to use for a given registry server URL.

func (Pass) List ¶

func (p Pass) List() (map[string]string, error)

List returns the stored URLs and corresponding usernames for a given credentials label

Source Files ¶

View all Source files
  • pass.go

Directories ¶

Path Synopsis
cmd
Click to show internal directories.
Click to hide internal directories.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.