Documentation ¶
Index ¶
- func BuildOutOfClusterConfig() (*rest.Config, error)
- func CreateCronJobCustomResource(kubelessClient versioned.Interface, cronJob *cronjobtriggerApi.CronJobTrigger) error
- func DeleteCronJobCustomResource(kubelessClient versioned.Interface, cronJobName, ns string) error
- func EnsureCronJob(client kubernetes.Interface, funcObj *kubelessApi.Function, ...) error
- func GetAPIExtensionsClientInCluster() clientsetAPIExtensions.Interface
- func GetAPIExtensionsClientOutOfCluster() clientsetAPIExtensions.Interface
- func GetClient() kubernetes.Interface
- func GetClientOutOfCluster() kubernetes.Interface
- func GetCronJobCustomResource(kubelessClient versioned.Interface, cronJobName, ns string) (*cronjobtriggerApi.CronJobTrigger, error)
- func GetDefaultNamespace() string
- func GetFunctionClientInCluster() (versioned.Interface, error)
- func GetKubelessClientOutCluster() (versioned.Interface, error)
- func GetRandString(n int) (string, error)
- func GetSecretsAsLocalObjectReference(secrets ...string) []v1.LocalObjectReference
- func GetTriggerClientInCluster() (versioned.Interface, error)
- func UpdateCronJobCustomResource(kubelessClient versioned.Interface, cronJob *cronjobtriggerApi.CronJobTrigger) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOutOfClusterConfig ¶
BuildOutOfClusterConfig returns k8s config
func CreateCronJobCustomResource ¶
func CreateCronJobCustomResource(kubelessClient versioned.Interface, cronJob *cronjobtriggerApi.CronJobTrigger) error
CreateCronJobCustomResource will create a custom function object
func DeleteCronJobCustomResource ¶
DeleteCronJobCustomResource will delete custom function object
func EnsureCronJob ¶
func EnsureCronJob(client kubernetes.Interface, funcObj *kubelessApi.Function, schedule, reqImage string, or []metav1.OwnerReference, reqImagePullSecret []v1.LocalObjectReference) error
EnsureCronJob creates/updates a function cron job
func GetAPIExtensionsClientInCluster ¶
func GetAPIExtensionsClientInCluster() clientsetAPIExtensions.Interface
GetAPIExtensionsClientInCluster returns a k8s clientset to access APIExtensions from inside of cluster
func GetAPIExtensionsClientOutOfCluster ¶
func GetAPIExtensionsClientOutOfCluster() clientsetAPIExtensions.Interface
GetAPIExtensionsClientOutOfCluster returns a k8s clientset to access APIExtensions from outside of cluster
func GetClient ¶
func GetClient() kubernetes.Interface
GetClient returns a k8s clientset to the request from inside of cluster
func GetClientOutOfCluster ¶
func GetClientOutOfCluster() kubernetes.Interface
GetClientOutOfCluster returns a k8s clientset to the request from outside of cluster
func GetCronJobCustomResource ¶
func GetCronJobCustomResource(kubelessClient versioned.Interface, cronJobName, ns string) (*cronjobtriggerApi.CronJobTrigger, error)
GetCronJobCustomResource will get CronJobTrigger custom resource object
func GetDefaultNamespace ¶
func GetDefaultNamespace() string
GetDefaultNamespace returns the namespace set in current cluster context
func GetFunctionClientInCluster ¶
GetFunctionClientInCluster returns function clientset to the request from inside of cluster
func GetKubelessClientOutCluster ¶
GetKubelessClientOutCluster returns kubeless clientset to make kubeless API request from outside of cluster
func GetRandString ¶
GetRandString returns a random string of lenght N
func GetSecretsAsLocalObjectReference ¶
func GetSecretsAsLocalObjectReference(secrets ...string) []v1.LocalObjectReference
GetSecretsAsLocalObjectReference returns a list of LocalObjectReference based on secret names
func GetTriggerClientInCluster ¶
GetTriggerClientInCluster returns function clientset to the request from inside of cluster
func UpdateCronJobCustomResource ¶
func UpdateCronJobCustomResource(kubelessClient versioned.Interface, cronJob *cronjobtriggerApi.CronJobTrigger) error
UpdateCronJobCustomResource applies changes to the function custom object
Types ¶
This section is empty.