distribution

package
v0.0.0-...-2440f66 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NydusRefSuffix = "_nydus_v2"

Functions

func AppendNydusSuffix

func AppendNydusSuffix(ref string) (string, error)

AppendNydusSuffix appends nydus suffix to the image `ref` and return nydus image.

func HasNydusSuffix

func HasNydusSuffix(ref string) (bool, error)

HasNydusSuffix checks weather if the image `ref` has `_nydus_v2` suffix.

Types

type Distribution

type Distribution struct {
	// contains filtered or unexported fields
}

func New

func New(username, password string) (*Distribution, error)

New creates Distribution by distribution username, password.

func (*Distribution) IsImageExists

func (d *Distribution) IsImageExists(ctx context.Context, ref string) (bool, error)

IsImageExists checks if the image `ref` is exists in distribution.

func (*Distribution) IsNydusImageExists

func (d *Distribution) IsNydusImageExists(ctx context.Context, ref string) (bool, error)

IsNydusImageExists checks if the associated nydus image of `ref` is exists in distribution.

Jump to

Keyboard shortcuts

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