deploy

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2016 License: LGPL-3.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDeploy = errors.New("no deploys in channel")
)

Functions

This section is empty.

Types

type BoltDBStore added in v1.1.0

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

func NewBoltDBStore added in v1.1.0

func NewBoltDBStore(path string) (*BoltDBStore, error)

func (*BoltDBStore) All added in v1.1.2

func (s *BoltDBStore) All(key string) []Deploy

func (*BoltDBStore) Get added in v1.1.0

func (s *BoltDBStore) Get(key string) (deploy Deploy, ok bool)

func (*BoltDBStore) Set added in v1.1.0

func (s *BoltDBStore) Set(key string, d Deploy)

type ChannelDeploys added in v1.1.0

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

func NewChannelDeploys added in v1.1.0

func NewChannelDeploys(store Store) *ChannelDeploys

func (*ChannelDeploys) Current added in v1.1.0

func (repo *ChannelDeploys) Current(channelID string) (Deploy, bool)

func (*ChannelDeploys) Finish added in v1.1.0

func (repo *ChannelDeploys) Finish(channelID string) (Deploy, bool)

func (*ChannelDeploys) Start added in v1.1.0

func (repo *ChannelDeploys) Start(channelID string, d Deploy) (Deploy, bool)

type Deploy

type Deploy struct {
	User       slack.User
	Subject    string
	StartedAt  time.Time
	FinishedAt time.Time
}

func New added in v1.1.0

func New(user slack.User, subject string) Deploy

func (*Deploy) Finish added in v1.1.0

func (d *Deploy) Finish()

func (*Deploy) Start added in v1.1.0

func (d *Deploy) Start() bool

type InMemoryStore added in v1.1.0

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

func NewInMemoryStore added in v1.1.0

func NewInMemoryStore() *InMemoryStore

func (*InMemoryStore) All added in v1.1.2

func (s *InMemoryStore) All(key string) []Deploy

func (*InMemoryStore) Get added in v1.1.0

func (s *InMemoryStore) Get(key string) (d Deploy, ok bool)

func (*InMemoryStore) Set added in v1.1.0

func (s *InMemoryStore) Set(key string, d Deploy)

type Reference

type Reference struct {
	ID         string
	Repository string
}

func FindReferences

func FindReferences(s string) []Reference

type Repository added in v1.1.2

type Repository interface {
	All(key string) []Deploy
}

type Store

type Store interface {
	Get(key string) (d Deploy, ok bool)
	Set(key string, d Deploy)
}

Jump to

Keyboard shortcuts

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