Documentation
¶
Index ¶
- type Builder
- type BuilderOpts
- type Image
- func (p *Image) DeepCopy() *Image
- func (p *Image) Equal(d *Image) bool
- func (p *Image) SetArch(arch string)
- func (p *Image) SetOS(os string)
- func (p *Image) SetOsFeature(v []string)
- func (p *Image) SetOsVersion(v string)
- func (p *Image) SetVariant(variant string)
- func (p *Image) UpdatePlatform(arch, variant, os, osVersion string, osFeatures []string)
- type Images
- type Inspector
- func (p *Inspector) Close() error
- func (p *Inspector) Config(ctx context.Context) ([]byte, error)
- func (p *Inspector) ConfigInfo(ctx context.Context) (*typesv5.BlobInfo, error)
- func (p *Inspector) Inspect(ctx context.Context) (*typesv5.ImageInspectInfo, error)
- func (p *Inspector) Raw(ctx context.Context) ([]byte, string, error)
- type InspectorOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is the builder to build DockerV2ListMediaType manifest.
func NewBuilder ¶
func NewBuilder(o *BuilderOpts) (*Builder, error)
type BuilderOpts ¶
type BuilderOpts struct { ReferenceName string SystemContext *typesv5.SystemContext // RetryOpts is the options to retry on error, can be nil RetryOpts *retry.Options }
type Image ¶
type Image struct { Size int64 Digest digest.Digest MediaType string Annotations map[string]string // OCI image index v1 supports annotations // contains filtered or unexported fields }
func NewImageByInspect ¶
func (*Image) SetOsFeature ¶
func (*Image) SetOsVersion ¶
func (*Image) SetVariant ¶
func (*Image) UpdatePlatform ¶
type Images ¶
type Images []*Image
func (Images) ContainDigest ¶
func (Images) FindDigestIndex ¶ added in v1.8.4
func (Images) FindPlatformIndex ¶
func (Images) FindSLSAIndex ¶ added in v1.8.7
type Inspector ¶
type Inspector struct {
// contains filtered or unexported fields
}
Inspector provides similar functions of 'skopeo inspect' command.
func NewInspector ¶
func NewInspector(ctx context.Context, o *InspectorOption) (*Inspector, error)
func (*Inspector) ConfigInfo ¶
type InspectorOption ¶
type InspectorOption struct { // Reference of the image to be inspected (Optional) Reference typesv5.ImageReference // ReferenceName of the image (Optional) ReferenceName string // SystemContext pointer, can be nil. SystemContext *typesv5.SystemContext // The number of times to possibly retry. RetryOpts *retry.Options }
Click to show internal directories.
Click to hide internal directories.