config

package
v2.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

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