proto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Agent_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "agent.Agent",
	HandlerType: (*AgentServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "InitInstance",
			Handler:       _Agent_InitInstance_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "BuildAndStartDevEnv",
			Handler:       _Agent_BuildAndStartDevEnv_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "agent.proto",
}

Agent_ServiceDesc is the grpc.ServiceDesc for Agent 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_agent_proto protoreflect.FileDescriptor

Functions

func RegisterAgentServer

func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)

Types

type AgentClient

type AgentClient interface {
	InitInstance(ctx context.Context, in *InitInstanceRequest, opts ...grpc.CallOption) (Agent_InitInstanceClient, error)
	BuildAndStartDevEnv(ctx context.Context, in *BuildAndStartDevEnvRequest, opts ...grpc.CallOption) (Agent_BuildAndStartDevEnvClient, error)
}

AgentClient is the client API for Agent 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.

func NewAgentClient

func NewAgentClient(cc grpc.ClientConnInterface) AgentClient

type AgentServer

type AgentServer interface {
	InitInstance(*InitInstanceRequest, Agent_InitInstanceServer) error
	BuildAndStartDevEnv(*BuildAndStartDevEnvRequest, Agent_BuildAndStartDevEnvServer) error
	// contains filtered or unexported methods
}

AgentServer is the server API for Agent service. All implementations must embed UnimplementedAgentServer for forward compatibility

type Agent_BuildAndStartDevEnvClient

type Agent_BuildAndStartDevEnvClient interface {
	Recv() (*BuildAndStartDevEnvReply, error)
	grpc.ClientStream
}

type Agent_BuildAndStartDevEnvServer

type Agent_BuildAndStartDevEnvServer interface {
	Send(*BuildAndStartDevEnvReply) error
	grpc.ServerStream
}

type Agent_InitInstanceClient

type Agent_InitInstanceClient interface {
	Recv() (*InitInstanceReply, error)
	grpc.ClientStream
}

type Agent_InitInstanceServer

type Agent_InitInstanceServer interface {
	Send(*InitInstanceReply) error
	grpc.ServerStream
}

type BuildAndStartDevEnvReply

type BuildAndStartDevEnvReply struct {
	LogLineHeader string `protobuf:"bytes,1,opt,name=log_line_header,json=logLineHeader,proto3" json:"log_line_header,omitempty"`
	LogLine       string `protobuf:"bytes,2,opt,name=log_line,json=logLine,proto3" json:"log_line,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildAndStartDevEnvReply) Descriptor deprecated

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

Deprecated: Use BuildAndStartDevEnvReply.ProtoReflect.Descriptor instead.

func (*BuildAndStartDevEnvReply) GetLogLine

func (x *BuildAndStartDevEnvReply) GetLogLine() string

func (*BuildAndStartDevEnvReply) GetLogLineHeader

func (x *BuildAndStartDevEnvReply) GetLogLineHeader() string

func (*BuildAndStartDevEnvReply) ProtoMessage

func (*BuildAndStartDevEnvReply) ProtoMessage()

func (*BuildAndStartDevEnvReply) ProtoReflect

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

func (*BuildAndStartDevEnvReply) Reset

func (x *BuildAndStartDevEnvReply) Reset()

func (*BuildAndStartDevEnvReply) String

func (x *BuildAndStartDevEnvReply) String() string

type BuildAndStartDevEnvRequest

type BuildAndStartDevEnvRequest struct {
	DevEnvRepoOwner     string `protobuf:"bytes,1,opt,name=dev_env_repo_owner,json=devEnvRepoOwner,proto3" json:"dev_env_repo_owner,omitempty"`
	DevEnvRepoName      string `protobuf:"bytes,2,opt,name=dev_env_repo_name,json=devEnvRepoName,proto3" json:"dev_env_repo_name,omitempty"`
	UserConfigRepoOwner string `protobuf:"bytes,3,opt,name=user_config_repo_owner,json=userConfigRepoOwner,proto3" json:"user_config_repo_owner,omitempty"`
	UserConfigRepoName  string `protobuf:"bytes,4,opt,name=user_config_repo_name,json=userConfigRepoName,proto3" json:"user_config_repo_name,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildAndStartDevEnvRequest) Descriptor deprecated

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

Deprecated: Use BuildAndStartDevEnvRequest.ProtoReflect.Descriptor instead.

func (*BuildAndStartDevEnvRequest) GetDevEnvRepoName

func (x *BuildAndStartDevEnvRequest) GetDevEnvRepoName() string

func (*BuildAndStartDevEnvRequest) GetDevEnvRepoOwner

func (x *BuildAndStartDevEnvRequest) GetDevEnvRepoOwner() string

func (*BuildAndStartDevEnvRequest) GetUserConfigRepoName

func (x *BuildAndStartDevEnvRequest) GetUserConfigRepoName() string

func (*BuildAndStartDevEnvRequest) GetUserConfigRepoOwner

func (x *BuildAndStartDevEnvRequest) GetUserConfigRepoOwner() string

func (*BuildAndStartDevEnvRequest) ProtoMessage

func (*BuildAndStartDevEnvRequest) ProtoMessage()

func (*BuildAndStartDevEnvRequest) ProtoReflect

func (*BuildAndStartDevEnvRequest) Reset

func (x *BuildAndStartDevEnvRequest) Reset()

func (*BuildAndStartDevEnvRequest) String

func (x *BuildAndStartDevEnvRequest) String() string

type InitInstanceReply

type InitInstanceReply struct {
	LogLineHeader             string  `protobuf:"bytes,1,opt,name=log_line_header,json=logLineHeader,proto3" json:"log_line_header,omitempty"`
	LogLine                   string  `protobuf:"bytes,2,opt,name=log_line,json=logLine,proto3" json:"log_line,omitempty"`
	GithubSshPublicKeyContent *string `` /* 148-byte string literal not displayed */
	GithubGpgPublicKeyContent *string `` /* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*InitInstanceReply) Descriptor deprecated

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

Deprecated: Use InitInstanceReply.ProtoReflect.Descriptor instead.

func (*InitInstanceReply) GetGithubGpgPublicKeyContent

func (x *InitInstanceReply) GetGithubGpgPublicKeyContent() string

func (*InitInstanceReply) GetGithubSshPublicKeyContent

func (x *InitInstanceReply) GetGithubSshPublicKeyContent() string

func (*InitInstanceReply) GetLogLine

func (x *InitInstanceReply) GetLogLine() string

func (*InitInstanceReply) GetLogLineHeader

func (x *InitInstanceReply) GetLogLineHeader() string

func (*InitInstanceReply) ProtoMessage

func (*InitInstanceReply) ProtoMessage()

func (*InitInstanceReply) ProtoReflect

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

func (*InitInstanceReply) Reset

func (x *InitInstanceReply) Reset()

func (*InitInstanceReply) String

func (x *InitInstanceReply) String() string

type InitInstanceRequest

type InitInstanceRequest struct {
	DevEnvNameSlug  string `protobuf:"bytes,1,opt,name=dev_env_name_slug,json=devEnvNameSlug,proto3" json:"dev_env_name_slug,omitempty"`
	GithubUserEmail string `protobuf:"bytes,2,opt,name=github_user_email,json=githubUserEmail,proto3" json:"github_user_email,omitempty"`
	UserFullName    string `protobuf:"bytes,3,opt,name=user_full_name,json=userFullName,proto3" json:"user_full_name,omitempty"`
	// contains filtered or unexported fields
}

func (*InitInstanceRequest) Descriptor deprecated

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

Deprecated: Use InitInstanceRequest.ProtoReflect.Descriptor instead.

func (*InitInstanceRequest) GetDevEnvNameSlug

func (x *InitInstanceRequest) GetDevEnvNameSlug() string

func (*InitInstanceRequest) GetGithubUserEmail

func (x *InitInstanceRequest) GetGithubUserEmail() string

func (*InitInstanceRequest) GetUserFullName

func (x *InitInstanceRequest) GetUserFullName() string

func (*InitInstanceRequest) ProtoMessage

func (*InitInstanceRequest) ProtoMessage()

func (*InitInstanceRequest) ProtoReflect

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

func (*InitInstanceRequest) Reset

func (x *InitInstanceRequest) Reset()

func (*InitInstanceRequest) String

func (x *InitInstanceRequest) String() string

type UnimplementedAgentServer

type UnimplementedAgentServer struct {
}

UnimplementedAgentServer must be embedded to have forward compatible implementations.

func (UnimplementedAgentServer) InitInstance

type UnsafeAgentServer

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

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

Jump to

Keyboard shortcuts

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