github.com/jwhonce/docker@v0.6.7-0.20190327063223-da823cf3a5a3/daemon/config/builder.go (about)

     1  package config
     2  
     3  import "github.com/docker/docker/api/types/filters"
     4  
     5  // BuilderGCRule represents a GC rule for buildkit cache
     6  type BuilderGCRule struct {
     7  	All         bool         `json:",omitempty"`
     8  	Filter      filters.Args `json:",omitempty"`
     9  	KeepStorage string       `json:",omitempty"`
    10  }
    11  
    12  // BuilderGCConfig contains GC config for a buildkit builder
    13  type BuilderGCConfig struct {
    14  	Enabled            bool            `json:",omitempty"`
    15  	Policy             []BuilderGCRule `json:",omitempty"`
    16  	DefaultKeepStorage string          `json:",omitempty"`
    17  }
    18  
    19  // BuilderConfig contains config for the builder
    20  type BuilderConfig struct {
    21  	GC BuilderGCConfig `json:",omitempty"`
    22  }