ipcr

package
v0.0.0-...-787377c Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const RSA_KEY_SIZE = 2048

Variables

This section is empty.

Functions

func DecryptImage

func DecryptImage(ctx context.Context, client *containerd.Client, password, image string, prvKey []byte) error

func EncryptImage

func EncryptImage(ctx context.Context, client *containerd.Client, image, password string) ([]byte, []byte, error)

EncryptImage returns the private key for decryption password could be ommitted

func EnsureImage

func EnsureImage(ctx context.Context, client *containerd.Client, image string) error

EnsureImage makes sure the image is available in containerd store

func GetContainerdClient

func GetContainerdClient(namespace string) (*containerd.Client, error)

func ImageExists

func ImageExists(ctx context.Context, client *containerd.Client, image string) (bool, error)

func IpfsPush

func IpfsPush(ctx context.Context, client *containerd.Client, rawRef string, options types.ImagePushOptions) (string, error)

copied from containerd/nerdctl/ipfs + returning the cid

func PullImage

func PullImage(ctx context.Context, client *containerd.Client, ipfsAddr, image, target string) error

func PushImage

func PushImage(ctx context.Context, client *containerd.Client, ipfsAddr, image string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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