Documentation ¶
Index ¶
- type Base
- func (b *Base) GetName() string
- func (b *Base) GetResultType() string
- func (b *Base) GetSecretName() string
- func (b *Base) GetSessionID() string
- func (b *Base) GetTemplateData(masterAddress string, cert *tls.Certificate) (*TemplateData, error)
- func (b *Base) MakeTLSSecret(cert *tls.Certificate) (*v1.Secret, error)
- type TemplateData
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 ImagePullSecrets string CustomAnnotations map[string]string }
Base is the struct that stores state for plugin drivers and contains helper methods.
func (*Base) GetResultType ¶
GetResultType returns the ResultType for this plugin (to adhere to plugin.Interface).
func (*Base) GetSecretName ¶
GetSecretName gets a name for a secret based on the plugin name and session ID.
func (*Base) GetSessionID ¶
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 ¶
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 ImagePullSecrets string CustomAnnotations map[string]string ProducerContainer string MasterAddress string CACert string SecretName string ExtraVolumes []string }
TemplateData is all the fields available to plugin driver templates.
Click to show internal directories.
Click to hide internal directories.