path

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

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 CacheHomeWithError added in v0.11.1

func CacheHomeWithError() (string, error)

CacheHomeWithError 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 ConfigHomeWithError added in v0.11.1

func ConfigHomeWithError() (string, error)

ConfigHomeWithError 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 DataHomeWithError added in v0.11.1

func DataHomeWithError() (string, error)

DataHomeWithError 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.

func HomeDirWithError added in v0.11.1

func HomeDirWithError() (string, error)

HomeDirWithError returns the home directory for the current user along with an error if any. 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.

Jump to

Keyboard shortcuts

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