Documentation ¶
Index ¶
- Constants
- func CreateConfigFile(vddkConfig map[string]string, logger logrus.FieldLogger) (string, error)
- func DeleteConfigFile(path string, logger logrus.FieldLogger) error
- func GetStringFromParamsMap(params map[string]interface{}, key string, logger logrus.FieldLogger) (value string, ok bool)
- func IsConnectionResetError(err error) bool
- func RetrievePlatformInfoFromConfig(config *rest.Config, params map[string]interface{}) error
- type ClusterFlavor
- type SeqWriterAt
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 DeleteConfigFile ¶ added in v0.4.0
func DeleteConfigFile(path string, logger logrus.FieldLogger) error
func GetStringFromParamsMap ¶ added in v0.2.0
func IsConnectionResetError ¶ added in v0.2.0
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
Click to show internal directories.
Click to hide internal directories.