Documentation ¶
Index ¶
- func NewComponents() (*dig.Container, error)
- func ProvideDiscoveryClient(restConfig *rest.Config) (discovery.DiscoveryInterface, error)
- func ProvideDynamicCache(mgr ctrl.Manager, recorder *metrics.Recorder) (*dynamiccache.Cache, error)
- func ProvideEnvironmentManager(client UncachedClient, discoveryClient discovery.DiscoveryInterface) *environment.Manager
- func ProvideLogger() logr.Logger
- func ProvideManager(scheme *runtime.Scheme, restConfig *rest.Config, opts Options) (ctrl.Manager, error)
- func ProvideMetricsRecorder() *metrics.Recorder
- func ProvideRegistry(log logr.Logger, opts Options) *packageimport.Registry
- func ProvideRestConfig() (*rest.Config, error)
- func ProvideScheme() (*runtime.Scheme, error)
- type AllControllers
- type BootstrapControllers
- type ClusterObjectDeploymentController
- type ClusterObjectSetController
- type ClusterObjectSetPhaseController
- type ClusterObjectTemplateController
- type ClusterPackageController
- type HostedClusterController
- type ObjectDeploymentController
- type ObjectSetController
- type ObjectSetPhaseController
- type ObjectTemplateController
- type Options
- type PackageController
- type UncachedClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewComponents ¶
Returns a new pre-configured DI container.
func ProvideDiscoveryClient ¶
func ProvideDiscoveryClient(restConfig *rest.Config) ( discovery.DiscoveryInterface, error, )
func ProvideDynamicCache ¶
func ProvideEnvironmentManager ¶
func ProvideEnvironmentManager( client UncachedClient, discoveryClient discovery.DiscoveryInterface, ) *environment.Manager
func ProvideLogger ¶
func ProvideManager ¶
func ProvideMetricsRecorder ¶
func ProvideRegistry ¶
func ProvideRegistry(log logr.Logger, opts Options) *packageimport.Registry
func ProvideRestConfig ¶
func ProvideScheme ¶
Types ¶
type AllControllers ¶
type AllControllers struct { dig.In ObjectSet ObjectSetController ClusterObjectSet ClusterObjectSetController ObjectSetPhase ObjectSetPhaseController ClusterObjectSetPhase ClusterObjectSetPhaseController ObjectDeployment ObjectDeploymentController ClusterObjectDeployment ClusterObjectDeploymentController Package PackageController ClusterPackage ClusterPackageController ObjectTemplate ObjectTemplateController ClusterObjectTemplate ClusterObjectTemplateController }
DI container to get all controllers.
func (AllControllers) List ¶
func (ac AllControllers) List() []interface{}
func (AllControllers) SetupWithManager ¶
func (ac AllControllers) SetupWithManager(mgr ctrl.Manager) error
type BootstrapControllers ¶
type BootstrapControllers struct { dig.In ClusterPackage ClusterPackageController ClusterObjectDeployment ClusterObjectDeploymentController ClusterObjectSet ClusterObjectSetController }
DI container to get only the controllers needed for self-bootstrap.
func (BootstrapControllers) List ¶
func (bc BootstrapControllers) List() []interface{}
func (BootstrapControllers) SetupWithManager ¶
func (bc BootstrapControllers) SetupWithManager(mgr ctrl.Manager) error
type ClusterObjectDeploymentController ¶
type ClusterObjectDeploymentController struct {
// contains filtered or unexported fields
}
Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.
func ProvideClusterObjectDeploymentController ¶
func ProvideClusterObjectDeploymentController( mgr ctrl.Manager, log logr.Logger, ) ClusterObjectDeploymentController
type ClusterObjectSetController ¶
type ClusterObjectSetController struct {
// contains filtered or unexported fields
}
Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.
func ProvideClusterObjectSetController ¶
func ProvideClusterObjectSetController( mgr ctrl.Manager, log logr.Logger, dc *dynamiccache.Cache, uncachedClient UncachedClient, recorder *metrics.Recorder, ) ClusterObjectSetController
type ClusterObjectSetPhaseController ¶
type ClusterObjectSetPhaseController struct {
// contains filtered or unexported fields
}
Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.
func ProvideClusterObjectSetPhaseController ¶
func ProvideClusterObjectSetPhaseController( mgr ctrl.Manager, log logr.Logger, dc *dynamiccache.Cache, uncachedClient UncachedClient, ) ClusterObjectSetPhaseController
type ClusterObjectTemplateController ¶
type ClusterObjectTemplateController struct {
// contains filtered or unexported fields
}
Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.
func ProvideClusterObjectTemplateController ¶
func ProvideClusterObjectTemplateController( mgr ctrl.Manager, log logr.Logger, uncachedClient UncachedClient, dc *dynamiccache.Cache, ) ClusterObjectTemplateController
type ClusterPackageController ¶
type ClusterPackageController struct {
// contains filtered or unexported fields
}
Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.
func ProvideClusterPackageController ¶
func ProvideClusterPackageController( mgr ctrl.Manager, log logr.Logger, registry *packageimport.Registry, recorder *metrics.Recorder, opts Options, ) ClusterPackageController
type HostedClusterController ¶
type HostedClusterController struct {
// contains filtered or unexported fields
}
Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.
type ObjectDeploymentController ¶
type ObjectDeploymentController struct {
// contains filtered or unexported fields
}
Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.
func ProvideObjectDeploymentController ¶
func ProvideObjectDeploymentController( mgr ctrl.Manager, log logr.Logger, ) ObjectDeploymentController
type ObjectSetController ¶
type ObjectSetController struct {
// contains filtered or unexported fields
}
Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.
func ProvideObjectSetController ¶
func ProvideObjectSetController( mgr ctrl.Manager, log logr.Logger, dc *dynamiccache.Cache, uncachedClient UncachedClient, recorder *metrics.Recorder, ) ObjectSetController
type ObjectSetPhaseController ¶
type ObjectSetPhaseController struct {
// contains filtered or unexported fields
}
Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.
func ProvideObjectSetPhaseController ¶
func ProvideObjectSetPhaseController( mgr ctrl.Manager, log logr.Logger, dc *dynamiccache.Cache, uncachedClient UncachedClient, ) ObjectSetPhaseController
type ObjectTemplateController ¶
type ObjectTemplateController struct {
// contains filtered or unexported fields
}
Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.
func ProvideObjectTemplateController ¶
func ProvideObjectTemplateController( mgr ctrl.Manager, log logr.Logger, uncachedClient UncachedClient, dc *dynamiccache.Cache, ) ObjectTemplateController
type Options ¶
type Options struct { MetricsAddr string PPROFAddr string Namespace string EnableLeaderElection bool ProbeAddr string RemotePhasePackageImage string RegistryHostOverrides string PackageHashModifier *int32 // sub commands SelfBootstrap string SelfBootstrapConfig string PrintVersion bool CopyTo string }
func ProvideOptions ¶
type PackageController ¶
type PackageController struct {
// contains filtered or unexported fields
}
Type alias for dependency injector to differentiate Cluster and non-cluster scoped *Generic<>Controllers.
func ProvidePackageController ¶
func ProvidePackageController( mgr ctrl.Manager, log logr.Logger, registry *packageimport.Registry, recorder *metrics.Recorder, opts Options, ) PackageController