dockercredentials

package
v0.0.0-...-bbf6fa6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2023 The Okteto Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("not implemented")

Functions

This section is empty.

Types

type OktetoClusterHelper

type OktetoClusterHelper struct {
	// contains filtered or unexported fields
}

func NewOktetoClusterHelper

func NewOktetoClusterHelper(getter RegistryCredentialsGetter) *OktetoClusterHelper

func (*OktetoClusterHelper) Add

Add appends credentials to the store.

func (*OktetoClusterHelper) Delete

func (o *OktetoClusterHelper) Delete(regHost string) error

Delete removes credentials from the store.

func (*OktetoClusterHelper) Get

func (o *OktetoClusterHelper) Get(serverURL string) (string, string, error)

Get retrieves credentials from the store. It returns username and secret as strings.

func (*OktetoClusterHelper) List

func (*OktetoClusterHelper) List() (map[string]string, error)

List returns the stored serverURLs and their associated usernames.

type RegistryCredentialsGetter

type RegistryCredentialsGetter interface {
	GetRegistryCredentials(host string) (string, string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL