config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeUnknown = Mode(iota)
	ModeDeploy
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Mode                      Mode
	WorkingDir                string
	BinaryPath                string
	YdbConfig                 string
	BindStorageRequest        string
	DefineStoragePoolsRequest string
	TenantPoolConfig          string
	UseInMemoryPdisks         bool
	Ports                     struct {
		Grpc  int
		Grpcs int
		Mon   int
		Ic    int
	}
	LogLevel int
	Pdisk    struct {
		Path   string
		SizeGb int
	}
	Certs *certs.Certs
	// contains filtered or unexported fields
}

func New

func New(m Mode) (*Config, error)

func (*Config) Cleanup

func (cfg *Config) Cleanup()

func (*Config) Persist

func (cfg *Config) Persist(filePath string) (hasChanges bool, _ error)

type Mode

type Mode int

Jump to

Keyboard shortcuts

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