MCPcopy Index your code
hub / github.com/coder/envbox / Base64

Method Base64

dockerutil/client.go:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50type AuthConfig registry.AuthConfig
51
52func (a AuthConfig) Base64() (string, error) {
53 authStr, err := json.Marshal(a)
54 if err != nil {
55 return "", xerrors.Errorf("json marshal: %w", err)
56 }
57 return base64.URLEncoding.EncodeToString(authStr), nil
58}
59
60func AuthConfigFromPath(path string, reg string) (AuthConfig, error) {
61 var config dockercfg.Config

Callers 1

PullImageFunction · 0.80

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected