File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
artifactory/commands/container Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ type ContainerCommand struct {
1111 skipLogin bool
1212 cmdParams []string
1313 containerManagerType container.ContainerManagerType
14+ validateSha bool
1415}
1516
1617func NewContainerManagerCommand (containerManagerType container.ContainerManagerType ) * ContainerCommand {
@@ -29,6 +30,15 @@ func (cm *ContainerCommand) SetCmdParams(cmdParams []string) *ContainerCommand {
2930 return cm
3031}
3132
33+ func (cm * ContainerCommand ) SetValidateSha (validateSha bool ) * ContainerCommand {
34+ cm .validateSha = validateSha
35+ return cm
36+ }
37+
38+ func (cm * ContainerCommand ) IsValidateSha () bool {
39+ return cm .validateSha
40+ }
41+
3242func (cm * ContainerCommand ) PerformLogin (serverDetails * config.ServerDetails , containerManagerType container.ContainerManagerType ) error {
3343 if ! cm .skipLogin {
3444 // Exclude refreshable tokens when working with external tools (build tools, curl, etc)
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ type PushCommand struct {
1919 ContainerCommand
2020 threads int
2121 detailedSummary bool
22- validateSha bool
2322 result * commandsutils.Result
2423}
2524
You can’t perform that action at this time.
0 commit comments