mock

package
v0.0.0-...-b4339e2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildStorage

type BuildStorage struct {
	storage.Build
}

Service Build type for interface in interfaces folder

func (*BuildStorage) Attach

func (s *BuildStorage) Attach(ctx context.Context, builder *types.Builder) (*types.Build, error)

func (*BuildStorage) Get

func (s *BuildStorage) Get(ctx context.Context, id string) (*types.Build, error)

func (*BuildStorage) GetByTask

func (s *BuildStorage) GetByTask(ctx context.Context, id string) (*types.Build, error)

func (*BuildStorage) Insert

func (s *BuildStorage) Insert(ctx context.Context, build *types.Build) error

func (*BuildStorage) List

func (*BuildStorage) Remove

func (s *BuildStorage) Remove(ctx context.Context, build *types.Build) error

func (*BuildStorage) Unfreeze

func (s *BuildStorage) Unfreeze(ctx context.Context) error

func (*BuildStorage) Update

func (s *BuildStorage) Update(ctx context.Context, build *types.Build) error

type BuilderStorage

type BuilderStorage struct {
	storage.Builder
}

Service Builder type for interface in interfaces folder

func (*BuilderStorage) Get

func (s *BuilderStorage) Get(ctx context.Context, id string) (*types.Builder, error)

func (*BuilderStorage) Insert

func (s *BuilderStorage) Insert(ctx context.Context, builder *types.Builder) error

func (*BuilderStorage) MarkOffline

func (s *BuilderStorage) MarkOffline(ctx context.Context) error

func (*BuilderStorage) Update

func (s *BuilderStorage) Update(ctx context.Context, builder *types.Builder) error

type ImageStorage

type ImageStorage struct {
	storage.Image
}

func (*ImageStorage) Get

func (s *ImageStorage) Get(ctx context.Context, owner, name string) (*types.Image, error)

func (*ImageStorage) Insert

func (s *ImageStorage) Insert(ctx context.Context, image *types.Image) error

func (*ImageStorage) List

func (s *ImageStorage) List(ctx context.Context, f *filter.ImageFilter) ([]*types.Image, error)

func (*ImageStorage) Remove

func (s *ImageStorage) Remove(ctx context.Context, image *types.Image) error

func (*ImageStorage) Update

func (s *ImageStorage) Update(ctx context.Context, image *types.Image) error

type Storage

type Storage struct {
	context.Context
	context.CancelFunc

	*BuildStorage
	*BuilderStorage
	*ImageStorage
	*SystemStorage
	// contains filtered or unexported fields
}

func New

func New() (*Storage, error)

func (*Storage) Begin

func (s *Storage) Begin(ctx context.Context) (context.Context, error)

func (*Storage) Build

func (s *Storage) Build() storage.Build

func (*Storage) Builder

func (s *Storage) Builder() storage.Builder

func (*Storage) Commit

func (s *Storage) Commit(ctx context.Context) (context.Context, error)

func (*Storage) Image

func (s *Storage) Image() storage.Image

func (*Storage) Listen

func (s *Storage) Listen(ctx context.Context, key string, listener chan string) error

func (*Storage) Rollback

func (s *Storage) Rollback(ctx context.Context) (context.Context, error)

func (*Storage) System

func (s *Storage) System() storage.System

type SystemStorage

type SystemStorage struct {
	storage.System
}

func (*SystemStorage) Get

func (s *SystemStorage) Get(ctx context.Context) (*types.System, error)

func (*SystemStorage) Update

func (s *SystemStorage) Update(ctx context.Context, system *types.System) error

func (*SystemStorage) UpdateControllerLastEvent

func (s *SystemStorage) UpdateControllerLastEvent(ctx context.Context, system *types.System) error

func (*SystemStorage) UpdateControllerMaster

func (s *SystemStorage) UpdateControllerMaster(ctx context.Context, system *types.System) error

Jump to

Keyboard shortcuts

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