server

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ApiV1Prefix = "/v1"

Variables

This section is empty.

Functions

Types

type Config

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

Configuration passed to a Cloudfauj server. It dictates where and how the server state is organized.

func NewConfig added in v0.0.2

func NewConfig(dataDir string) *Config

NewConfig returns a new Server Configuration

func (*Config) DBDir added in v0.0.2

func (c *Config) DBDir() string

DBDir returns the exact path of the directory containing database file(s)

func (*Config) DBFilePath

func (c *Config) DBFilePath() string

DBFilePath returns the exact path of main database file

func (*Config) DataDir

func (c *Config) DataDir() string

func (*Config) DeploymentsDir added in v0.0.2

func (c *Config) DeploymentsDir() string

DeploymentsDir returns the exact path of directory containing data of all deployments.

func (*Config) TerraformDir added in v0.0.2

func (c *Config) TerraformDir() string

TerraformDir returns the exact path of directory containing all terraform infrastructure configurations.

func (*Config) TerraformDomainsDir added in v0.0.2

func (c *Config) TerraformDomainsDir() string

TerraformDomainsDir returns the exact path of directory containing all terraform infrastructure configurations for domains. This is a subdir of TerraformDir.

func (*Config) TerraformVersion added in v0.0.2

func (c *Config) TerraformVersion() string

TerraformVersion returns the version of terraform the server works with.

type Event

type Event struct {
	Msg string
	Err error
}

Event represent a server event

Jump to

Keyboard shortcuts

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