Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactoryFunc ¶ added in v0.1.1
type ClientFactoryFunc func(config *rest.Config, options k8sclient.Options) (k8sclient.Client, error)
ClientFactoryFunc defines the function to create a new client
type InfraCluster ¶
type InfraCluster interface {
GenerateInfraClusterClient(infraClusterSecretRef *corev1.ObjectReference, ownerNamespace string, context gocontext.Context) (k8sclient.Client, string, error)
}
func New ¶
func New(client k8sclient.Client, noCachedClient k8sclient.Client) InfraCluster
New creates new InfraCluster instance
func NewWithFactory ¶ added in v0.1.1
func NewWithFactory(client k8sclient.Client, noCachedClient k8sclient.Client, factory ClientFactoryFunc) InfraCluster
NewWithFactory creates new InfraCluster instance that uses the provided client factory function.
Click to show internal directories.
Click to hide internal directories.