dokku

package
v0.0.0-...-be13a02 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOKKU_EVENT_LOG           = "/var/log/dokku/events.log"
	CACHE_EXPIRATION_INTERVAL = 5 * time.Minute
	CACHE_CLEANUP_INTERVAL    = 30 * time.Second
)
View Source
const (
	OUTPUT_CHANNEL_SIZE = 100
	DOKKU_COMMAND       = "dokku"
)

Variables

This section is empty.

Functions

func Exec

func Exec(args ...string) (output []string, err error)

Types

type AppStore

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

func NewAppStore

func NewAppStore(containerStore *ContainerStore) *AppStore

func (*AppStore) Find

func (s *AppStore) Find(id string) (app *m.App, err error)

Find app and all containers

func (*AppStore) FindAll

func (s *AppStore) FindAll() (apps []*m.App, err error)

Find all apps

func (*AppStore) Invalidate

func (s *AppStore) Invalidate(id string)

type Cachable

type Cachable interface {
	GetID() string
}

type ContainerStore

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

func NewContainerStore

func NewContainerStore() *ContainerStore

func (*ContainerStore) Find

func (s *ContainerStore) Find(id string) (container *m.Container, err error)

Find container

func (*ContainerStore) FindAll

func (s *ContainerStore) FindAll() (containers []*m.Container, err error)

Find all containers

func (*ContainerStore) Invalidate

func (s *ContainerStore) Invalidate(id string)

type Dokku

type Dokku struct {
	Apps       *AppStore
	Containers *ContainerStore
}

func New

func New() *Dokku

type Output

type Output struct {
	Lines chan string
	Err   error
}

type Store

type Store interface {
	Invalidate(id string)
	Find(id string) (*Cachable, error)
	FindAll() ([]*Cachable, error)
}

Jump to

Keyboard shortcuts

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