Documentation ¶
Index ¶
- func EnsureImage(ctx context.Context, client *containerd.Client, scheme, ref, ipfsPath string, ...) (*imgutil.EnsuredImage, error)
- func NewRegistry(options RegistryOptions) (http.Handler, error)
- func Push(ctx context.Context, client *containerd.Client, rawRef string, ...) (string, error)
- type RegistryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureImage ¶
func EnsureImage(ctx context.Context, client *containerd.Client, scheme, ref, ipfsPath string, options types.ImagePullOptions) (*imgutil.EnsuredImage, error)
EnsureImage pull the specified image from IPFS.
func NewRegistry ¶
func NewRegistry(options RegistryOptions) (http.Handler, error)
Types ¶
type RegistryOptions ¶
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 // IpfsPath is the IPFS_PATH value to be used for ipfs command. IpfsPath string }
RegistryOptions represents options to configure the registry.
Click to show internal directories.
Click to hide internal directories.