server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateInstanceRequest

type CreateInstanceRequest struct {
	Body daemon.InstanceOptions
}

type CreateInstanceResponse

type CreateInstanceResponse struct {
	Body *instance.Instance
}

type DaemonServer

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

func NewDaemonServer

func NewDaemonServer(daemon daemon.Daemon) *DaemonServer

func (*DaemonServer) Serve

func (s *DaemonServer) Serve(ln net.Listener)

func (*DaemonServer) Shutdown

func (s *DaemonServer) Shutdown(ctx context.Context) error

type DeleteImageRequest

type DeleteImageRequest struct {
	Ref string `path:"ref"`
}

type DeleteImageResponse

type DeleteImageResponse struct {
}

type DestroyInstanceRequest

type DestroyInstanceRequest struct {
	Id string `path:"id"`
}

type DestroyInstanceResponse

type DestroyInstanceResponse struct {
}

type ExecBody

type ExecBody struct {
	Cmd     []string `json:"cmd"`
	Timeout int      `json:"timeout"`
}

type ExecRequest

type ExecRequest struct {
	Id   string `path:"id"`
	Body api.ExecOptions
}

type ExecResponse

type ExecResponse struct {
	Body *api.ExecResult
}

type FollowInstanceLogsRequest

type FollowInstanceLogsRequest struct {
	Id string `path:"id"`
}

type GetInstanceLogsRequest

type GetInstanceLogsRequest struct {
	Id     string `path:"id"`
	Follow bool   `query:"follow"`
}

type GetInstanceLogsResponse

type GetInstanceLogsResponse struct {
	Body []*api.LogEntry
}

type GetInstanceRequest

type GetInstanceRequest struct {
	Id string `path:"id"`
}

type GetInstanceResponse

type GetInstanceResponse struct {
	Body instance.Instance
}

type ListImagesRequest

type ListImagesRequest struct {
}

type ListImagesResponse

type ListImagesResponse struct {
	Body []daemon.Image
}

type ListInstancesRequest

type ListInstancesRequest struct {
}

type ListInstancesResponse

type ListInstancesResponse struct {
	Body []instance.Instance
}

type PullImageRequest

type PullImageRequest struct {
	Body daemon.ImagePullOptions
}

type PullImageResponse

type PullImageResponse struct {
	Body *daemon.Image
}

type StartInstanceRequest

type StartInstanceRequest struct {
	Id string `path:"id"`
}

type StartInstanceResponse

type StartInstanceResponse struct {
}

type StopInstanceRequest

type StopInstanceRequest struct {
	Id   string          `path:"id"`
	Body *api.StopConfig `required:"false"`
}

type StopInstanceResponse

type StopInstanceResponse struct {
}

Jump to

Keyboard shortcuts

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