driver

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Definition      plugin.Definition
	SessionID       string
	Namespace       string
	SonobuoyImage   string
	CleanedUp       bool
	ImagePullPolicy string
}

Base is the struct that stores state for plugin drivers and contains helper methods.

func (*Base) GetName

func (b *Base) GetName() string

GetName returns the name of this Job plugin.

func (*Base) GetResultType

func (b *Base) GetResultType() string

GetResultType returns the ResultType for this plugin (to adhere to plugin.Interface).

func (*Base) GetSecretName

func (b *Base) GetSecretName() string

GetSecretName gets a name for a secret based on the plugin name and session ID.

func (*Base) GetSessionID

func (b *Base) GetSessionID() string

GetSessionID returns the session id associated with the plugin.

func (*Base) GetTemplateData

func (b *Base) GetTemplateData(masterAddress string, cert *tls.Certificate) (*TemplateData, error)

GetTemplateData fills a TemplateData struct with the passed in and state variables.

func (*Base) MakeTLSSecret

func (b *Base) MakeTLSSecret(cert *tls.Certificate) (*v1.Secret, error)

MakeTLSSecret makes a Kubernetes secret object for the given TLS certificate.

type TemplateData

type TemplateData struct {
	PluginName        string
	ResultType        string
	SessionID         string
	Namespace         string
	SonobuoyImage     string
	ImagePullPolicy   string
	ProducerContainer string
	MasterAddress     string
	CACert            string
	SecretName        string
	ExtraVolumes      []string
}

TemplateData is all the fields available to plugin driver templates.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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