Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NoImplementation is a placeholder for a plugin with no // implementation defined NoImplementation = "none" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flag ¶
type Flag struct {
Val string
}
Flag is the unparsed flag value from <plugin-flag>=<impl>[@version] For example, --plugin-metrics=prometheus@1.0.0
func (Flag) Parse ¶
Parse parses the Flag into an implementation and version or returns an error. If the flag is well-formed but no implementation is provided, empty strings are returned with no error so the caller may default values if desired. If the flag is well-formed and an implementation is provided but no version, then the implementation is returned along with an empty string for version. If the flag is malformed, an error is returned.
type Type ¶
type Type int
Type represents a type of plugin
const ( // TypeCNI is the CNI plugin type TypeCNI Type = iota // TypeCSI is the CSI plugin type TypeCSI // TypeCCM is the CCM plugin type TypeCCM // TypeClusterManagement is the ClusterManagement plugin type TypeClusterManagement // TypeAutoscaler is the Autoscaler plugin type TypeAutoscaler // TypeAuditLogs is the AuditLogs plugin type TypeAuditLogs // TypeMetrics is the Metrics plugin type TypeMetrics // TypeLogs is the Logs plugin type TypeLogs // TypeGPUDevice is the GPUDevice plugin type TypeGPUDevice )
Click to show internal directories.
Click to hide internal directories.