agentpb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentService_Enroll_FullMethodName  = "/levelrail.agent.v1.AgentService/Enroll"
	AgentService_Session_FullMethodName = "/levelrail.agent.v1.AgentService/Session"
)

Variables

View Source
var AgentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "levelrail.agent.v1.AgentService",
	HandlerType: (*AgentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Enroll",
			Handler:    _AgentService_Enroll_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Session",
			Handler:       _AgentService_Session_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "proto/agent/v1/agent.proto",
}

AgentService_ServiceDesc is the grpc.ServiceDesc for AgentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_proto_agent_v1_agent_proto protoreflect.FileDescriptor

Functions

func RegisterAgentServiceServer

func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer)

Types

type AgentMessage

type AgentMessage struct {

	// Types that are valid to be assigned to Payload:
	//
	//	*AgentMessage_Response
	//	*AgentMessage_Event
	Payload isAgentMessage_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

AgentMessage is one frame the agent sends up the Session stream: either a reply to an outstanding AgentRequest, or an unprompted streamed Docker event.

func (*AgentMessage) Descriptor deprecated

func (*AgentMessage) Descriptor() ([]byte, []int)

Deprecated: Use AgentMessage.ProtoReflect.Descriptor instead.

func (*AgentMessage) GetEvent

func (x *AgentMessage) GetEvent() *ProxiedEvent

func (*AgentMessage) GetPayload

func (x *AgentMessage) GetPayload() isAgentMessage_Payload

func (*AgentMessage) GetResponse

func (x *AgentMessage) GetResponse() *AgentResponse

func (*AgentMessage) ProtoMessage

func (*AgentMessage) ProtoMessage()

func (*AgentMessage) ProtoReflect

func (x *AgentMessage) ProtoReflect() protoreflect.Message

func (*AgentMessage) Reset

func (x *AgentMessage) Reset()

func (*AgentMessage) String

func (x *AgentMessage) String() string

type AgentMessage_Event

type AgentMessage_Event struct {
	Event *ProxiedEvent `protobuf:"bytes,2,opt,name=event,proto3,oneof"`
}

type AgentMessage_Response

type AgentMessage_Response struct {
	Response *AgentResponse `protobuf:"bytes,1,opt,name=response,proto3,oneof"`
}

type AgentRequest

type AgentRequest struct {
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Types that are valid to be assigned to Op:
	//
	//	*AgentRequest_InspectByName
	//	*AgentRequest_Create
	//	*AgentRequest_Start
	//	*AgentRequest_Stop
	//	*AgentRequest_Remove
	//	*AgentRequest_ListImages
	//	*AgentRequest_ListByPrefix
	//	*AgentRequest_EnsureVolume
	//	*AgentRequest_WatchEvents
	//	*AgentRequest_UpdateResources
	Op isAgentRequest_Op `protobuf_oneof:"op"`
	// contains filtered or unexported fields
}

AgentRequest is one control-plane-issued operation, tagged with request_id so out-of-order AgentResponse frames on the same stream still resolve to the right caller (internal/agent's multiplexer, TASKS.md 3.2, owns matching these).

func (*AgentRequest) Descriptor deprecated

func (*AgentRequest) Descriptor() ([]byte, []int)

Deprecated: Use AgentRequest.ProtoReflect.Descriptor instead.

func (*AgentRequest) GetCreate

func (x *AgentRequest) GetCreate() *CreateRequest

func (*AgentRequest) GetEnsureVolume

func (x *AgentRequest) GetEnsureVolume() *EnsureVolumeRequest

func (*AgentRequest) GetInspectByName

func (x *AgentRequest) GetInspectByName() *InspectByNameRequest

func (*AgentRequest) GetListByPrefix

func (x *AgentRequest) GetListByPrefix() *ListByPrefixRequest

func (*AgentRequest) GetListImages

func (x *AgentRequest) GetListImages() *ListImagesRequest

func (*AgentRequest) GetOp

func (x *AgentRequest) GetOp() isAgentRequest_Op

func (*AgentRequest) GetRemove

func (x *AgentRequest) GetRemove() *RemoveRequest

func (*AgentRequest) GetRequestId

func (x *AgentRequest) GetRequestId() string

func (*AgentRequest) GetStart

func (x *AgentRequest) GetStart() *StartRequest

func (*AgentRequest) GetStop

func (x *AgentRequest) GetStop() *StopRequest

func (*AgentRequest) GetUpdateResources

func (x *AgentRequest) GetUpdateResources() *UpdateResourcesRequest

func (*AgentRequest) GetWatchEvents

func (x *AgentRequest) GetWatchEvents() *WatchEventsRequest

func (*AgentRequest) ProtoMessage

func (*AgentRequest) ProtoMessage()

func (*AgentRequest) ProtoReflect

func (x *AgentRequest) ProtoReflect() protoreflect.Message

func (*AgentRequest) Reset

func (x *AgentRequest) Reset()

func (*AgentRequest) String

func (x *AgentRequest) String() string

type AgentRequest_Create

type AgentRequest_Create struct {
	Create *CreateRequest `protobuf:"bytes,3,opt,name=create,proto3,oneof"`
}

type AgentRequest_EnsureVolume

type AgentRequest_EnsureVolume struct {
	EnsureVolume *EnsureVolumeRequest `protobuf:"bytes,9,opt,name=ensure_volume,json=ensureVolume,proto3,oneof"`
}

type AgentRequest_InspectByName

type AgentRequest_InspectByName struct {
	InspectByName *InspectByNameRequest `protobuf:"bytes,2,opt,name=inspect_by_name,json=inspectByName,proto3,oneof"`
}

type AgentRequest_ListByPrefix

type AgentRequest_ListByPrefix struct {
	ListByPrefix *ListByPrefixRequest `protobuf:"bytes,8,opt,name=list_by_prefix,json=listByPrefix,proto3,oneof"`
}

type AgentRequest_ListImages

type AgentRequest_ListImages struct {
	ListImages *ListImagesRequest `protobuf:"bytes,7,opt,name=list_images,json=listImages,proto3,oneof"`
}

type AgentRequest_Remove

type AgentRequest_Remove struct {
	Remove *RemoveRequest `protobuf:"bytes,6,opt,name=remove,proto3,oneof"`
}

type AgentRequest_Start

type AgentRequest_Start struct {
	Start *StartRequest `protobuf:"bytes,4,opt,name=start,proto3,oneof"`
}

type AgentRequest_Stop

type AgentRequest_Stop struct {
	Stop *StopRequest `protobuf:"bytes,5,opt,name=stop,proto3,oneof"`
}

type AgentRequest_UpdateResources

type AgentRequest_UpdateResources struct {
	UpdateResources *UpdateResourcesRequest `protobuf:"bytes,11,opt,name=update_resources,json=updateResources,proto3,oneof"`
}

type AgentRequest_WatchEvents

type AgentRequest_WatchEvents struct {
	WatchEvents *WatchEventsRequest `protobuf:"bytes,10,opt,name=watch_events,json=watchEvents,proto3,oneof"`
}

type AgentResponse

type AgentResponse struct {
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Error is set (and every field below unset) when the underlying
	// internal/docker.Runtime call itself returned an error: the
	// multiplexer surfaces this as a real Go error to the caller, never
	// silently treated as a zero-value success.
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// Types that are valid to be assigned to Result:
	//
	//	*AgentResponse_InspectByName
	//	*AgentResponse_Create
	//	*AgentResponse_ListImages
	//	*AgentResponse_ListByPrefix
	//	*AgentResponse_Empty
	Result isAgentResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

AgentResponse is the agent's answer to exactly one AgentRequest, carrying the same request_id.

func (*AgentResponse) Descriptor deprecated

func (*AgentResponse) Descriptor() ([]byte, []int)

Deprecated: Use AgentResponse.ProtoReflect.Descriptor instead.

func (*AgentResponse) GetCreate

func (x *AgentResponse) GetCreate() *CreateResponse

func (*AgentResponse) GetEmpty

func (x *AgentResponse) GetEmpty() *Empty

func (*AgentResponse) GetError

func (x *AgentResponse) GetError() string

func (*AgentResponse) GetInspectByName

func (x *AgentResponse) GetInspectByName() *InspectByNameResponse

func (*AgentResponse) GetListByPrefix

func (x *AgentResponse) GetListByPrefix() *ListByPrefixResponse

func (*AgentResponse) GetListImages

func (x *AgentResponse) GetListImages() *ListImagesResponse

func (*AgentResponse) GetRequestId

func (x *AgentResponse) GetRequestId() string

func (*AgentResponse) GetResult

func (x *AgentResponse) GetResult() isAgentResponse_Result

func (*AgentResponse) ProtoMessage

func (*AgentResponse) ProtoMessage()

func (*AgentResponse) ProtoReflect

func (x *AgentResponse) ProtoReflect() protoreflect.Message

func (*AgentResponse) Reset

func (x *AgentResponse) Reset()

func (*AgentResponse) String

func (x *AgentResponse) String() string

type AgentResponse_Create

type AgentResponse_Create struct {
	Create *CreateResponse `protobuf:"bytes,4,opt,name=create,proto3,oneof"`
}

type AgentResponse_Empty

type AgentResponse_Empty struct {
	// Start, Stop, Remove, EnsureVolume, and the WatchEvents
	// acknowledgment all return nothing but success/Error above, so
	// none of them needs its own response message.
	Empty *Empty `protobuf:"bytes,7,opt,name=empty,proto3,oneof"`
}

type AgentResponse_InspectByName

type AgentResponse_InspectByName struct {
	InspectByName *InspectByNameResponse `protobuf:"bytes,3,opt,name=inspect_by_name,json=inspectByName,proto3,oneof"`
}

type AgentResponse_ListByPrefix

type AgentResponse_ListByPrefix struct {
	ListByPrefix *ListByPrefixResponse `protobuf:"bytes,6,opt,name=list_by_prefix,json=listByPrefix,proto3,oneof"`
}

type AgentResponse_ListImages

type AgentResponse_ListImages struct {
	ListImages *ListImagesResponse `protobuf:"bytes,5,opt,name=list_images,json=listImages,proto3,oneof"`
}

type AgentServiceClient

type AgentServiceClient interface {
	// Enroll exchanges a one-time join token (internal/store.NodeJoinToken,
	// TASKS.md 3.1) for a signed client certificate, over a connection
	// that does not yet present a client cert (the token itself is the
	// credential for this one call). Called once per node, before Session
	// is ever called.
	Enroll(ctx context.Context, in *EnrollRequest, opts ...grpc.CallOption) (*EnrollResponse, error)
	// Session is the agent's one persistent connection, opened only after
	// Enroll (using the certificate Enroll returned for mTLS). The agent
	// never initiates a logical request on this stream, only responds to
	// AgentRequest messages arriving from the control plane, plus sending
	// ProxiedEvent messages unprompted (the streaming Docker-event
	// relay ADR 003 calls out: "the agent streams Docker events up to
	// the control plane rather than the control plane polling down").
	Session(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[AgentMessage, ControlMessage], error)
}

AgentServiceClient is the client API for AgentService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AgentServiceServer

type AgentServiceServer interface {
	// Enroll exchanges a one-time join token (internal/store.NodeJoinToken,
	// TASKS.md 3.1) for a signed client certificate, over a connection
	// that does not yet present a client cert (the token itself is the
	// credential for this one call). Called once per node, before Session
	// is ever called.
	Enroll(context.Context, *EnrollRequest) (*EnrollResponse, error)
	// Session is the agent's one persistent connection, opened only after
	// Enroll (using the certificate Enroll returned for mTLS). The agent
	// never initiates a logical request on this stream, only responds to
	// AgentRequest messages arriving from the control plane, plus sending
	// ProxiedEvent messages unprompted (the streaming Docker-event
	// relay ADR 003 calls out: "the agent streams Docker events up to
	// the control plane rather than the control plane polling down").
	Session(grpc.BidiStreamingServer[AgentMessage, ControlMessage]) error
	// contains filtered or unexported methods
}

AgentServiceServer is the server API for AgentService service. All implementations must embed UnimplementedAgentServiceServer for forward compatibility.

type AgentService_SessionClient

type AgentService_SessionClient = grpc.BidiStreamingClient[AgentMessage, ControlMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type AgentService_SessionServer

type AgentService_SessionServer = grpc.BidiStreamingServer[AgentMessage, ControlMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type ContainerSpec

type ContainerSpec struct {
	Name      string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Image     string            `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	Ports     []*PortBinding    `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"`
	Env       map[string]string ``                                                                        /* 133-byte string literal not displayed */
	Resources *Resources        `protobuf:"bytes,5,opt,name=resources,proto3" json:"resources,omitempty"` // unset means internal/docker.ContainerSpec.Resources == nil
	Volumes   []*VolumeMount    `protobuf:"bytes,6,rep,name=volumes,proto3" json:"volumes,omitempty"`
	// DNS mirrors internal/docker.ContainerSpec.DNS. Empty means Docker's
	// own embedded resolver, unchanged from before this field existed.
	Dns []string `protobuf:"bytes,7,rep,name=dns,proto3" json:"dns,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerSpec) Descriptor deprecated

func (*ContainerSpec) Descriptor() ([]byte, []int)

Deprecated: Use ContainerSpec.ProtoReflect.Descriptor instead.

func (*ContainerSpec) GetDns

func (x *ContainerSpec) GetDns() []string

func (*ContainerSpec) GetEnv

func (x *ContainerSpec) GetEnv() map[string]string

func (*ContainerSpec) GetImage

func (x *ContainerSpec) GetImage() string

func (*ContainerSpec) GetName

func (x *ContainerSpec) GetName() string

func (*ContainerSpec) GetPorts

func (x *ContainerSpec) GetPorts() []*PortBinding

func (*ContainerSpec) GetResources

func (x *ContainerSpec) GetResources() *Resources

func (*ContainerSpec) GetVolumes

func (x *ContainerSpec) GetVolumes() []*VolumeMount

func (*ContainerSpec) ProtoMessage

func (*ContainerSpec) ProtoMessage()

func (*ContainerSpec) ProtoReflect

func (x *ContainerSpec) ProtoReflect() protoreflect.Message

func (*ContainerSpec) Reset

func (x *ContainerSpec) Reset()

func (*ContainerSpec) String

func (x *ContainerSpec) String() string

type ContainerState

type ContainerState struct {
	Id      string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Image   string         `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	Running bool           `protobuf:"varint,4,opt,name=running,proto3" json:"running,omitempty"`
	Ports   []*PortBinding `protobuf:"bytes,5,rep,name=ports,proto3" json:"ports,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerState) Descriptor deprecated

func (*ContainerState) Descriptor() ([]byte, []int)

Deprecated: Use ContainerState.ProtoReflect.Descriptor instead.

func (*ContainerState) GetId

func (x *ContainerState) GetId() string

func (*ContainerState) GetImage

func (x *ContainerState) GetImage() string

func (*ContainerState) GetName

func (x *ContainerState) GetName() string

func (*ContainerState) GetPorts

func (x *ContainerState) GetPorts() []*PortBinding

func (*ContainerState) GetRunning

func (x *ContainerState) GetRunning() bool

func (*ContainerState) ProtoMessage

func (*ContainerState) ProtoMessage()

func (*ContainerState) ProtoReflect

func (x *ContainerState) ProtoReflect() protoreflect.Message

func (*ContainerState) Reset

func (x *ContainerState) Reset()

func (*ContainerState) String

func (x *ContainerState) String() string

type ControlMessage

type ControlMessage struct {
	Request *AgentRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

ControlMessage is one frame the control plane sends down the Session stream: always a request. (A dedicated envelope message, not just AgentRequest directly, so this type can grow a second oneof arm later without an incompatible wire change, the same reasoning AgentMessage already needs one today for its two arms.)

func (*ControlMessage) Descriptor deprecated

func (*ControlMessage) Descriptor() ([]byte, []int)

Deprecated: Use ControlMessage.ProtoReflect.Descriptor instead.

func (*ControlMessage) GetRequest

func (x *ControlMessage) GetRequest() *AgentRequest

func (*ControlMessage) ProtoMessage

func (*ControlMessage) ProtoMessage()

func (*ControlMessage) ProtoReflect

func (x *ControlMessage) ProtoReflect() protoreflect.Message

func (*ControlMessage) Reset

func (x *ControlMessage) Reset()

func (*ControlMessage) String

func (x *ControlMessage) String() string

type CreateRequest

type CreateRequest struct {
	Spec *ContainerSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

func (*CreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetSpec

func (x *CreateRequest) GetSpec() *ContainerSpec

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

func (x *CreateRequest) ProtoReflect() protoreflect.Message

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

func (*CreateResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetId

func (x *CreateResponse) GetId() string

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

func (x *CreateResponse) ProtoReflect() protoreflect.Message

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type Empty

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

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type EnrollRequest

type EnrollRequest struct {
	JoinToken string `protobuf:"bytes,1,opt,name=join_token,json=joinToken,proto3" json:"join_token,omitempty"`
	// NodeName is what the enrolling node wants to be called
	// (store.Node.Name); the control plane still enforces uniqueness
	// (store.ErrNodeNameTaken) the same way it would for any other
	// SaveNode caller.
	NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	// contains filtered or unexported fields
}

func (*EnrollRequest) Descriptor deprecated

func (*EnrollRequest) Descriptor() ([]byte, []int)

Deprecated: Use EnrollRequest.ProtoReflect.Descriptor instead.

func (*EnrollRequest) GetJoinToken

func (x *EnrollRequest) GetJoinToken() string

func (*EnrollRequest) GetNodeName

func (x *EnrollRequest) GetNodeName() string

func (*EnrollRequest) ProtoMessage

func (*EnrollRequest) ProtoMessage()

func (*EnrollRequest) ProtoReflect

func (x *EnrollRequest) ProtoReflect() protoreflect.Message

func (*EnrollRequest) Reset

func (x *EnrollRequest) Reset()

func (*EnrollRequest) String

func (x *EnrollRequest) String() string

type EnrollResponse

type EnrollResponse struct {

	// NodeID is the store.Node.ID the control plane assigned; the agent
	// persists this alongside its certificate so subsequent Session
	// reconnects can identify themselves before the mTLS handshake even
	// completes (the cert's own CommonName already encodes it too, this
	// is the same value spelled out for the agent's own local bookkeeping).
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// ClientCertPEM/ClientKeyPEM are this node's new mTLS identity.
	// ClientKeyPEM never leaves this one response: it isn't persisted by
	// the control plane, isn't logged, and isn't retrievable again,
	// matching every other "shown once" credential in this codebase
	// (API tokens, node join tokens themselves).
	ClientCertPem []byte `protobuf:"bytes,2,opt,name=client_cert_pem,json=clientCertPem,proto3" json:"client_cert_pem,omitempty"`
	ClientKeyPem  []byte `protobuf:"bytes,3,opt,name=client_key_pem,json=clientKeyPem,proto3" json:"client_key_pem,omitempty"`
	// CACertPEM is the control plane's own CA certificate, so the agent
	// can verify the control plane's TLS server certificate on every
	// future connection without trusting the system root store (this is
	// a private, self-issued PKI for exactly this one relationship, not a
	// publicly-trusted certificate).
	CaCertPem []byte `protobuf:"bytes,4,opt,name=ca_cert_pem,json=caCertPem,proto3" json:"ca_cert_pem,omitempty"`
	// contains filtered or unexported fields
}

func (*EnrollResponse) Descriptor deprecated

func (*EnrollResponse) Descriptor() ([]byte, []int)

Deprecated: Use EnrollResponse.ProtoReflect.Descriptor instead.

func (*EnrollResponse) GetCaCertPem

func (x *EnrollResponse) GetCaCertPem() []byte

func (*EnrollResponse) GetClientCertPem

func (x *EnrollResponse) GetClientCertPem() []byte

func (*EnrollResponse) GetClientKeyPem

func (x *EnrollResponse) GetClientKeyPem() []byte

func (*EnrollResponse) GetNodeId

func (x *EnrollResponse) GetNodeId() string

func (*EnrollResponse) ProtoMessage

func (*EnrollResponse) ProtoMessage()

func (*EnrollResponse) ProtoReflect

func (x *EnrollResponse) ProtoReflect() protoreflect.Message

func (*EnrollResponse) Reset

func (x *EnrollResponse) Reset()

func (*EnrollResponse) String

func (x *EnrollResponse) String() string

type EnsureVolumeRequest

type EnsureVolumeRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*EnsureVolumeRequest) Descriptor deprecated

func (*EnsureVolumeRequest) Descriptor() ([]byte, []int)

Deprecated: Use EnsureVolumeRequest.ProtoReflect.Descriptor instead.

func (*EnsureVolumeRequest) GetName

func (x *EnsureVolumeRequest) GetName() string

func (*EnsureVolumeRequest) ProtoMessage

func (*EnsureVolumeRequest) ProtoMessage()

func (*EnsureVolumeRequest) ProtoReflect

func (x *EnsureVolumeRequest) ProtoReflect() protoreflect.Message

func (*EnsureVolumeRequest) Reset

func (x *EnsureVolumeRequest) Reset()

func (*EnsureVolumeRequest) String

func (x *EnsureVolumeRequest) String() string

type ImageInfo

type ImageInfo struct {
	Tag       string                 `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageInfo) Descriptor deprecated

func (*ImageInfo) Descriptor() ([]byte, []int)

Deprecated: Use ImageInfo.ProtoReflect.Descriptor instead.

func (*ImageInfo) GetCreatedAt

func (x *ImageInfo) GetCreatedAt() *timestamppb.Timestamp

func (*ImageInfo) GetTag

func (x *ImageInfo) GetTag() string

func (*ImageInfo) ProtoMessage

func (*ImageInfo) ProtoMessage()

func (*ImageInfo) ProtoReflect

func (x *ImageInfo) ProtoReflect() protoreflect.Message

func (*ImageInfo) Reset

func (x *ImageInfo) Reset()

func (*ImageInfo) String

func (x *ImageInfo) String() string

type InspectByNameRequest

type InspectByNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*InspectByNameRequest) Descriptor deprecated

func (*InspectByNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use InspectByNameRequest.ProtoReflect.Descriptor instead.

func (*InspectByNameRequest) GetName

func (x *InspectByNameRequest) GetName() string

func (*InspectByNameRequest) ProtoMessage

func (*InspectByNameRequest) ProtoMessage()

func (*InspectByNameRequest) ProtoReflect

func (x *InspectByNameRequest) ProtoReflect() protoreflect.Message

func (*InspectByNameRequest) Reset

func (x *InspectByNameRequest) Reset()

func (*InspectByNameRequest) String

func (x *InspectByNameRequest) String() string

type InspectByNameResponse

type InspectByNameResponse struct {

	// Found is false when internal/docker.Runtime.InspectByName's own
	// (nil, nil) "not found, not an error" contract applies: state below
	// is then unset, not a zero-valued ContainerState pretending to be a
	// real one.
	Found bool            `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"`
	State *ContainerState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*InspectByNameResponse) Descriptor deprecated

func (*InspectByNameResponse) Descriptor() ([]byte, []int)

Deprecated: Use InspectByNameResponse.ProtoReflect.Descriptor instead.

func (*InspectByNameResponse) GetFound

func (x *InspectByNameResponse) GetFound() bool

func (*InspectByNameResponse) GetState

func (x *InspectByNameResponse) GetState() *ContainerState

func (*InspectByNameResponse) ProtoMessage

func (*InspectByNameResponse) ProtoMessage()

func (*InspectByNameResponse) ProtoReflect

func (x *InspectByNameResponse) ProtoReflect() protoreflect.Message

func (*InspectByNameResponse) Reset

func (x *InspectByNameResponse) Reset()

func (*InspectByNameResponse) String

func (x *InspectByNameResponse) String() string

type ListByPrefixRequest

type ListByPrefixRequest struct {
	Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// contains filtered or unexported fields
}

func (*ListByPrefixRequest) Descriptor deprecated

func (*ListByPrefixRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListByPrefixRequest.ProtoReflect.Descriptor instead.

func (*ListByPrefixRequest) GetPrefix

func (x *ListByPrefixRequest) GetPrefix() string

func (*ListByPrefixRequest) ProtoMessage

func (*ListByPrefixRequest) ProtoMessage()

func (*ListByPrefixRequest) ProtoReflect

func (x *ListByPrefixRequest) ProtoReflect() protoreflect.Message

func (*ListByPrefixRequest) Reset

func (x *ListByPrefixRequest) Reset()

func (*ListByPrefixRequest) String

func (x *ListByPrefixRequest) String() string

type ListByPrefixResponse

type ListByPrefixResponse struct {
	Containers []*ContainerState `protobuf:"bytes,1,rep,name=containers,proto3" json:"containers,omitempty"`
	// contains filtered or unexported fields
}

func (*ListByPrefixResponse) Descriptor deprecated

func (*ListByPrefixResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListByPrefixResponse.ProtoReflect.Descriptor instead.

func (*ListByPrefixResponse) GetContainers

func (x *ListByPrefixResponse) GetContainers() []*ContainerState

func (*ListByPrefixResponse) ProtoMessage

func (*ListByPrefixResponse) ProtoMessage()

func (*ListByPrefixResponse) ProtoReflect

func (x *ListByPrefixResponse) ProtoReflect() protoreflect.Message

func (*ListByPrefixResponse) Reset

func (x *ListByPrefixResponse) Reset()

func (*ListByPrefixResponse) String

func (x *ListByPrefixResponse) String() string

type ListImagesRequest

type ListImagesRequest struct {
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

func (*ListImagesRequest) Descriptor deprecated

func (*ListImagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListImagesRequest.ProtoReflect.Descriptor instead.

func (*ListImagesRequest) GetRepo

func (x *ListImagesRequest) GetRepo() string

func (*ListImagesRequest) ProtoMessage

func (*ListImagesRequest) ProtoMessage()

func (*ListImagesRequest) ProtoReflect

func (x *ListImagesRequest) ProtoReflect() protoreflect.Message

func (*ListImagesRequest) Reset

func (x *ListImagesRequest) Reset()

func (*ListImagesRequest) String

func (x *ListImagesRequest) String() string

type ListImagesResponse

type ListImagesResponse struct {
	Images []*ImageInfo `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"`
	// contains filtered or unexported fields
}

func (*ListImagesResponse) Descriptor deprecated

func (*ListImagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListImagesResponse.ProtoReflect.Descriptor instead.

func (*ListImagesResponse) GetImages

func (x *ListImagesResponse) GetImages() []*ImageInfo

func (*ListImagesResponse) ProtoMessage

func (*ListImagesResponse) ProtoMessage()

func (*ListImagesResponse) ProtoReflect

func (x *ListImagesResponse) ProtoReflect() protoreflect.Message

func (*ListImagesResponse) Reset

func (x *ListImagesResponse) Reset()

func (*ListImagesResponse) String

func (x *ListImagesResponse) String() string

type PortBinding

type PortBinding struct {
	ContainerPort int32  `protobuf:"varint,1,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"`
	HostPort      int32  `protobuf:"varint,2,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"`
	Protocol      string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"`
	// contains filtered or unexported fields
}

func (*PortBinding) Descriptor deprecated

func (*PortBinding) Descriptor() ([]byte, []int)

Deprecated: Use PortBinding.ProtoReflect.Descriptor instead.

func (*PortBinding) GetContainerPort

func (x *PortBinding) GetContainerPort() int32

func (*PortBinding) GetHostPort

func (x *PortBinding) GetHostPort() int32

func (*PortBinding) GetProtocol

func (x *PortBinding) GetProtocol() string

func (*PortBinding) ProtoMessage

func (*PortBinding) ProtoMessage()

func (*PortBinding) ProtoReflect

func (x *PortBinding) ProtoReflect() protoreflect.Message

func (*PortBinding) Reset

func (x *PortBinding) Reset()

func (*PortBinding) String

func (x *PortBinding) String() string

type ProxiedEvent

type ProxiedEvent struct {
	WatchId       string                 `protobuf:"bytes,1,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
	Action        string                 `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // internal/docker.EventAction: "start" | "die" | "stop"
	ContainerName string                 `protobuf:"bytes,3,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"`
	Time          *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

ProxiedEvent mirrors internal/docker.Event, relayed unprompted as it happens on the agent's own local WatchEvents stream (ADR 003's event-push design), scoped to the one watch_events call currently active (a fresh watch_id per WatchEventsRequest, so a control plane that starts and stops watching doesn't get events crossed between watches).

func (*ProxiedEvent) Descriptor deprecated

func (*ProxiedEvent) Descriptor() ([]byte, []int)

Deprecated: Use ProxiedEvent.ProtoReflect.Descriptor instead.

func (*ProxiedEvent) GetAction

func (x *ProxiedEvent) GetAction() string

func (*ProxiedEvent) GetContainerName

func (x *ProxiedEvent) GetContainerName() string

func (*ProxiedEvent) GetTime

func (x *ProxiedEvent) GetTime() *timestamppb.Timestamp

func (*ProxiedEvent) GetWatchId

func (x *ProxiedEvent) GetWatchId() string

func (*ProxiedEvent) ProtoMessage

func (*ProxiedEvent) ProtoMessage()

func (*ProxiedEvent) ProtoReflect

func (x *ProxiedEvent) ProtoReflect() protoreflect.Message

func (*ProxiedEvent) Reset

func (x *ProxiedEvent) Reset()

func (*ProxiedEvent) String

func (x *ProxiedEvent) String() string

type RemoveRequest

type RemoveRequest struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Force bool   `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveRequest) Descriptor deprecated

func (*RemoveRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.

func (*RemoveRequest) GetForce

func (x *RemoveRequest) GetForce() bool

func (*RemoveRequest) GetId

func (x *RemoveRequest) GetId() string

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) ProtoReflect

func (x *RemoveRequest) ProtoReflect() protoreflect.Message

func (*RemoveRequest) Reset

func (x *RemoveRequest) Reset()

func (*RemoveRequest) String

func (x *RemoveRequest) String() string

type Resources

type Resources struct {
	MemoryBytes     int64  `protobuf:"varint,1,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"`
	NanoCpus        int64  `protobuf:"varint,2,opt,name=nano_cpus,json=nanoCpus,proto3" json:"nano_cpus,omitempty"`
	SwapMemoryBytes int64  `protobuf:"varint,3,opt,name=swap_memory_bytes,json=swapMemoryBytes,proto3" json:"swap_memory_bytes,omitempty"`
	CpusetCpus      string `protobuf:"bytes,4,opt,name=cpuset_cpus,json=cpusetCpus,proto3" json:"cpuset_cpus,omitempty"`
	// contains filtered or unexported fields
}

func (*Resources) Descriptor deprecated

func (*Resources) Descriptor() ([]byte, []int)

Deprecated: Use Resources.ProtoReflect.Descriptor instead.

func (*Resources) GetCpusetCpus

func (x *Resources) GetCpusetCpus() string

func (*Resources) GetMemoryBytes

func (x *Resources) GetMemoryBytes() int64

func (*Resources) GetNanoCpus

func (x *Resources) GetNanoCpus() int64

func (*Resources) GetSwapMemoryBytes

func (x *Resources) GetSwapMemoryBytes() int64

func (*Resources) ProtoMessage

func (*Resources) ProtoMessage()

func (*Resources) ProtoReflect

func (x *Resources) ProtoReflect() protoreflect.Message

func (*Resources) Reset

func (x *Resources) Reset()

func (*Resources) String

func (x *Resources) String() string

type StartRequest

type StartRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*StartRequest) Descriptor deprecated

func (*StartRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartRequest.ProtoReflect.Descriptor instead.

func (*StartRequest) GetId

func (x *StartRequest) GetId() string

func (*StartRequest) ProtoMessage

func (*StartRequest) ProtoMessage()

func (*StartRequest) ProtoReflect

func (x *StartRequest) ProtoReflect() protoreflect.Message

func (*StartRequest) Reset

func (x *StartRequest) Reset()

func (*StartRequest) String

func (x *StartRequest) String() string

type StopRequest

type StopRequest struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	TimeoutMs int64  `protobuf:"varint,2,opt,name=timeout_ms,json=timeoutMs,proto3" json:"timeout_ms,omitempty"` // internal/docker.Runtime.Stop's time.Duration, in milliseconds; negative means wait indefinitely
	// contains filtered or unexported fields
}

func (*StopRequest) Descriptor deprecated

func (*StopRequest) Descriptor() ([]byte, []int)

Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.

func (*StopRequest) GetId

func (x *StopRequest) GetId() string

func (*StopRequest) GetTimeoutMs

func (x *StopRequest) GetTimeoutMs() int64

func (*StopRequest) ProtoMessage

func (*StopRequest) ProtoMessage()

func (*StopRequest) ProtoReflect

func (x *StopRequest) ProtoReflect() protoreflect.Message

func (*StopRequest) Reset

func (x *StopRequest) Reset()

func (*StopRequest) String

func (x *StopRequest) String() string

type UnimplementedAgentServiceServer

type UnimplementedAgentServiceServer struct{}

UnimplementedAgentServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAgentServiceServer) Enroll

func (UnimplementedAgentServiceServer) Session

type UnsafeAgentServiceServer

type UnsafeAgentServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAgentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServiceServer will result in compilation errors.

type UpdateResourcesRequest

type UpdateResourcesRequest struct {
	Id        string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Resources *Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

UpdateResourcesRequest applies new memory/CPU/swap/cpuset limits to an already-running container in place, via the Engine API's own ContainerUpdate call, without recreating it.

func (*UpdateResourcesRequest) Descriptor deprecated

func (*UpdateResourcesRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateResourcesRequest.ProtoReflect.Descriptor instead.

func (*UpdateResourcesRequest) GetId

func (x *UpdateResourcesRequest) GetId() string

func (*UpdateResourcesRequest) GetResources

func (x *UpdateResourcesRequest) GetResources() *Resources

func (*UpdateResourcesRequest) ProtoMessage

func (*UpdateResourcesRequest) ProtoMessage()

func (*UpdateResourcesRequest) ProtoReflect

func (x *UpdateResourcesRequest) ProtoReflect() protoreflect.Message

func (*UpdateResourcesRequest) Reset

func (x *UpdateResourcesRequest) Reset()

func (*UpdateResourcesRequest) String

func (x *UpdateResourcesRequest) String() string

type VolumeMount

type VolumeMount struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ContainerPath string `protobuf:"bytes,2,opt,name=container_path,json=containerPath,proto3" json:"container_path,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeMount) Descriptor deprecated

func (*VolumeMount) Descriptor() ([]byte, []int)

Deprecated: Use VolumeMount.ProtoReflect.Descriptor instead.

func (*VolumeMount) GetContainerPath

func (x *VolumeMount) GetContainerPath() string

func (*VolumeMount) GetName

func (x *VolumeMount) GetName() string

func (*VolumeMount) ProtoMessage

func (*VolumeMount) ProtoMessage()

func (*VolumeMount) ProtoReflect

func (x *VolumeMount) ProtoReflect() protoreflect.Message

func (*VolumeMount) Reset

func (x *VolumeMount) Reset()

func (*VolumeMount) String

func (x *VolumeMount) String() string

type WatchEventsRequest

type WatchEventsRequest struct {
	WatchId string `protobuf:"bytes,1,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
	// contains filtered or unexported fields
}

WatchEventsRequest starts (or, sent a second time with the same watch_id, is meaningless and rejected: one watch per Session, matching internal/docker.Runtime.Events' own "until ctx is cancelled" single-stream contract) the agent's relay of its local Docker event stream as ProxiedEvent frames on the same physical Session stream. There is no corresponding "stop watching" request: the watch runs for the Session's own lifetime, ending only when the stream itself closes, the same lifetime Events(ctx) already ties to ctx cancellation.

func (*WatchEventsRequest) Descriptor deprecated

func (*WatchEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use WatchEventsRequest.ProtoReflect.Descriptor instead.

func (*WatchEventsRequest) GetWatchId

func (x *WatchEventsRequest) GetWatchId() string

func (*WatchEventsRequest) ProtoMessage

func (*WatchEventsRequest) ProtoMessage()

func (*WatchEventsRequest) ProtoReflect

func (x *WatchEventsRequest) ProtoReflect() protoreflect.Message

func (*WatchEventsRequest) Reset

func (x *WatchEventsRequest) Reset()

func (*WatchEventsRequest) String

func (x *WatchEventsRequest) String() string

Jump to

Keyboard shortcuts

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