...

Source file src/helm.sh/helm/v3/pkg/helmpath/xdg/xdg.go

Documentation: helm.sh/helm/v3/pkg/helmpath/xdg

     1  /*
     2  Copyright The Helm Authors.
     3  Licensed under the Apache License, Version 2.0 (the "License");
     4  you may not use this file except in compliance with the License.
     5  You may obtain a copy of the License at
     6  
     7  http://www.apache.org/licenses/LICENSE-2.0
     8  
     9  Unless required by applicable law or agreed to in writing, software
    10  distributed under the License is distributed on an "AS IS" BASIS,
    11  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  See the License for the specific language governing permissions and
    13  limitations under the License.
    14  */
    15  
    16  // Package xdg holds constants pertaining to XDG Base Directory Specification.
    17  //
    18  // The XDG Base Directory Specification https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
    19  // specifies the environment variables that define user-specific base directories for various categories of files.
    20  package xdg
    21  
    22  const (
    23  	// CacheHomeEnvVar is the environment variable used by the
    24  	// XDG base directory specification for the cache directory.
    25  	CacheHomeEnvVar = "XDG_CACHE_HOME"
    26  
    27  	// ConfigHomeEnvVar is the environment variable used by the
    28  	// XDG base directory specification for the config directory.
    29  	ConfigHomeEnvVar = "XDG_CONFIG_HOME"
    30  
    31  	// DataHomeEnvVar is the environment variable used by the
    32  	// XDG base directory specification for the data directory.
    33  	DataHomeEnvVar = "XDG_DATA_HOME"
    34  )
    35  

View as plain text