config

package
v0.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package config exposes static configuration data, and loaded user preferences.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArigatoRoot

func CreateArigatoRoot(arigatoRoot string) (string, error)

CreateArigatoRoot creates the root directory for the Arigato daemon.

Types

type Config

type Config struct {
	APIVersion string
	Version    string

	ArigatoRoot string
	SocketPath  string
	PidPath     string
	DBPath      string

	RegistryURI *url.URL
	CABundle    *x509.CertPool
	PublicKey   *PublicKey
}

Config represents the static and user defined configuration data for Arigato.

func NewConfig

func NewConfig(arigatoRoot string) (*Config, error)

NewConfig returns a new Config, with loaded user preferences.

type PublicKey

type PublicKey struct {
	PublicKey base64.Value `json:"public_key"`
}

PublicKey is en ed25519 public key.

Jump to

Keyboard shortcuts

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