plugin

package
Version: v0.0.0-...-237ed90 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL