(value string)
| 138 | } |
| 139 | |
| 140 | func (tc *tieredCache) Set(value string) error { |
| 141 | for _, v := range strings.Fields(value) { |
| 142 | c, err := parseCache(v) |
| 143 | if err != nil { |
| 144 | return err |
| 145 | } |
| 146 | |
| 147 | if tc.Cache == nil { |
| 148 | tc.Cache = c |
| 149 | } else { |
| 150 | tc.Cache = twotier.New(tc.Cache, c) |
| 151 | } |
| 152 | } |
| 153 | return nil |
| 154 | } |
| 155 | |
| 156 | // parseCache parses c returns the specified Cache implementation. |
| 157 | func parseCache(c string) (imageproxy.Cache, error) { |
nothing calls this directly
no test coverage detected