container: add a auth file path getter for Client

This is so we can check and verify what is set.
This commit is contained in:
Christian Kellner 2022-07-22 15:54:38 +02:00
parent 8a06b9ddf3
commit e38e7c717d

View file

@ -144,6 +144,11 @@ func (cl *Client) SetAuthFilePath(path string) {
cl.sysCtx.AuthFilePath = path
}
// GetAuthFilePath gets the location of the `containers-auth.json(5)` file.
func (cl *Client) GetAuthFilePath() string {
return cl.sysCtx.AuthFilePath
}
func (cl *Client) SetArchitectureChoice(arch string) {
// Translate some well-known Composer architecture strings
// into the corresponding container ones