Documentation ¶
Overview ¶
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Osxkeychain ¶
type Osxkeychain struct{}
Osxkeychain handles secrets using the OS X Keychain as store.
func (Osxkeychain) Add ¶
func (h Osxkeychain) Add(creds *credentials.Credentials) error
Add adds new credentials to the keychain.
func (Osxkeychain) Delete ¶
func (h Osxkeychain) Delete(serverURL string) error
Delete removes credentials from the keychain.
func (Osxkeychain) Get ¶
func (h Osxkeychain) Get(serverURL string) (string, string, error)
Get returns the username and secret to use for a given registry server URL.
func (Osxkeychain) List ¶
func (h Osxkeychain) List() (map[string]string, error)
List returns the stored URLs and corresponding usernames.
func (Osxkeychain) SupportsCredentialStorage ¶ added in v1.10.0
func (Osxkeychain) SupportsCredentialStorage() bool
SupportsCredentialsStorage returns true since storage is supported