Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// List returns the current existing function resources, populating the "deployment" sub-resource
List(context.Context, string) ([]Resources, error)
// Get returns the resources named by name, populating the "deployment" sub-resource
Get(context.Context, string, string) (Resources, error)
// CreateOrUpdate creates or updates exisisting resources
CreateOrUpdate(context.Context, *nuclioio.Function, string) (Resources, error)
// WaitAvailable waits until the resources are ready
WaitAvailable(context.Context, string, string) error
// Delete deletes resources
Delete(context.Context, string, string) error
// SetPlatformConfigurationProvider sets the provider of the platform configuration for any future access
SetPlatformConfigurationProvider(PlatformConfigurationProvider)
}
func NewLazyClient ¶
func NewLazyClient(parentLogger logger.Logger, kubeClientSet kubernetes.Interface, nuclioClientSet nuclioio_client.Interface) (Client, error)
type PlatformConfigurationProvider ¶
type PlatformConfigurationProvider interface {
// GetPlatformConfiguration returns a platform configuration
GetPlatformConfiguration() *platformconfig.Configuration
}
type Resources ¶
type Resources interface {
// Deployment returns the deployment
Deployment() (*apps_v1beta1.Deployment, error)
// ConfigMap returns the configmap
ConfigMap() (*v1.ConfigMap, error)
// Service returns the service
Service() (*v1.Service, error)
// HorizontalPodAutoscaler returns the hpa
HorizontalPodAutoscaler() (*autos_v1.HorizontalPodAutoscaler, error)
// Ingress returns the ingress
Ingress() (*ext_v1beta1.Ingress, error)
}
Resources holds the resources a functionres holds
Click to show internal directories.
Click to hide internal directories.