Documentation ¶
Index ¶
- Variables
- func ExecutorLabels(funcinst *rfv1beta3.Funcinst) map[string]string
- func ExecutorPodName(pod *apiv1.Pod) string
- func FuncinstAnnotations(fndef *rfv1beta3.Funcdef) map[string]string
- func FuncinstLabels(fndef *rfv1beta3.Funcdef) map[string]string
- func GetFunctionVersion(fndef *rfv1beta3.Funcdef) string
- func GetHash(fndef *rfv1beta3.Funcdef) string
- func GetMD5Hash(object interface{}) string
- func GetSpecHash(fndef *rfv1beta3.Funcdef) string
- func IsExecutorRes(obj interface{}) (metav1.Object, bool)
- func IsRefuncRes(obj interface{}) (metav1.Object, bool)
- func IsRuntimePodReady(obj metav1.Object) bool
- func IsXenvRes(obj interface{}) (metav1.Object, bool)
- func IssueToken(sub string, perms rfv1beta3.Permissions, exp time.Duration) (string, error)
- func K8sResNameForRefunc(refunc *rfv1beta3.Funcdef) string
- func Sign(claims jwt.Claims) (string, error)
- func UpdateFuncinstStatus(c rfcliv1.FuncinstInterface, funcinst *rfv1beta3.Funcinst, ...) (*rfv1beta3.Funcinst, error)
- func XenvLabels(xenv *rfv1beta3.Xenv) map[string]string
Constants ¶
This section is empty.
Variables ¶
var (
ErrMissingPrivateKeyFile = errors.New(`creds: "ECDSA_KEY_FILE" not specified`)
)
well known errros
Functions ¶
func ExecutorLabels ¶
ExecutorLabels infers a set of labels for corresponding rs, pods
func ExecutorPodName ¶
ExecutorPodName returns a printable name of an executor pod
func FuncinstAnnotations ¶ added in v0.2.1
FuncinstAnnotations infers a set of annotations for corresponding funcinst
func FuncinstLabels ¶
FuncinstLabels infers a set of labels for corresponding funcinst
func GetFunctionVersion ¶
func GetMD5Hash ¶ added in v0.2.1
func GetMD5Hash(object interface{}) string
func GetSpecHash ¶ added in v0.2.1
func IsExecutorRes ¶
IsExecutorRes checks if a given k8s resource belongs to a executor
func IsRefuncRes ¶
IsRefuncRes checks if the given object has refunc labels, and return its meta for future filtering
func IsRuntimePodReady ¶
IsRuntimePodReady returns true if given k8s resource is an executor pod and it has been initialized
func IssueToken ¶
IssueToken issues a token to connect to nats for a funcinst
func K8sResNameForRefunc ¶
K8sResNameForRefunc returns a valid k8s name fro funcdef
func UpdateFuncinstStatus ¶
func UpdateFuncinstStatus(c rfcliv1.FuncinstInterface, funcinst *rfv1beta3.Funcinst, status rfv1beta3.FuncinstStatus) (*rfv1beta3.Funcinst, error)
UpdateFuncinstStatus ensures update to given status only if status changed
Types ¶
This section is empty.