Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TestDC *mockedDependencyContainer
)
Functions ¶
Types ¶
type Container ¶
type Container interface { GetHTTPClient(options ...http.Option) http.Client GetEtcdClient(endpoints []string, options ...etcd.Option) (etcd.Client, error) MustGetEtcdClient(endpoints []string, options ...etcd.Option) etcd.Client GetK8sClient(options ...k8s.Option) (k8s.Client, error) MustGetK8sClient(options ...k8s.Option) k8s.Client GetRegistryClient(repo string, options ...cr.Option) (cr.Client, error) GetVsphereClient(config *vsphere.ProviderClusterConfiguration) (vsphere.Client, error) GetHelmClient(namespace string, options ...helm.Option) (helm.Client, error) GetClientConfig() (*rest.Config, error) GetClock() clockwork.Clock }
Container with external dependencies
func NewDependencyContainer ¶
func NewDependencyContainer() Container
NewDependencyContainer creates new Dependency container with external clients
Click to show internal directories.
Click to hide internal directories.