registry

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	Params(data test.Data) []string
}

Auth describes a struct able to serialize authenticator information into arguments to be fed to a registry container run

type BasicAuth

type BasicAuth struct {
	Realm    string
	HtFile   string
	Username string
	Password string
}

func (*BasicAuth) Params

func (ba *BasicAuth) Params(data test.Data) []string

type CesantaConfig

type CesantaConfig struct {
	Server CesantaConfigServer          `yaml:"server"`
	Token  CesantaConfigToken           `yaml:"token"`
	Users  map[string]CesantaConfigUser `yaml:"users,omitempty"`
	ACL    CesantaConfigACL             `yaml:"acl,omitempty"`
}

func (*CesantaConfig) Save

func (cc *CesantaConfig) Save(path string) error

type CesantaConfigACL

type CesantaConfigACL []CesantaConfigACLEntry

type CesantaConfigACLEntry

type CesantaConfigACLEntry struct {
	Match   CesantaMatchConditions `yaml:"match"`
	Actions []string               `yaml:"actions,flow"`
}

type CesantaConfigServer

type CesantaConfigServer struct {
	Addr        string `yaml:"addr,omitempty"`
	Certificate string
	Key         string
}

type CesantaConfigToken

type CesantaConfigToken struct {
	Issuer      string `yaml:"issuer,omitempty"`
	Certificate string `yaml:"certificate,omitempty"`
	Key         string `yaml:"key,omitempty"`
	Expiration  int    `yaml:"expiration,omitempty"`
}

type CesantaConfigUser

type CesantaConfigUser struct {
	Password string `yaml:"password,omitempty"`
}

type CesantaMatchConditions

type CesantaMatchConditions struct {
	Account string `yaml:"account,omitempty"`
}

type NoAuth

type NoAuth struct {
}

func (*NoAuth) Params

func (na *NoAuth) Params(data test.Data) []string

type Server

type Server struct {
	Scheme   string
	IP       net.IP
	Port     int
	Cleanup  func(data test.Data, helpers test.Helpers)
	Setup    func(data test.Data, helpers test.Helpers)
	Logs     func(data test.Data, helpers test.Helpers)
	HostsDir string // contains "<HostIP>:<ListenPort>/hosts.toml"
}

func NewDockerRegistry

func NewDockerRegistry(data test.Data, helpers test.Helpers, currentCA *testca.Cert, port int, auth Auth) *Server

func NewKuboRegistry

func NewKuboRegistry(data test.Data, helpers test.Helpers, t *testing.T, currentCA *testca.Cert, port int, auth Auth) *Server

type TokenAuth

type TokenAuth struct {
	Address  string
	CertPath string
}

func (*TokenAuth) Params

func (ta *TokenAuth) Params(data test.Data) []string

FIXME: this is specific to Docker Registry Like need something else for Harbor and Gitlab

type TokenAuthServer

type TokenAuthServer struct {
	Scheme   string
	IP       net.IP
	Port     int
	CertPath string
	Cleanup  func(data test.Data, helpers test.Helpers)
	Setup    func(data test.Data, helpers test.Helpers)
	Logs     func(data test.Data, helpers test.Helpers)
	Auth     Auth
}

func NewCesantaAuthServer

func NewCesantaAuthServer(data test.Data, helpers test.Helpers, ca *testca.Cert, port int, user, pass string, tls bool) *TokenAuthServer

Jump to

Keyboard shortcuts

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