Documentation ¶
Index ¶
- Constants
- func DecryptImage(ctx context.Context, client *containerd.Client, password, image string, ...) error
- func EncryptImage(ctx context.Context, client *containerd.Client, image, password string) ([]byte, []byte, error)
- func EnsureImage(ctx context.Context, client *containerd.Client, image string) error
- func GetContainerdClient(namespace string) (*containerd.Client, error)
- func ImageExists(ctx context.Context, client *containerd.Client, image string) (bool, error)
- func IpfsPush(ctx context.Context, client *containerd.Client, rawRef string, ...) (string, error)
- func PullImage(ctx context.Context, client *containerd.Client, ipfsAddr, image, target string) error
- func PushImage(ctx context.Context, client *containerd.Client, ipfsAddr, image string) (string, error)
Constants ¶
View Source
const RSA_KEY_SIZE = 2048
Variables ¶
This section is empty.
Functions ¶
func DecryptImage ¶
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 ¶
EnsureImage makes sure the image is available in containerd store
func GetContainerdClient ¶
func GetContainerdClient(namespace string) (*containerd.Client, error)
func ImageExists ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.