Slide 27
Slide 27 text
Filtering files in container images
https://github.com/tomoyamachi/imagecheck-for-gocon/blob/master/pkg/nginx/nginx.go#L25
import "github.com/goodwithtech/deckoder/analyzer"
type FileMap map[string]FileData
type FileData struct {
Body []byte
FileMode os.FileMode
}
fileMap, err := analyzer.Analyze(
ctx, imageName,
func(h *tar.Header) (bool, error){
... filter process ...
}, option
)