{"modulePath":"github.com/devsy-org/devsy","version":"v1.27.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dockercredentials\n\n## Constants\n\n```go\nconst AzureContainerRegistryUsername = \"00000000-0000-0000-0000-000000000000\"\n```\n\n## Functions\n\n```go\nfunc ConfigureCredentialsContainer(userName string, port int) error\n```\n\n```go\nfunc ConfigureCredentialsDockerless(targetFolder string, port int) (string, error)\n```\n\n```go\nfunc ConfigureCredentialsMachine(targetFolder string, port int) (string, error)\n```\n\n## Types\n\n```go\ntype Credentials struct {\n\tServerURL string\n\tUsername  string\n\tSecret    string\n}\n```\nCredentials holds the information shared between docker and the credentials store.\n\n```go\nfunc GetAuthConfig(host string) (*Credentials, error)\n```\n\n```go\nfunc (c *Credentials) AuthToken() string\n```\n\n```go\ntype Helper struct {\n\t// contains filtered or unexported fields\n}\n```\nHelper implements the Docker credential helper interface.\n\n```go\nfunc NewHelper(port int) *Helper\n```\nNewHelper creates a new credential helper.\n\n```go\nfunc (h *Helper) Add(*credentials.Credentials) error\n```\nAdd is not supported (read-only helper).\n\n```go\nfunc (h *Helper) Delete(string) error\n```\nDelete is not supported (read-only helper).\n\n```go\nfunc (h *Helper) Get(serverURL string) (string, string, error)\n```\nGet retrieves credentials for the given server URL.\n\n```go\nfunc (h *Helper) List() (map[string]string, error)\n```\nList returns all configured registries.\n\n```go\ntype ListResponse struct {\n\tRegistries map[string]string\n}\n```\n\n```go\nfunc ListCredentials() (*ListResponse, error)\n```\n\n```go\ntype Request struct {\n\t// If ServerURL is empty its a list request\n\tServerURL string\n}\n```\n\n","path":"github.com/devsy-org/devsy/pkg/dockercredentials","name":"dockercredentials","synopsis":"","isRedistributable":true}
