juju: github.com/juju/juju/juju/paths Index | Files

package paths

import "github.com/juju/juju/juju/paths"

Index

Package Files

paths.go

Constants

const (
    // NixDataDir is location for agent binaries on *nix operating systems.
    NixDataDir = "/var/lib/juju"

    // NixDataDir is location for Juju logs on *nix operating systems.
    NixLogDir = "/var/log"
)

func CertDir Uses

func CertDir(series string) (string, error)

CertDir returns a filesystem path to the folder used by juju to store certificates that are added by default to the Juju client api certificate pool.

func CloudInitCfgDir Uses

func CloudInitCfgDir(series string) (string, error)

CloudInitCfgDir returns the absolute path to the instance cloud config directory for a particular series.

func ConfDir Uses

func ConfDir(series string) (string, error)

ConfDir returns the path to the directory where Juju may store configuration files.

func CurtinInstallConfig Uses

func CurtinInstallConfig(series string) (string, error)

CurtinInstallConfig returns the absolute path the configuration file written by Curtin during machine provisioning.

func DataDir Uses

func DataDir(series string) (string, error)

DataDir returns a filesystem path to the folder used by juju to store tools, charms, locks, etc

func JujuDumpLogs Uses

func JujuDumpLogs(series string) (string, error)

JujuDumpLogs returns the absolute path to the juju-dumplogs binary for a particular series.

func JujuIntrospect Uses

func JujuIntrospect(series string) (string, error)

JujuIntrospect returns the absolute path to the juju-introspect binary for a particular series.

func JujuRun Uses

func JujuRun(series string) (string, error)

JujuRun returns the absolute path to the juju-run binary for a particular series.

func JujuUpdateSeries Uses

func JujuUpdateSeries(series string) (string, error)

JujuUpdateSeries returns the absolute path to the juju-updateseries binary for a particular series.

func LogDir Uses

func LogDir(series string) (string, error)

LogDir returns filesystem path the directory where juju may save log files.

func MachineCloudInitDir Uses

func MachineCloudInitDir(series string) (string, error)

MachineCloudInitDir returns the absolute path to the instance cloudinit directory for a particular series.

func MetricsSpoolDir Uses

func MetricsSpoolDir(series string) (string, error)

MetricsSpoolDir returns a filesystem path to the folder used by juju to store metrics.

func MustSucceed Uses

func MustSucceed(s string, e error) string

func StorageDir Uses

func StorageDir(series string) (string, error)

StorageDir returns a filesystem path to the folder used by juju to mount machine-level storage.

func TempDir Uses

func TempDir(series string) (string, error)

TempDir returns the path on disk to the correct tmp directory for the series. This value will be the same on virtually all linux systems, but will differ on windows

Package paths imports 2 packages (graph) and is imported by 440 packages. Updated 2019-03-11. Refresh now. Tools for package owners.