Documentation
¶
Index ¶
- Constants
- func CompareBuildxManifest(src, dst *DockerBuildxManifest) bool
- func CompareBuildxManifests(src, dst []DockerBuildxManifest) bool
- type DockerBuildxManifest
- type DockerBuildxPlatform
- type Mirror
- func (m *Mirror) AppendImage(img *image.Image)
- func (m *Mirror) Copied() int
- func (m *Mirror) DestinationManifestSpec() []DockerBuildxManifest
- func (m *Mirror) GetSavedImageTemplate() *SavedMirrorTemplate
- func (m *Mirror) HasArch(a string) bool
- func (m *Mirror) ImageNum() int
- func (m *Mirror) LoadValidate() error
- func (m *Mirror) Loaded() int
- func (m *Mirror) MirrorValidate() error
- func (m *Mirror) Saved() int
- func (m *Mirror) SourceManifestSpec() []DockerBuildxManifest
- func (m *Mirror) Start() error
- func (m *Mirror) StartLoad() error
- func (m *Mirror) StartMirror() error
- func (m *Mirror) StartSave() error
- type MirrorOptions
- type SavedImagesTemplate
- type SavedListTemplate
- type SavedMirrorTemplate
Constants ¶
View Source
const ( MODE_MIRROR MODE_LOAD MODE_SAVE MODE_MIRROR_VALIDATE MODE_LOAD_VALIDATE )
View Source
const (
SavedTemplateVersion = "v1.1.0"
)
Variables ¶
This section is empty.
Functions ¶
func CompareBuildxManifest ¶
func CompareBuildxManifest(src, dst *DockerBuildxManifest) bool
func CompareBuildxManifests ¶
func CompareBuildxManifests(src, dst []DockerBuildxManifest) bool
Types ¶
type DockerBuildxManifest ¶
type DockerBuildxManifest struct { Digest string `json:"digest"` Platform DockerBuildxPlatform `json:"platform"` }
type DockerBuildxPlatform ¶
type Mirror ¶
type Mirror struct { Source string Destination string Tag string Directory string ArchList []string RepoType int // ImageList line Line string // ID of the mirrorer MID int Mode int // contains filtered or unexported fields }
func LoadSavedTemplates ¶
LoadSavedTemplates loads the saved json templates to *Mirror slice
func NewMirror ¶
func NewMirror(opts *MirrorOptions) *Mirror
func (*Mirror) AppendImage ¶
func (*Mirror) DestinationManifestSpec ¶
func (m *Mirror) DestinationManifestSpec() []DockerBuildxManifest
DestinationManifestSpec gets the dest manifest data used by docker-buildx
func (*Mirror) GetSavedImageTemplate ¶
func (m *Mirror) GetSavedImageTemplate() *SavedMirrorTemplate
func (*Mirror) LoadValidate ¶
func (*Mirror) MirrorValidate ¶
func (*Mirror) SourceManifestSpec ¶
func (m *Mirror) SourceManifestSpec() []DockerBuildxManifest
SourceManifestSpec gets the source manifest data used by docker-buildx
func (*Mirror) StartMirror ¶
type MirrorOptions ¶
type SavedImagesTemplate ¶
type SavedListTemplate ¶
type SavedListTemplate struct { List []SavedMirrorTemplate Version string SavedTime string }
func NewSavedListTemplate ¶
func NewSavedListTemplate() *SavedListTemplate
func (*SavedListTemplate) Append ¶
func (s *SavedListTemplate) Append(mT *SavedMirrorTemplate)
type SavedMirrorTemplate ¶
type SavedMirrorTemplate struct { Source string Tag string ArchList []string Images []SavedImagesTemplate }
Click to show internal directories.
Click to hide internal directories.