cmd

package
v1.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2017 License: Apache-2.0 Imports: 42 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "funktion",
	Short: "funktion is a Function as a Service (Lambda) style programming model for Kubernetes",
	Long: `Funktion lets you develop complex applications using Functions and then use Flows to bind those functions to any event source (over 200 event sources and connectors supported) and run and scale your functions on top of kubernetes.

For more documentation please see: https://funktion.fabric8.io/`,
	Run: func(cmd *cobra.Command, args []string) {
		if len(args) == 0 {
			cmd.Help()
		}
	},
}

Functions

func CheckEndpointReady added in v1.0.5

func CheckEndpointReady(endpoint *v1.Endpoints) error

CheckEndpointReady checks that the kubernetes endpoint is ready Credits: https://github.com/kubernetes/minikube/blob/v0.9.0/cmd/minikube/cmd/service.go#L101

func CheckService added in v1.0.5

func CheckService(c *kubernetes.Clientset, ns string, serviceName string) error

CheckService waits for the specified service to be ready by returning an error until the service is up The check is done by polling the endpoint associated with the service and when the endpoint exists, returning no error->service-online Credits: https://github.com/kubernetes/minikube/blob/v0.9.0/cmd/minikube/cmd/service.go#L89

func Retry added in v1.0.5

func Retry(attempts int, callback func() error) (err error)

func RetryAfter added in v1.0.5

func RetryAfter(attempts int, callback func() error, d time.Duration) (err error)

func RunCompletion added in v1.0.9

func RunCompletion(out io.Writer, cmd *cobra.Command, args []string) error

Types

type MultiError added in v1.0.5

type MultiError struct {
	Errors []error
}

func (*MultiError) Collect added in v1.0.5

func (m *MultiError) Collect(err error)

func (MultiError) ToError added in v1.0.5

func (m MultiError) ToError() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL