oci

package module
v0.0.0-...-9f1fa1a Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 TCPPort

func TCPPort(t *testing.T) *tcpPort

func WithRequireAuth

func WithRequireAuth(user, password string) func(*OCIRegistryServerOptions)

Types

type OCIBasicAuthAccess

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

func (*OCIBasicAuthAccess) Authorized

func (ac *OCIBasicAuthAccess) Authorized(req *http.Request, _ ...auth.Access) (*auth.Grant, error)

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 (s *OCIRegistryServer) RefToImageDigest(imageName string, digest v1.Hash) name.Reference

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
}

Jump to

Keyboard shortcuts

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