Documentation
¶
Overview ¶
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Reference: k8s.io/client-go/util/homedir
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheHome ¶
func CacheHome() string
CacheHome defines the base directory relative to which user specific non-essential data files should be stored.
func ConfigHome ¶
func ConfigHome() string
ConfigHome defines the base directory relative to which user specific configuration files should be stored.
func DataHome ¶
func DataHome() string
DataHome defines the base directory relative to which user specific data files should be stored.
func HomeDir ¶
func HomeDir() string
HomeDir returns the home directory for the current user. On Windows: 1. if none of those locations are writeable, the first of %HOME%, %USERPROFILE%, %HOMEDRIVE%%HOMEPATH% that exists is returned. 2. if none of those locations exists, the first of %HOME%, %USERPROFILE%, %HOMEDRIVE%%HOMEPATH% that is set is returned.
Types ¶
This section is empty.