Documentation
¶
Index ¶
- Constants
- func NewOCIBasicAuthAccess(options map[string]any) (auth.AccessController, error)
- func TCPPort(t *testing.T) *tcpPort
- func WithRequireAuth(user, password string) func(*OCIRegistryServerOptions)
- type OCIBasicAuthAccess
- type OCIRegistryServer
- func (s *OCIRegistryServer) Address() string
- func (s *OCIRegistryServer) Push(remoteImgRef name.Reference, img v1.Image)
- func (s *OCIRegistryServer) PushImageIndex(remoteImgRef name.Reference, img v1.ImageIndex)
- func (s *OCIRegistryServer) RefToImage(imageName, imageTag string) name.Reference
- func (s *OCIRegistryServer) RefToImageDigest(imageName string, digest v1.Hash) name.Reference
- func (s *OCIRegistryServer) Serve(ctx context.Context)
- func (s *OCIRegistryServer) Stop()
- type OCIRegistryServerOptions
Constants ¶
View Source
const UserAgentOCIRegistryServer = "oci-registry-server"
Variables ¶
This section is empty.
Functions ¶
func NewOCIBasicAuthAccess ¶
func NewOCIBasicAuthAccess(options map[string]any) (auth.AccessController, error)
func WithRequireAuth ¶
func WithRequireAuth(user, password string) func(*OCIRegistryServerOptions)
Types ¶
type OCIBasicAuthAccess ¶
type OCIBasicAuthAccess struct {
// contains filtered or unexported fields
}
func (*OCIBasicAuthAccess) Authorized ¶
type OCIRegistryServer ¶
type OCIRegistryServer struct {
// contains filtered or unexported fields
}
func NewOCIRegistryServer ¶
func NewOCIRegistryServer(t *testing.T, opts *OCIRegistryServerOptions) *OCIRegistryServer
func StartOCIRegistryServer ¶
func StartOCIRegistryServer(t *testing.T, options ...func(*OCIRegistryServerOptions)) *OCIRegistryServer
func (*OCIRegistryServer) Address ¶
func (s *OCIRegistryServer) Address() string
func (*OCIRegistryServer) Push ¶
func (s *OCIRegistryServer) Push(remoteImgRef name.Reference, img v1.Image)
func (*OCIRegistryServer) PushImageIndex ¶
func (s *OCIRegistryServer) PushImageIndex(remoteImgRef name.Reference, img v1.ImageIndex)
func (*OCIRegistryServer) RefToImage ¶
func (s *OCIRegistryServer) RefToImage(imageName, imageTag string) name.Reference
func (*OCIRegistryServer) RefToImageDigest ¶
func (*OCIRegistryServer) Serve ¶
func (s *OCIRegistryServer) Serve(ctx context.Context)
func (*OCIRegistryServer) Stop ¶
func (s *OCIRegistryServer) Stop()
type OCIRegistryServerOptions ¶
type OCIRegistryServerOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.