Documentation ¶
Index ¶
- func ActionInvocation(wskclient *whisk.Client, actionName string, payload interface{}) (map[string]interface{}, error)
- func ConfigureOwprops(name string, secrets corev1.SecretInterface)
- func ConfigurePrivateGithubSecret(secrets corev1.SecretInterface)
- func ConfigureSeedDefaults(configmaps corev1.ConfigMapInterface)
- func ConfigureSeedSecret(secrets corev1.SecretInterface)
- func CreateNamespaceOrDie(namespaces corev1.NamespaceInterface, stem string) string
- func DeleteNamespace(namespaces corev1.NamespaceInterface, namespace string)
- func EnsureNamespaceOrDie(namespaces corev1.NamespaceInterface, namespace string)
- func GetAction(client *whisk.Client, actionName string) func() (*whisk.Action, error)
- func GetActivation(client *whisk.Client, actionName string) func() (*whisk.Activation, error)
- func GetClientsetOrDie(restCfg *rest.Config) *kubernetes.Clientset
- func GetContextNamespaceOrDie() string
- func GetObject(context context.Context, obj runtime.Object) func() runtime.Object
- func GetPackage(client *whisk.Client, pkgName string) func() (*whisk.Package, error)
- func GetState(context context.Context, obj runtime.Object) func() string
- func InvokeAction(wskclient *whisk.Client, actionName string, payload interface{}) (string, error)
- func LoadFunction(filename string) owv1.Function
- func LoadInvocation(filename string) owv1.Invocation
- func LoadObject(filename string, obj runtime.Object) runtime.Object
- func LoadPackage(filename string) owv1.Package
- func LoadRule(filename string) owv1.Rule
- func LoadTrigger(filename string) owv1.Trigger
- func PostFunction(context rcontext.Context, name string, spec owv1.FunctionSpec, async bool) runtime.Object
- func PostInNs(context rcontext.Context, obj runtime.Object, async bool, delay time.Duration) runtime.Object
- func PostInvocation(context rcontext.Context, name string, spec owv1.InvocationSpec, async bool) runtime.Object
- func PostPackage(context rcontext.Context, name string, spec owv1.PackageSpec, async bool) runtime.Object
- func Result(httpResponse map[string]interface{}) map[string]interface{}
- func SetupKubeOrDie(restCfg *rest.Config, stem string) string
- func StartTestManager(mgr manager.Manager) chan struct{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionInvocation ¶
func ActionInvocation(wskclient *whisk.Client, actionName string, payload interface{}) (map[string]interface{}, error)
ActionInvocation invokes the given action, dropping the response for gomega compatibility
func ConfigureOwprops ¶
func ConfigureOwprops(name string, secrets corev1.SecretInterface)
ConfigureOwprops sets seed-defaults-owprops
func ConfigurePrivateGithubSecret ¶
func ConfigurePrivateGithubSecret(secrets corev1.SecretInterface)
ConfigurePrivateGithubSecret sets raw.github.ibm.com secret
func ConfigureSeedDefaults ¶
func ConfigureSeedDefaults(configmaps corev1.ConfigMapInterface)
ConfigureSeedDefaults sets seed-defaults
func ConfigureSeedSecret ¶
func ConfigureSeedSecret(secrets corev1.SecretInterface)
ConfigureSeedSecret sets seed-secret and seed-secret-tokens
func CreateNamespaceOrDie ¶
func CreateNamespaceOrDie(namespaces corev1.NamespaceInterface, stem string) string
CreateNamespaceOrDie creates a new unique namespace from stem
func DeleteNamespace ¶
func DeleteNamespace(namespaces corev1.NamespaceInterface, namespace string)
DeleteNamespace deletes a kube namespace. Wait for all resources to be really gone.
func EnsureNamespaceOrDie ¶
func EnsureNamespaceOrDie(namespaces corev1.NamespaceInterface, namespace string)
EnsureNamespaceOrDie makes sure the given namespace exists.
func GetActivation ¶
GetActivation tries to get activations for the action.
func GetClientsetOrDie ¶
func GetClientsetOrDie(restCfg *rest.Config) *kubernetes.Clientset
GetClientsetOrDie gets a Kube clientset for KUBECONFIG
func GetContextNamespaceOrDie ¶
func GetContextNamespaceOrDie() string
GetContextNamespaceOrDie returns the current namespace context or "default"
func GetPackage ¶ added in v0.7.1
GetPackage tries to get the package.
func InvokeAction ¶
InvokeAction invokes the given action
func LoadFunction ¶
LoadFunction loads the YAML spec into obj
func LoadInvocation ¶
func LoadInvocation(filename string) owv1.Invocation
LoadInvocation loads the YAML spec into obj
func LoadObject ¶
LoadObject loads the YAML spec into obj
func LoadPackage ¶
LoadPackage loads the YAML spec into obj
func LoadTrigger ¶
LoadTrigger loads the YAML spec into obj
func PostFunction ¶
func PostFunction(context rcontext.Context, name string, spec owv1.FunctionSpec, async bool) runtime.Object
PostFunction creates a Function object
func PostInNs ¶
func PostInNs(context rcontext.Context, obj runtime.Object, async bool, delay time.Duration) runtime.Object
PostInNs the object
func PostInvocation ¶
func PostInvocation(context rcontext.Context, name string, spec owv1.InvocationSpec, async bool) runtime.Object
PostInvocation creates a Function object
func PostPackage ¶
func PostPackage(context rcontext.Context, name string, spec owv1.PackageSpec, async bool) runtime.Object
PostPackage creates a Package object
func SetupKubeOrDie ¶
SetupKubeOrDie setups Kube for testing
func StartTestManager ¶
StartTestManager starts the manager
Types ¶
This section is empty.