Documentation ¶
Index ¶
- func ClusterctlProviderType(genericProvider operatorv1.GenericProvider) clusterctlv1.ProviderType
- func GetGenericProvider(ctx context.Context, cl ctrlclient.Client, provider configclient.Provider) (operatorv1.GenericProvider, error)
- func IsCoreProvider(p genericprovider.GenericProvider) bool
- func RepositoryFactory(ctx context.Context, providerConfig configclient.Provider, ...) (repository.Repository, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterctlProviderType ¶
func ClusterctlProviderType(genericProvider operatorv1.GenericProvider) clusterctlv1.ProviderType
ClusterctlProviderType returns the provider type from the genericProvider.
func GetGenericProvider ¶ added in v0.9.1
func GetGenericProvider(ctx context.Context, cl ctrlclient.Client, provider configclient.Provider) (operatorv1.GenericProvider, error)
GetGenericProvider returns the first of generic providers matching the type and the name from the configclient.Provider.
func IsCoreProvider ¶
func IsCoreProvider(p genericprovider.GenericProvider) bool
func RepositoryFactory ¶ added in v0.9.0
func RepositoryFactory(ctx context.Context, providerConfig configclient.Provider, configVariablesClient configclient.VariablesClient) (repository.Repository, error)
RepositoryFactory returns the repository implementation corresponding to the provider URL. inspired by https://github.com/kubernetes-sigs/cluster-api/blob/124d9be7035e492f027cdc7a701b6b179451190a/cmd/clusterctl/client/repository/client.go#L170
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.