Skip to content

Instantly share code, notes, and snippets.

@pmorie
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmorie/198afcc8c0a3e3138313 to your computer and use it in GitHub Desktop.
Save pmorie/198afcc8c0a3e3138313 to your computer and use it in GitHub Desktop.
type pruneFuncDecorator struct {
pruner prune.ImagePruneFunc
}
func (p *pruneFuncDecorator) prune(image *imageapi.Image, streams []*imageapi.ImageStream) []error {
glog.Infof("my message")
return p.pruner()
}
// site of construction of image prune func
imagePruneFunc = pruneFuncDecorator{imagePruneFunc).prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment