Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface {
KubeForProviderConfig(ctx context.Context, pc kconfig.ProviderConfigSpec) (client.Client, *rest.Config, error)
}
A Builder creates Kubernetes clients and REST configs for a given provider config.
type BuilderFn ¶
type BuilderFn func(ctx context.Context, pc kconfig.ProviderConfigSpec) (client.Client, *rest.Config, error)
BuilderFn is a function that can be used as a Builder.
type IdentityAwareBuilder ¶
type IdentityAwareBuilder struct {
// contains filtered or unexported fields
}
IdentityAwareBuilder is a Builder that can inject identity credentials into the REST config of a Kubernetes client.
func NewIdentityAwareBuilder ¶
func NewIdentityAwareBuilder(local client.Client) *IdentityAwareBuilder
NewIdentityAwareBuilder returns a new IdentityAwareBuilder.
func (*IdentityAwareBuilder) KubeForProviderConfig ¶
func (b *IdentityAwareBuilder) KubeForProviderConfig(ctx context.Context, pc kconfig.ProviderConfigSpec) (client.Client, *rest.Config, error)
KubeForProviderConfig returns the kube client and *rest.config for the given provider config.
Click to show internal directories.
Click to hide internal directories.