Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

v0.1.0

Compare
Choose a tag to compare
@Wwwsylvia Wwwsylvia released this 10 May 08:08
8c9764f

Features

oras-credentials-go is a registry credential management SDK designed for oras-go. It is based on Docker configuration files and Docker credential helpers.

oras-credentials-go provides the following functionalities:

  • A Store interface for retrieving, saving and removing credentials
  • A native credentials store that uses a Docker credential helper program to manage credentials
  • A file credentials store that uses a Docker-format config file to manage credentials in plaintext:
    • Supports option DisablePut that disables putting credentials in plaintext
  • A dynamic credentials store that will dynamically determine which underlying credentials store to use based on the specified Docker-format config file
    • Supports reading from the Docker config file
  • Attaching multiple Stores to an existing Store as fallbacks
  • Convenient utility methods:
    • Credential(): Return a function for auth.Client.Credential
    • Login(): Validate and store the given credential for the given server address
    • Logout(): Remove the credential for the given server address

Detailed Commits

New Contributors

Full Changelog: https://github.com/oras-project/oras-credentials-go/commits/v0.1.0