service

package
v0.0.0-...-51273b1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorrelationIDFromContext

func CorrelationIDFromContext(ctx context.Context) (string, bool)

func NewContext

func NewContext(ctx context.Context, correlationID string) context.Context

Types

type Build

type Build struct {
	Build       string
	LastUpdated time.Time
	Namespace   string
	Number      int
}

func (Build) LaunchBuild

func (svc Build) LaunchBuild(ctx context.Context, build BuildInfo) (string, error)

type BuildCounterRecord

type BuildCounterRecord struct {
	BuildRecordKey
	CurrentCount int
}

type BuildInfo

type BuildInfo struct {
	Name string
}

type BuildRecord

type BuildRecord struct {
	BuildRecordKey
	Name        string
	Namespace   string
	Number      int
	LastUpdated string
}

type BuildRecordKey

type BuildRecordKey struct {
	Build string
}

type BuildService

type BuildService interface {
	LaunchBuild(ctx context.Context, build BuildInfo) (string, error)
}

type DaoBuilds

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

DaoBuilds serializes to/from AWS DynamoDB

func NewDaoBuilds

func NewDaoBuilds() (*DaoBuilds, error)

NewDaoBuilds are used to perform CRUD operations on Builds

func (*DaoBuilds) Fetch

func (dao *DaoBuilds) Fetch(namespace string, buildName string, number int) (*Build, error)

func (*DaoBuilds) FetchAllByNamespace

func (dao *DaoBuilds) FetchAllByNamespace(namespace string) ([]*Build, error)

func (*DaoBuilds) Persist

func (dao *DaoBuilds) Persist(obj *Build) error

type ErrorCode

type ErrorCode struct {
	Code         int
	ErrorDetails error
}

func NewErrorCode

func NewErrorCode(code int, err error) ErrorCode

func (ErrorCode) Error

func (e ErrorCode) Error() string

Jump to

Keyboard shortcuts

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