controller

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	CE cloudevents.Client
	// contains filtered or unexported fields
}

func New

func New(root, namespace string, client dynamic.Interface) *Controller

func (*Controller) DeleteTasksHandler

func (c *Controller) DeleteTasksHandler(resp http.ResponseWriter, req *http.Request)

func (*Controller) GetTasksHandler

func (c *Controller) GetTasksHandler(resp http.ResponseWriter, req *http.Request)

func (*Controller) ListDeleteHandler

func (c *Controller) ListDeleteHandler(w http.ResponseWriter, req *http.Request)

func (*Controller) ListHandler

func (c *Controller) ListHandler(w http.ResponseWriter, r *http.Request)

func (*Controller) Mux

func (c *Controller) Mux() *http.ServeMux

func (*Controller) RootHandler

func (c *Controller) RootHandler(w http.ResponseWriter, r *http.Request)

func (*Controller) TasksHandler

func (c *Controller) TasksHandler(resp http.ResponseWriter, req *http.Request)

type Task

type Task struct {
	ID        string `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

type TaskDelete

type TaskDelete struct {
	ID        string `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

Jump to

Keyboard shortcuts

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