Documentation
¶
Index ¶
- type Builder
- type BuilderOpts
- type 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 (ins *Inspector) Close() error
- func (ins *Inspector) Config(ctx context.Context) ([]byte, error)
- func (ins *Inspector) ConfigInfo(ctx context.Context) (*types.BlobInfo, error)
- func (ins *Inspector) Inspect(ctx context.Context) (*types.ImageInspectInfo, error)
- func (ins *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 ¶ added in v1.7.0
type Builder struct {
// contains filtered or unexported fields
}
Builder is the builder to build DockerV2ListMediaType manifest.
func NewBuilder ¶ added in v1.7.0
func NewBuilder(o *BuilderOpts) (*Builder, error)
type BuilderOpts ¶ added in v1.7.0
type Image ¶ added in v1.7.0
type Image struct { Size int64 Digest digest.Digest MediaType string // contains filtered or unexported fields }
func NewImageByInspect ¶ added in v1.7.0
func (*Image) SetOsFeature ¶ added in v1.7.0
func (*Image) SetOsVersion ¶ added in v1.7.0
func (*Image) SetVariant ¶ added in v1.7.0
func (*Image) UpdatePlatform ¶ added in v1.7.0
type Images ¶ added in v1.7.0
type Images []*Image
func (Images) ContainDigest ¶ added in v1.7.0
func (Images) FindPlatformIndex ¶ added in v1.7.0
type Inspector ¶ added in v1.7.0
type Inspector struct {
// contains filtered or unexported fields
}
Inspector provides similar functions of 'skopeo inspect' command.
func NewInspector ¶ added in v1.7.0
func NewInspector(ctx context.Context, o *InspectorOption) (*Inspector, error)
func (*Inspector) ConfigInfo ¶ added in v1.7.0
type InspectorOption ¶ added in v1.7.0
type InspectorOption struct { // Reference of the image to be inspected (Optional) Reference types.ImageReference // ReferenceName of the image (Optional) ReferenceName string // SystemContext pointer, can be nil. SystemContext *types.SystemContext // The number of times to possibly retry. MaxRetry int // The delay to use between retries, if set. Delay time.Duration }
Click to show internal directories.
Click to hide internal directories.