registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	DClient   *dockerclient.Client
	URL       string
	TLSVerify bool
	FilePath  string
	PSData    RegistryRecordType
	Debug     bool
	EAuth     string
}

func NewRegistry

func NewRegistry(url, filePath string, TLSVerify, debug bool) (*Registry, error)

func (*Registry) Encode

func (reg *Registry) Encode() error

func (*Registry) FillAuthCredentials

func (reg *Registry) FillAuthCredentials() error

func (*Registry) SetDockerClient

func (reg *Registry) SetDockerClient() error

type RegistryEntryInterface

type RegistryEntryInterface interface {
	FillAuthCredentials() error
	Encode() error
}

type RegistryRecordType

type RegistryRecordType struct {
	Auth     string `json:"auth,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Email    string `json:"email,omitempty"`
}

RegistryRecordType is the struct representing the PullSecretcomponents

Jump to

Keyboard shortcuts

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