manifest

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Decoder is a runtime.Decoder for Sonobuoy's manifest objects

Encoder is a runtime.Encoder for Sonobuoy's manifest objects

View Source
var GroupVersion = schema.GroupVersion{Group: "sonobuoy", Version: "v0"}

GroupVersion is the schema groupVersion for Sonobuoy

Functions

func ContainerToYAML

func ContainerToYAML(container *v1.Container) (string, error)

ContainerToYAML abuses APIMachinery to directly serialize a container to YAML

Types

type Container

type Container struct {
	v1.Container
	// contains filtered or unexported fields
}

Container is a thin wrapper around coreV1.Container that supplies DeepCopyObject and GetObjectKind

func (*Container) DeepCopy

func (c *Container) DeepCopy() *Container

DeepCopy wraps Container.DeepCopy, copying the objectKind as well.

func (*Container) DeepCopyObject

func (c *Container) DeepCopyObject() kuberuntime.Object

DeepCopyObject is just DeepCopy, needed for runtime.Object

func (*Container) GetObjectKind

func (c *Container) GetObjectKind() schema.ObjectKind

GetObjectKind returns the underlying objectKind, needed for runtime.Object

func (*Container) GroupVersionKind

func (o *Container) GroupVersionKind() schema.GroupVersionKind

func (*Container) SetGroupVersionKind

func (o *Container) SetGroupVersionKind(gvk schema.GroupVersionKind)

type Manifest

type Manifest struct {
	SonobuoyConfig SonobuoyConfig `json:"sonobuoy-config"`
	Spec           Container      `json:"spec"`
	ExtraVolumes   []Volume       `json:"extra-volumes"`
	// contains filtered or unexported fields
}

Manifest is the high-level manifest for a plugin

func (*Manifest) DeepCopyObject

func (m *Manifest) DeepCopyObject() kuberuntime.Object

DeepCopyObject is required by runtime.Object

func (*Manifest) GetObjectKind

func (m *Manifest) GetObjectKind() schema.ObjectKind

GetObjectKind is required by runtime.Object

func (*Manifest) GroupVersionKind

func (o *Manifest) GroupVersionKind() schema.GroupVersionKind

func (*Manifest) SetGroupVersionKind

func (o *Manifest) SetGroupVersionKind(gvk schema.GroupVersionKind)

type SonobuoyConfig

type SonobuoyConfig struct {
	Driver     string `json:"driver"`
	PluginName string `json:"plugin-name"`
	ResultType string `json:"result-type"`
	// contains filtered or unexported fields
}

SonobuoyConfig is the Sonobuoy metadata that plugins all supply

func (*SonobuoyConfig) DeepCopy

func (s *SonobuoyConfig) DeepCopy() *SonobuoyConfig

DeepCopy makes a deep copy (needed by DeepCopyObject)

func (*SonobuoyConfig) GroupVersionKind

func (o *SonobuoyConfig) GroupVersionKind() schema.GroupVersionKind

func (*SonobuoyConfig) SetGroupVersionKind

func (o *SonobuoyConfig) SetGroupVersionKind(gvk schema.GroupVersionKind)

type Volume

type Volume struct {
	v1.Volume
	// contains filtered or unexported fields
}

Volume is a thin wrapper around coreV1.Volume that supplies DeepCopyObject and GetObjectKind

func (*Volume) DeepCopy

func (v *Volume) DeepCopy() *Volume

DeepCopy wraps Volume.DeepCopy, copying the objectKind as well.

func (*Volume) DeepCopyObject

func (v *Volume) DeepCopyObject() kuberuntime.Object

DeepCopyObject is just DeepCopy, needed for runtime.Object

func (*Volume) GetObjectKind

func (v *Volume) GetObjectKind() schema.ObjectKind

GetObjectKind returns the underlying objectKind, needed for runtime.Object

func (*Volume) GroupVersionKind

func (o *Volume) GroupVersionKind() schema.GroupVersionKind

func (*Volume) SetGroupVersionKind

func (o *Volume) SetGroupVersionKind(gvk schema.GroupVersionKind)

Jump to

Keyboard shortcuts

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