manifest

package
v0.11.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: Apache-2.0 Imports: 7 Imported by: 3

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"`
	// 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)

Jump to

Keyboard shortcuts

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