storage

package
v0.0.0-...-1614809 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyRunning = fmt.Errorf("up-already-running")
)

Functions

func All

func All() map[string]Service

All returns the active dev mode services

func Delete

func Delete(namespace, deployment string) error

Delete deletes a service entry

func Insert

func Insert(namespace, deployment, container, folder, host string) error

Insert inserts a new service entry

Types

type Service

type Service struct {
	Folder    string `yaml:"folder,omitempty"`
	Syncthing string `yaml:"syncthing,omitempty"`
	Container string `yaml:"container,omitempty"`
}

Service represents the information about a dev mode service

func Get

func Get(namespace, deployment string) (*Service, error)

Get gets a service entry

type Storage

type Storage struct {
	Version  string             `yaml:"version,omitempty"`
	Services map[string]Service `yaml:"services,omitempty"`
	// contains filtered or unexported fields
}

Storage represents the cli state

Jump to

Keyboard shortcuts

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