util

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	VCSecretNs             = "kube-system"
	VCSecretNsSupervisor   = "vmware-system-csi"
	VCSecret               = "vsphere-config-secret"
	VCSecretTKG            = "csi-vsphere-config"
	VCSecretData           = "csi-vsphere.conf"
	VCSecretDataSupervisor = "vsphere-cloud-provider.conf"
)
View Source
const (
	Unknown    ClusterFlavor = "Unknown"
	Supervisor               = "Supervisor Cluster"
	TkgGuest                 = "TKG Guest Cluster"
	VSphere                  = "vSphere Kubernetes Cluster"
)
View Source
const (
	TkgSupervisorService = "supervisor"
)
View Source
const VddkConfigPath = "/tmp/config"

TODO: Merge constants from plugin and here

Variables

This section is empty.

Functions

func CreateConfigFile added in v0.4.0

func CreateConfigFile(vddkConfig map[string]string, logger logrus.FieldLogger) (string, error)

func DeleteConfigFile added in v0.4.0

func DeleteConfigFile(path string, logger logrus.FieldLogger) error

func GetStringFromParamsMap added in v0.2.0

func GetStringFromParamsMap(params map[string]interface{}, key string, logger logrus.FieldLogger) (value string, ok bool)

func IsConnectionResetError added in v0.2.0

func IsConnectionResetError(err error) bool

func RetrievePlatformInfoFromConfig added in v0.2.0

func RetrievePlatformInfoFromConfig(config *rest.Config, params map[string]interface{}) error

Types

type ClusterFlavor added in v0.2.0

type ClusterFlavor string

Indicates the type of cluster where Plugin is installed

func GetClusterFlavor added in v0.2.0

func GetClusterFlavor(config *rest.Config) (ClusterFlavor, error)

Check the cluster flavor that the plugin is deployed in

type SeqWriterAt

type SeqWriterAt struct {
	// contains filtered or unexported fields
}

func NewSeqWriterAt

func NewSeqWriterAt(w io.Writer) SeqWriterAt

func (SeqWriterAt) WriteAt

func (this SeqWriterAt) WriteAt(p []byte, offset int64) (n int, err error)

Jump to

Keyboard shortcuts

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