prow/kube/client.go
func NewClientFromFile(clusterPath, namespace string) (*Client, error) {
	data, err := ioutil.ReadFile(clusterPath)
	if err != nil {
		return nil, err
	}
	var c Cluster
	if err := yaml.Unmarshal(data, &c); err != nil {
		return nil, err
	}
	return NewClient(&c, namespace)
}
func NewClientFromFile(clusterPath, namespace string) (*Client, error) {
	data, err := ioutil.ReadFile(clusterPath)
	if err != nil {
		return nil, err
	}
	var c Cluster
	if err := yaml.Unmarshal(data, &c); err != nil {
		return nil, err
	}
	return NewClient(&c, namespace)
}
func NewClientFromFile ( clusterPath , namespace string ) ( * Client , error ) { data , err := ioutil . ReadFile ( clusterPath ) if err != nil { return nil , err } var c Cluster if err := yaml . Unmarshal ( data , & c ) ; err != nil { return nil , err } return NewClient ( & c , namespace ) }
// NewClientFromFile reads a Cluster object at clusterPath and returns an
// authenticated client using the keys within.
NewClientFromFile reads a Cluster object at clusterPath and returns an authenticated client using the keys within .