Documentation
¶
Index ¶
- func DockerLogin(registry, username, password string) error
- func DockerLogout(registry string) error
- func PullImageWithAuth(imageName string, cred *models.RegistryCredential) error
- type Manager
- func (m *Manager) CreateCredential(name, registryTypeSlug, username, password, email string, isDefault bool) (*models.RegistryCredential, error)
- func (m *Manager) CreateRegistryType(name string, urlPatterns []string, authType models.AuthType, ...) (*models.RegistryType, error)
- func (m *Manager) DeleteCredential(id string) error
- func (m *Manager) DeleteRegistryType(slug string) error
- func (m *Manager) FindCredentialForImage(imageName string) *models.RegistryCredential
- func (m *Manager) GetCredential(id string) (*models.RegistryCredential, error)
- func (m *Manager) GetCredentialForRegistry(registryTypeSlug string) *models.RegistryCredential
- func (m *Manager) GetRegistryType(slug string) (*models.RegistryType, error)
- func (m *Manager) ListCredentials() []models.RegistryCredentialWithType
- func (m *Manager) ListRegistryTypes() []models.RegistryType
- func (m *Manager) TestCredential(id string) error
- func (m *Manager) UpdateCredential(id, name, username, password, email string, isDefault *bool) (*models.RegistryCredential, error)
- func (m *Manager) UpdateRegistryType(slug, name string, urlPatterns []string, authType models.AuthType, ...) (*models.RegistryType, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DockerLogin ¶
func DockerLogout ¶
func PullImageWithAuth ¶
func PullImageWithAuth(imageName string, cred *models.RegistryCredential) error
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CreateCredential ¶
func (*Manager) CreateRegistryType ¶
func (*Manager) DeleteCredential ¶
func (*Manager) DeleteRegistryType ¶
func (*Manager) FindCredentialForImage ¶
func (m *Manager) FindCredentialForImage(imageName string) *models.RegistryCredential
func (*Manager) GetCredential ¶
func (m *Manager) GetCredential(id string) (*models.RegistryCredential, error)
func (*Manager) GetCredentialForRegistry ¶
func (m *Manager) GetCredentialForRegistry(registryTypeSlug string) *models.RegistryCredential
func (*Manager) GetRegistryType ¶
func (m *Manager) GetRegistryType(slug string) (*models.RegistryType, error)
func (*Manager) ListCredentials ¶
func (m *Manager) ListCredentials() []models.RegistryCredentialWithType
func (*Manager) ListRegistryTypes ¶
func (m *Manager) ListRegistryTypes() []models.RegistryType
func (*Manager) TestCredential ¶
func (*Manager) UpdateCredential ¶
Click to show internal directories.
Click to hide internal directories.