go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers/builtin.go (about)

     1  // Copyright (c) Mondoo, Inc.
     2  // SPDX-License-Identifier: BUSL-1.1
     3  //
     4  // This file is auto-generated by 'make providers/config'
     5  // and configured via 'providers.yaml'
     6  
     7  package providers
     8  
     9  // This is primarily useful for debugging purposes, if you want to
    10  // trace into any provider without having to debug the plugin
    11  // connection separately.
    12  
    13  import (
    14  	_ "embed"
    15  
    16  	coreconf "go.mondoo.com/cnquery/providers/core/config"
    17  	core "go.mondoo.com/cnquery/providers/core/provider"
    18  )
    19  
    20  //go:embed core/resources/core.resources.json
    21  var coreInfo []byte
    22  
    23  var builtinProviders = map[string]*builtinProvider{
    24  	coreconf.Config.ID: {
    25  		Runtime: &RunningProvider{
    26  			Name:     coreconf.Config.Name,
    27  			ID:       coreconf.Config.ID,
    28  			Plugin:   core.Init(),
    29  			Schema:   MustLoadSchema("core", coreInfo),
    30  			isClosed: false,
    31  		},
    32  		Config: &coreconf.Config,
    33  	},
    34  	mockProvider.ID: {
    35  		Runtime: &RunningProvider{
    36  			Name:     mockProvider.Name,
    37  			ID:       mockProvider.ID,
    38  			Plugin:   &mockProviderService{coordinator: &Coordinator},
    39  			isClosed: false,
    40  		},
    41  		Config: mockProvider.Provider,
    42  	},
    43  }