controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package controller provides some method to help controller handles event.

Index

Constants

View Source
const (
	OteNamespaceKind = "Namespace"
	OteNamespaceURI  = "/api/v1/namespaces"
	OteApiVersionV1  = "v1"
)

Variables

This section is empty.

Functions

func SerializeNamespaceObject

func SerializeNamespaceObject(name string) ([]byte, error)

SerializeNamespaceObject serializes an oteNamespace to be the body of k8s rest request with specific name.

Types

This section is empty.

Directories

Path Synopsis
Package clustercrd watch cluster crd if it is created, get all namespace from center etcd,and send them to the new cluster.
Package clustercrd watch cluster crd if it is created, get all namespace from center etcd,and send them to the new cluster.
Package namespace watch Namespace resource if it is created, and send it to all clusters.
Package namespace watch Namespace resource if it is created, and send it to all clusters.

Jump to

Keyboard shortcuts

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