AptlyContext is a common context shared by all commands
| 37 | |
| 38 | // AptlyContext is a common context shared by all commands |
| 39 | type AptlyContext struct { |
| 40 | sync.Mutex |
| 41 | |
| 42 | gocontext.Context |
| 43 | |
| 44 | flags, globalFlags *flag.FlagSet |
| 45 | configLoaded bool |
| 46 | |
| 47 | progress aptly.Progress |
| 48 | downloader aptly.Downloader |
| 49 | taskList *task.List |
| 50 | database database.Storage |
| 51 | packagePool aptly.PackagePool |
| 52 | publishedStorages map[string]aptly.PublishedStorage |
| 53 | dependencyOptions int |
| 54 | architecturesList []string |
| 55 | structuredLogging bool |
| 56 | // Debug features |
| 57 | fileCPUProfile *os.File |
| 58 | fileMemProfile *os.File |
| 59 | fileMemStats *os.File |
| 60 | } |
| 61 | |
| 62 | // Check interface |
| 63 | var _ aptly.PublishedStorageProvider = &AptlyContext{} |
nothing calls this directly
no outgoing calls
no test coverage detected