kfile

package
v0.9.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Index

Constants

View Source
const (
	EnvKusionPath = "KUSION_PATH"
	// CachedVersionFile is the name of the file we use to store when we last checked if the CLI was out of date
	CachedVersionFile = ".cached_version"
)

Variables

This section is empty.

Functions

func FileExists

func FileExists(filename string) (bool, error)

func GetCachedVersionFilePath added in v0.7.2

func GetCachedVersionFilePath() (string, error)

GetCachedVersionFilePath returns the location where the CLI caches information from pulumi.com on the newest available version of the CLI

func GetCredentials

func GetCredentials() (map[string]interface{}, error)

Get the kusion credentials data

func GetCredentialsToken

func GetCredentialsToken() string

GetCredentialsToken returns the token from credentials file

func KusionCredentialsFilename

func KusionCredentialsFilename() string

Get the file name of the kusion credentials file

func KusionDataFolder

func KusionDataFolder() (string, error)

KusionDataFolder gets the kusion data directory of the current user

func Stat

func Stat(filename string) (fileInfo os.FileInfo, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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