Documentation
¶
Index ¶
- func NewFromContainerdDaemon(ctx context.Context, imageName string) (itypes.ImageWithIndex, func(), error)
- func NewFromContainerdHostFS(imageID string, config hostfs.ContainerdHostFSConfig) (types.ImageWithIndex, func(), error)
- func NewFromDockerDaemon(imageName string, ref name.Reference) (itypes.ImageWithIndex, func(), error)
- func NewFromDockerDaemonTarFile(imageName, localTarPath string, ref name.Reference) (itypes.ImageWithIndex, func(), error)
- func NewFromRemote(ctx context.Context, log logrus.FieldLogger, imageName string, ...) (itypes.ImageWithIndex, error)
- type DockerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromContainerdDaemon ¶
func NewFromContainerdHostFS ¶
func NewFromContainerdHostFS(imageID string, config hostfs.ContainerdHostFSConfig) (types.ImageWithIndex, func(), error)
func NewFromDockerDaemon ¶
func NewFromRemote ¶
func NewFromRemote( ctx context.Context, log logrus.FieldLogger, imageName string, option types.ImageOptions, dockerAuth *authn.AuthConfig, ) (itypes.ImageWithIndex, error)
NewFromRemote pulls using dockerAuth if provided (via authn.FromConfig). Otherwise it tries the Trivy cloud-provider token fallback (ECR/GCR/ACR). If neither is available, it pulls anonymously.
Types ¶
type DockerConfig ¶
type DockerConfig struct {
Auths map[string]authn.AuthConfig `json:"auths"`
}
Click to show internal directories.
Click to hide internal directories.