openshift/openshift-copies.go
func loadTLSFiles(c *restConfig) error {
	var err error
	c.CAData, err = dataFromSliceOrFile(c.CAData, c.CAFile)
	if err != nil {
		return err
	}

	c.CertData, err = dataFromSliceOrFile(c.CertData, c.CertFile)
	if err != nil {
		return err
	}

	c.KeyData, err = dataFromSliceOrFile(c.KeyData, c.KeyFile)
	if err != nil {
		return err
	}
	return nil
}
func loadTLSFiles(c *restConfig) error {
	var err error
	c.CAData, err = dataFromSliceOrFile(c.CAData, c.CAFile)
	if err != nil {
		return err
	}

	c.CertData, err = dataFromSliceOrFile(c.CertData, c.CertFile)
	if err != nil {
		return err
	}

	c.KeyData, err = dataFromSliceOrFile(c.KeyData, c.KeyFile)
	if err != nil {
		return err
	}
	return nil
}
func loadTLSFiles ( c * restConfig ) error { var err error c . CAData , err = dataFromSliceOrFile ( c . CAData , c . CAFile ) if err != nil { return err } c . CertData , err = dataFromSliceOrFile ( c . CertData , c . CertFile ) if err != nil { return err } c . KeyData , err = dataFromSliceOrFile ( c . KeyData , c . KeyFile ) if err != nil { return err } return nil }
// loadTLSFiles is a modified copy of k8s.io/kubernetes/pkg/client/transport.loadTLSFiles.
// loadTLSFiles copies the data from the CertFile, KeyFile, and CAFile fields into the CertData,
// KeyData, and CAFile fields, or returns an error. If no error is returned, all three fields are
// either populated or were empty to start.
loadTLSFiles is a modified copy of k8s . io / kubernetes / pkg / client / transport . loadTLSFiles . loadTLSFiles copies the data from the CertFile KeyFile and CAFile fields into the CertData KeyData and CAFile fields or returns an error . If no error is returned all three fields are either populated or were empty to start .