Documentation
¶
Index ¶
- func EnsureImage(ctx context.Context, client *containerd.Client, ipfsClient iface.CoreAPI, ...) (*imgutil.EnsuredImage, error)
- func NewRegistry(ipfsClient iface.CoreAPI, options RegistryOptions) (http.Handler, error)
- func Push(ctx context.Context, client *containerd.Client, ipfsClient iface.CoreAPI, ...) (cid.Cid, error)
- type RegistryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureImage ¶
func EnsureImage(ctx context.Context, client *containerd.Client, ipfsClient iface.CoreAPI, stdout, stderr io.Writer, snapshotter string, scheme string, ref string, mode imgutil.PullMode, ocispecPlatforms []ocispec.Platform, unpack *bool, quiet bool) (*imgutil.EnsuredImage, error)
EnsureImage pull the specified image from IPFS.
func NewRegistry ¶
Types ¶
type RegistryOptions ¶ added in v0.16.0
type RegistryOptions struct { // Times to retry query on IPFS. Zero or lower value means no retry. ReadRetryNum int // ReadTimeout is timeout duration of a read request to IPFS. Zero means no timeout. ReadTimeout time.Duration }
RegistryOptions represents options to configure the registry.
Click to show internal directories.
Click to hide internal directories.