agent

package
v0.0.0-...-d615174 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MediaTypeContainerInfo = "application/vnd.boss.container.info.v1+json"
)

Variables

View Source
var (
	ErrNoID  = errors.New("no id provided")
	ErrNoRef = errors.New("no ref provided")
)

Functions

This section is empty.

Types

type Agent

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

func New

func New(c *config.Config, client *containerd.Client, store config.ConfigStore) (*Agent, error)

func (*Agent) Checkpoint

func (a *Agent) Checkpoint(ctx context.Context, req *v1.CheckpointRequest) (*v1.CheckpointResponse, error)

func (*Agent) Create

func (a *Agent) Create(ctx context.Context, req *v1.CreateRequest) (*types.Empty, error)

func (*Agent) Delete

func (a *Agent) Delete(ctx context.Context, req *v1.DeleteRequest) (*types.Empty, error)

func (*Agent) Get

func (a *Agent) Get(ctx context.Context, req *v1.GetRequest) (*v1.GetResponse, error)

func (*Agent) Kill

func (a *Agent) Kill(ctx context.Context, req *v1.KillRequest) (*types.Empty, error)

func (*Agent) List

func (a *Agent) List(ctx context.Context, req *v1.ListRequest) (*v1.ListResponse, error)

func (*Agent) Migrate

func (a *Agent) Migrate(ctx context.Context, req *v1.MigrateRequest) (*v1.MigrateResponse, error)

func (*Agent) Push

func (a *Agent) Push(ctx context.Context, req *v1.PushRequest) (*types.Empty, error)

func (*Agent) PushBuild

func (a *Agent) PushBuild(ctx context.Context, req *v1.PushBuildRequest) (*types.Empty, error)

func (*Agent) Restore

func (a *Agent) Restore(ctx context.Context, req *v1.RestoreRequest) (*v1.RestoreResponse, error)

func (*Agent) Rollback

func (a *Agent) Rollback(ctx context.Context, req *v1.RollbackRequest) (*v1.RollbackResponse, error)

func (*Agent) Start

func (a *Agent) Start(ctx context.Context, req *v1.StartRequest) (*types.Empty, error)

func (*Agent) Stop

func (a *Agent) Stop(ctx context.Context, req *v1.StopRequest) (*types.Empty, error)

func (*Agent) Update

func (a *Agent) Update(ctx context.Context, req *v1.UpdateRequest) (*v1.UpdateResponse, error)

Jump to

Keyboard shortcuts

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