plugin

package
v0.0.0-...-0111df2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (f Flag) Parse() (string, string, error)

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
)

func (Type) String

func (p Type) String() string

Jump to

Keyboard shortcuts

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