Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Make appendConfigHistory public #198

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/image/mutable_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (m *MutableSource) AppendLayer(content []byte, author string) error {
// Also add it to the config.
diffID := digest.FromBytes(content)
m.cfg.RootFS.DiffIDs = append(m.cfg.RootFS.DiffIDs, diffID)
m.appendConfigHistory(author, false)
m.AppendConfigHistory(author, false)
return nil
}

Expand Down Expand Up @@ -184,7 +184,7 @@ func (m *MutableSource) SetEnv(envMap map[string]string, author string) {
envArray = append(envArray, entry)
}
m.cfg.Schema2V1Image.Config.Env = envArray
m.appendConfigHistory(author, true)
m.AppendConfigHistory(author, true)
}

func (m *MutableSource) Config() *manifest.Schema2Config {
Expand All @@ -193,10 +193,10 @@ func (m *MutableSource) Config() *manifest.Schema2Config {

func (m *MutableSource) SetConfig(config *manifest.Schema2Config, author string, emptyLayer bool) {
m.cfg.Schema2V1Image.Config = config
m.appendConfigHistory(author, emptyLayer)
m.AppendConfigHistory(author, emptyLayer)
}

func (m *MutableSource) appendConfigHistory(author string, emptyLayer bool) {
func (m *MutableSource) AppendConfigHistory(author string, emptyLayer bool) {
history := manifest.Schema2History{
Created: time.Now(),
Author: author,
Expand Down