Documentation ¶
Index ¶
- func ParseOCIReference(ociRef string) (reference.Named, error)
- type Registry
- func (r *Registry) PullBundle(tag string, insecureRegistry bool) (bundle.Bundle, *relocation.ImageRelocationMap, error)
- func (r *Registry) PushBundle(bun bundle.Bundle, tag string, insecureRegistry bool) (*relocation.ImageRelocationMap, error)
- func (r *Registry) PushInvocationImage(invocationImage string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
*portercontext.Context
}
func NewRegistry ¶
func NewRegistry(c *portercontext.Context) *Registry
func (*Registry) PullBundle ¶
func (r *Registry) PullBundle(tag string, insecureRegistry bool) (bundle.Bundle, *relocation.ImageRelocationMap, error)
PullBundle pulls a bundle from an OCI registry. Returns the bundle, and an optional image relocation mapping, if applicable.
func (*Registry) PushBundle ¶
func (r *Registry) PushBundle(bun bundle.Bundle, tag string, insecureRegistry bool) (*relocation.ImageRelocationMap, error)
func (*Registry) PushInvocationImage ¶
PushInvocationImage pushes the invocation image from the Docker image cache to the specified location the expected format of the invocationImage is REGISTRY/NAME:TAG. Returns the image digest from the registry.
Click to show internal directories.
Click to hide internal directories.