config

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppName          string                  `json:"app_name,omitempty"`
	MasterKey        string                  `json:"master_key,omitempty"`
	OperatorName     string                  `json:"op_name,omitempty"`
	OperatorPassword string                  `json:"op_password,omitempty"`
	Stores           map[string]*StoreSource `json:"stores,omitempty"`
	Coredb           string                  `json:"coredb,omitempty"`
	DefaultCabinet   string                  `json:"default_cabinet,omitempty"`
	DefaultDyndb     string                  `json:"default_dyndb,omitempty"`
	NodeOptions      *NodeOptions            `json:"node,omitempty"`
	ExecutorOptions  map[string]any          `json:"executors,omitempty"`
	ModulesOptions   map[string]any          `json:"modules,omitempty"`
}

type Configd

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

func NewConfigd

func NewConfigd(basePath string) *Configd

func (*Configd) ControlPlaneFolder

func (c *Configd) ControlPlaneFolder() string

func (*Configd) DataFolder

func (c *Configd) DataFolder() string

func (*Configd) LogFolder

func (c *Configd) LogFolder() string

func (*Configd) Root

func (c *Configd) Root() string

type NodeOptions

type NodeOptions struct {
	TenantId       string            `json:"tenant_id,omitempty"`
	ServerPort     string            `json:"http_port,omitempty"`
	StaticHosts    map[string]string `json:"static_hosts,omitempty"`
	RootHost       string            `json:"root_host,omitempty"`
	TenantHostBase string            `json:"tenant_host_base,omitempty"`
	Tags           []string          `json:"tags,omitempty"`
	LogFolder      string            `json:"log_folder,omitempty"`
	LogFilePrefix  string            `json:"log_file_prefix,omitempty"`
	NodeCache      string            `json:"node_cache_file,omitempty"`
}

type StoreSource

type StoreSource struct {
	Name     string         `json:"name,omitempty"`
	Vendor   string         `json:"vendor,omitempty"`
	Provider string         `json:"provider,omitempty"`
	HostPath string         `json:"host_path,omitempty"`
	User     string         `json:"user,omitempty"`
	Password string         `json:"password,omitempty"`
	Target   string         `json:"target,omitempty"`
	Port     string         `json:"port,omitempty"`
	Features []string       `json:"features,omitempty"`
	Options  map[string]any `json:"options,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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