decorator

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metacontroller

type Metacontroller struct {
	// contains filtered or unexported fields
}

func (*Metacontroller) Start

func (mc *Metacontroller) Start()

func (*Metacontroller) Stop

func (mc *Metacontroller) Stop()

type SyncHookRequest added in v0.4.0

type SyncHookRequest struct {
	Controller  *v1alpha1.DecoratorController `json:"controller"`
	Object      *unstructured.Unstructured    `json:"object"`
	Attachments common.ChildMap               `json:"attachments"`
	Finalizing  bool                          `json:"finalizing"`
}

SyncHookRequest is the object sent as JSON to the sync hook.

type SyncHookResponse added in v0.4.0

type SyncHookResponse struct {
	Labels      map[string]*string           `json:"labels"`
	Annotations map[string]*string           `json:"annotations"`
	Status      map[string]interface{}       `json:"status"`
	Attachments []*unstructured.Unstructured `json:"attachments"`

	ResyncAfterSeconds float64 `json:"resyncAfterSeconds"`

	// Finalized is only used by the finalize hook.
	Finalized bool `json:"finalized"`
}

SyncHookResponse is the expected format of the JSON response from the sync hook.

Jump to

Keyboard shortcuts

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