Merge pull request #27142 from nothiaki/feat-artifact-rm-ignore

Feat artifact rm ignore
This commit is contained in:
openshift-merge-bot[bot]
2025-10-03 15:45:28 +00:00
committed by GitHub
11 changed files with 76 additions and 0 deletions

View File

@@ -52,6 +52,8 @@ type RemoveOptions struct {
All *bool
// Artifacts is a list of Artifact IDs or names to remove
Artifacts []string
// Ignore errors if IDs or names are not defined
Ignore *bool
}
// AddOptions are optional options for removing images

View File

@@ -46,3 +46,18 @@ func (o *RemoveOptions) GetArtifacts() []string {
}
return o.Artifacts
}
// WithIgnore set field Ignore to given value
func (o *RemoveOptions) WithIgnore(value bool) *RemoveOptions {
o.Ignore = &value
return o
}
// GetIgnore returns value of field Ignore
func (o *RemoveOptions) GetIgnore() bool {
if o.Ignore == nil {
var z bool
return z
}
return *o.Ignore
}