daemon

package
v0.6.0-rc Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: MIT Imports: 6 Imported by: 0

README

Arigato Daemon

This folder contains the Arigato Daemon which is responsible for performing all cryptographic operations on behalf of the user (through the CLI).

More details are available in the High-Level Architecture Document.

Building and Linting

You can build the daemon using the arigato/cli Docker container through the $REPO_HOME/scripts/build.sh script. To build the container use $REPO_HOME/scripts/build-container.sh.

You can develop outside the container using make build after glide install. However, you will manually have to place the binary in $REPO_HOME/cli/bin/ag-daemon.

Dependencies

  • Go 1.6
  • Glide for package vendoring

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

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

Daemon is the arigato coprocess that contains session secrets, handles cryptographic operations, and communication with the registry.

func New

func New(cfg *config.Config) (*Daemon, error)

New creates a new Daemon.

func (*Daemon) Addr

func (d *Daemon) Addr() string

Addr returns the domain socket the Daemon is listening on.

func (*Daemon) Run

func (d *Daemon) Run() error

Run starts the daemon main loop. It returns on failure, or when the daemon has been gracefully shut down.

func (*Daemon) Shutdown

func (d *Daemon) Shutdown() error

Shutdown gracefully shuts down the daemon.

Directories

Path Synopsis
Package crypto provides access to secure encryption and signing methods
Package crypto provides access to secure encryption and signing methods
Package ctxutil contains utilities for using Contexts.
Package ctxutil contains utilities for using Contexts.
Package db provides persistent storage and caching of values returned from the registry.
Package db provides persistent storage and caching of values returned from the registry.
Package logic exposes the core logic engine used for working with keyrings, keys, claims, teams, memberships, orgs, and other primitive objects core to the cryptography architecture
Package logic exposes the core logic engine used for working with keyrings, keys, claims, teams, memberships, orgs, and other primitive objects core to the cryptography architecture
Package observer provides a facility for publishing progress updates and state changes from parts of the daemon, an a SSE http handler for consumers of these events.
Package observer provides a facility for publishing progress updates and state changes from parts of the daemon, an a SSE http handler for consumers of these events.
Package registry provides access to the Arigato registry REST API.
Package registry provides access to the Arigato registry REST API.
Package session provides in-memory storage of secure session details.
Package session provides in-memory storage of secure session details.

Jump to

Keyboard shortcuts

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