Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { // Upstream is the partial url for the upstream, for instance, https://hub.docker.io Upstream string // Logger is the hclog Logger to log with. Logger hclog.Logger // AuthConfig is used to authenticate with the target repository AuthConfig authn.AuthConfig // Indicates that the entrypoint should not be pulled into the image. DisableEntrypoint bool // contains filtered or unexported fields }
Server is an http.Handler that provides an OCI registry proxy. The proxy can inject the waypoint entrypoint directly into the image as it passes through the proxy.
func (*Server) FetchBlob ¶
FetchBlob will read a blob in the OCI digest format from the upstream repo.
func (*Server) SetupEntrypointLayer ¶
SetupEntrypointLayer should be called before the server is in use. This will write the entrypoint as a layer into the upstream, so that it doesn't have to be written while attempting to update the manifest. The entrypoint could be large and writing it mid-manifest update could cause a timeout on the client side.
Click to show internal directories.
Click to hide internal directories.