config

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

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) Read

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

Read reads the file to a string.

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) DeploymentConfigPath added in v0.11.0

func (r Root) DeploymentConfigPath() string

func (Root) DotfilesURL added in v0.6.0

func (r Root) DotfilesURL() File

func (Root) Organization

func (r Root) Organization() File

func (Root) PostgresPassword added in v0.7.0

func (r Root) PostgresPassword() File

func (Root) PostgresPath added in v0.7.0

func (r Root) PostgresPath() string

func (Root) PostgresPort added in v0.7.0

func (r Root) PostgresPort() File

func (Root) ReplicaID added in v0.10.0

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