config

package
v2.33.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: AGPL-3.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FlagName = "global-config"
)

Variables

This section is empty.

Functions

func DefaultDir

func DefaultDir() string

Types

type File

type File string

File provides convenience methods for interacting with *os.File.

func (File) Delete

func (f File) Delete() error

Delete deletes the file.

func (File) Exists added in v2.9.0

func (f File) Exists() bool

func (File) Read

func (f File) Read() (string, error)

Read reads the file to a string. All leading and trailing whitespace is removed.

func (File) Write

func (f File) Write(s string) error

Write writes the string to the file.

type Root

type Root string

Root represents the configuration directory.

func (Root) DotfilesURL

func (r Root) DotfilesURL() File

func (Root) Organization

func (r Root) Organization() File

func (Root) PostgresPassword

func (r Root) PostgresPassword() File

func (Root) PostgresPath

func (r Root) PostgresPath() string

func (Root) PostgresPort

func (r Root) PostgresPort() File

func (Root) ReplicaID

func (r Root) ReplicaID() File

ReplicaID is a unique identifier for the Coder server.

func (Root) Session

func (r Root) Session() File

func (Root) URL

func (r Root) URL() File

Jump to

Keyboard shortcuts

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