distribution

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

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

func (Build) Create

func (b Build) Create(opts *types.BuildCreateOptions) (*types.Build, error)

func (Build) Get

func (b Build) Get(id string) (*types.Build, error)

func (Build) List

func (b Build) List(image *types.Image, opts *types.BuildListOptions) (*types.BuildList, error)

func (Build) Unfreeze

func (b Build) Unfreeze() error

func (Build) UpdateStatus

func (b Build) UpdateStatus(build *types.Build, opts *types.BuildUpdateStatusOptions) error

type Builder

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

func (*Builder) Create

func (b *Builder) Create(opts *types.BuilderCreateOptions) (*types.Builder, error)

func (*Builder) FindBuild

func (b *Builder) FindBuild(builder *types.Builder) (*types.Build, error)

func (*Builder) Get

func (b *Builder) Get(hostname string) (*types.Builder, error)

func (*Builder) List

func (b *Builder) List() ([]*types.Builder, error)

func (*Builder) MarkOffline

func (b *Builder) MarkOffline() error

func (*Builder) Update

func (b *Builder) Update(builder *types.Builder, opts *types.BuilderUpdateOptions) error

type IBuild

type IBuild interface {
	Get(id string) (*types.Build, error)
	List(image *types.Image, opts *types.BuildListOptions) (*types.BuildList, error)
	Create(opts *types.BuildCreateOptions) (*types.Build, error)
	UpdateStatus(build *types.Build, opts *types.BuildUpdateStatusOptions) error
	Unfreeze() error
}

func NewBuildModel

func NewBuildModel(ctx context.Context, stg storage.IStorage) IBuild

type IBuilder

type IBuilder interface {
	Get(hostname string) (*types.Builder, error)
	List() ([]*types.Builder, error)
	Create(opts *types.BuilderCreateOptions) (*types.Builder, error)
	Update(builder *types.Builder, opts *types.BuilderUpdateOptions) error
	FindBuild(builder *types.Builder) (*types.Build, error)
	MarkOffline() error
}

func NewBuilderModel

func NewBuilderModel(ctx context.Context, stg storage.IStorage) IBuilder

type IImage

type IImage interface {
	Get(owner, name string) (*types.Image, error)
	List(opts *types.ImageListOptions) ([]*types.Image, error)
	Create(opts *types.ImageCreateOptions) (*types.Image, error)
	Update(image *types.Image, opts *types.ImageUpdateOptions) error
	Remove(image *types.Image) error
}

func NewImageModel

func NewImageModel(ctx context.Context, stg storage.IStorage) IImage

type ISystem

type ISystem interface {
	Get() (*types.System, error)
	Update(system *types.System, opts *types.SystemUpdateOptions) error
	UpdateController(system *types.System, opts *types.SystemUpdateControllerOptions) error
	UpdateControllerLastEvent(system *types.System, opts *types.SystemUpdateControllerLastEventOptions) error
}

func NewSystemModel

func NewSystemModel(ctx context.Context, stg storage.IStorage) ISystem

type Image

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

func (Image) Create

func (i Image) Create(opts *types.ImageCreateOptions) (*types.Image, error)

func (Image) Get

func (i Image) Get(owner, name string) (*types.Image, error)

func (Image) List

func (i Image) List(opts *types.ImageListOptions) ([]*types.Image, error)

func (Image) Remove

func (i Image) Remove(image *types.Image) error

func (Image) Update

func (i Image) Update(image *types.Image, opts *types.ImageUpdateOptions) error

type Registry

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

Registry - distribution model

func NewRegistryModel

func NewRegistryModel(ctx context.Context, stg storage.IStorage) *Registry

NewRegistryModel - return new registry model

func (*Registry) CreateSignature

func (r *Registry) CreateSignature(account *types.RegistryUser, scopes *types.Scopes) (string, error)

func (*Registry) Get

func (r *Registry) Get() (*types.Registry, error)

Info - get registry info

func (*Registry) ParseScope

func (r *Registry) ParseScope(str string) (*types.Scope, error)

type System

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

func (System) Get

func (s System) Get() (*types.System, error)

func (System) Update

func (s System) Update(system *types.System, opts *types.SystemUpdateOptions) error

func (System) UpdateController

func (s System) UpdateController(system *types.System, opts *types.SystemUpdateControllerOptions) error

func (System) UpdateControllerLastEvent

func (s System) UpdateControllerLastEvent(system *types.System, opts *types.SystemUpdateControllerLastEventOptions) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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