agent

package
v0.0.0-...-f1bde72 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 44 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	MediaTypeContainerInfo = "application/vnd.orbit.container.info.v1+json"
	StatusLabel            = "stellarproject.io/orbit/restart.status"
)

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(ctx context.Context, c *Config, client *containerd.Client) (*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) 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)

type Config

type Config struct {
	ID           string        `toml:"id"`
	Domain       string        `toml:"domain,omitempty"`
	State        string        `toml:"state"`
	Iface        string        `toml:"iface"`
	PlainRemotes []string      `toml:"plain_remotes"`
	Interval     time.Duration `toml:"interval"`
	Logger       string        `toml:"logger"`
	// contains filtered or unexported fields
}

func (*Config) IP

func (c *Config) IP() (string, error)

func (*Config) Paths

func (c *Config) Paths(id string) opts.Paths

Jump to

Keyboard shortcuts

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