configstore

package
v0.0.0-...-086c857 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigStore

type ConfigStore struct {
	// contains filtered or unexported fields
}

Server config with private values for use in backend functions. Initialize with servconf.New()

func New

func New(username string, serverName string) *ConfigStore

func (*ConfigStore) Get

func (cfg *ConfigStore) Get() *servconf.ServerConfig

func (*ConfigStore) SetCPU

func (cfg *ConfigStore) SetCPU(cpu string)

func (*ConfigStore) SetDisk

func (cfg *ConfigStore) SetDisk(disk string)

func (*ConfigStore) SetExternalPort

func (cfg *ConfigStore) SetExternalPort(port int32)

func (*ConfigStore) SetIP

func (cfg *ConfigStore) SetIP(ip string)

func (*ConfigStore) SetInternalPort

func (cfg *ConfigStore) SetInternalPort(port int32)

func (*ConfigStore) SetProtocol

func (cfg *ConfigStore) SetProtocol(protocol apiv1.Protocol)

func (*ConfigStore) SetRAM

func (cfg *ConfigStore) SetRAM(ram string)

func (*ConfigStore) SetType

func (cfg *ConfigStore) SetType(serverType string) error

Jump to

Keyboard shortcuts

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