Documentation ¶
Index ¶
- Constants
- Variables
- type Agent
- func (a *Agent) Checkpoint(ctx context.Context, req *v1.CheckpointRequest) (*v1.CheckpointResponse, error)
- func (a *Agent) Create(ctx context.Context, req *v1.CreateRequest) (*types.Empty, error)
- func (a *Agent) Delete(ctx context.Context, req *v1.DeleteRequest) (*types.Empty, error)
- func (a *Agent) Get(ctx context.Context, req *v1.GetRequest) (*v1.GetResponse, error)
- func (a *Agent) Kill(ctx context.Context, req *v1.KillRequest) (*types.Empty, error)
- func (a *Agent) List(ctx context.Context, req *v1.ListRequest) (*v1.ListResponse, error)
- func (a *Agent) Migrate(ctx context.Context, req *v1.MigrateRequest) (*v1.MigrateResponse, error)
- func (a *Agent) Push(ctx context.Context, req *v1.PushRequest) (*types.Empty, error)
- func (a *Agent) PushBuild(ctx context.Context, req *v1.PushBuildRequest) (*types.Empty, error)
- func (a *Agent) Restore(ctx context.Context, req *v1.RestoreRequest) (*v1.RestoreResponse, error)
- func (a *Agent) Rollback(ctx context.Context, req *v1.RollbackRequest) (*v1.RollbackResponse, error)
- func (a *Agent) Start(ctx context.Context, req *v1.StartRequest) (*types.Empty, error)
- func (a *Agent) Stop(ctx context.Context, req *v1.StopRequest) (*types.Empty, error)
- func (a *Agent) Update(ctx context.Context, req *v1.UpdateRequest) (*v1.UpdateResponse, error)
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) Get ¶
func (a *Agent) Get(ctx context.Context, req *v1.GetRequest) (*v1.GetResponse, 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) 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) Update ¶
func (a *Agent) Update(ctx context.Context, req *v1.UpdateRequest) (*v1.UpdateResponse, error)
Click to show internal directories.
Click to hide internal directories.