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

Commit 6a52189

Browse files
author
priyawadhwa
authored
Merge pull request #198 from priyawadhwa/config-history
Make appendConfigHistory public
2 parents ce3228b + 07b456e commit 6a52189

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/image/mutable_source.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (m *MutableSource) AppendLayer(content []byte, author string) error {
142142
// Also add it to the config.
143143
diffID := digest.FromBytes(content)
144144
m.cfg.RootFS.DiffIDs = append(m.cfg.RootFS.DiffIDs, diffID)
145-
m.appendConfigHistory(author, false)
145+
m.AppendConfigHistory(author, false)
146146
return nil
147147
}
148148

@@ -184,7 +184,7 @@ func (m *MutableSource) SetEnv(envMap map[string]string, author string) {
184184
envArray = append(envArray, entry)
185185
}
186186
m.cfg.Schema2V1Image.Config.Env = envArray
187-
m.appendConfigHistory(author, true)
187+
m.AppendConfigHistory(author, true)
188188
}
189189

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

194194
func (m *MutableSource) SetConfig(config *manifest.Schema2Config, author string, emptyLayer bool) {
195195
m.cfg.Schema2V1Image.Config = config
196-
m.appendConfigHistory(author, emptyLayer)
196+
m.AppendConfigHistory(author, emptyLayer)
197197
}
198198

199-
func (m *MutableSource) appendConfigHistory(author string, emptyLayer bool) {
199+
func (m *MutableSource) AppendConfigHistory(author string, emptyLayer bool) {
200200
history := manifest.Schema2History{
201201
Created: time.Now(),
202202
Author: author,

0 commit comments

Comments
 (0)