Registry /
cloud / awslabs-amazon-ecr-credential-helper-ecr-login
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ecrlogin
✓ github.com/awslabs/amazon-ecr-credential-helper/ecr-login
Retrieves ECR credentials for Docker authentication.
package main
import (
"fmt"
"github.com/awslabs/amazon-ecr-credential-helper/ecr-login/api"
)
func main() {
client := api.NewClient()
creds, err := client.GetCredentials("123456789012.dkr.ecr.us-east-1.amazonaws.com")
if err != nil {
panic(err)
}
fmt.Println(creds.Username, creds.Password)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.12.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.