proto

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Agent_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yolo.agent_container.Agent",
	HandlerType: (*AgentServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Init",
			Handler:       _Agent_Init_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "agent_container.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_container_proto protoreflect.FileDescriptor

Functions

func RegisterAgentServer

func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)

Types

type AgentClient

type AgentClient interface {
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (Agent_InitClient, 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 {
	Init(*InitRequest, Agent_InitServer) error
	// contains filtered or unexported methods
}

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

type Agent_InitClient

type Agent_InitClient interface {
	Recv() (*InitReply, error)
	grpc.ClientStream
}

type Agent_InitServer

type Agent_InitServer interface {
	Send(*InitReply) error
	grpc.ServerStream
}

type InitReply

type InitReply 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 (*InitReply) Descriptor deprecated

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

Deprecated: Use InitReply.ProtoReflect.Descriptor instead.

func (*InitReply) GetGithubGpgPublicKeyContent

func (x *InitReply) GetGithubGpgPublicKeyContent() string

func (*InitReply) GetGithubSshPublicKeyContent

func (x *InitReply) GetGithubSshPublicKeyContent() string

func (*InitReply) GetLogLine

func (x *InitReply) GetLogLine() string

func (*InitReply) GetLogLineHeader

func (x *InitReply) GetLogLineHeader() string

func (*InitReply) ProtoMessage

func (*InitReply) ProtoMessage()

func (*InitReply) ProtoReflect

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

func (*InitReply) Reset

func (x *InitReply) Reset()

func (*InitReply) String

func (x *InitReply) String() string

type InitRequest

type InitRequest struct {
	EnvRepoOwner         string   `protobuf:"bytes,1,opt,name=env_repo_owner,json=envRepoOwner,proto3" json:"env_repo_owner,omitempty"`
	EnvRepoName          string   `protobuf:"bytes,2,opt,name=env_repo_name,json=envRepoName,proto3" json:"env_repo_name,omitempty"`
	EnvRepoLanguagesUsed []string `protobuf:"bytes,3,rep,name=env_repo_languages_used,json=envRepoLanguagesUsed,proto3" json:"env_repo_languages_used,omitempty"`
	GithubUserEmail      string   `protobuf:"bytes,4,opt,name=github_user_email,json=githubUserEmail,proto3" json:"github_user_email,omitempty"`
	UserFullName         string   `protobuf:"bytes,5,opt,name=user_full_name,json=userFullName,proto3" json:"user_full_name,omitempty"`
	// contains filtered or unexported fields
}

func (*InitRequest) Descriptor deprecated

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

Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.

func (*InitRequest) GetEnvRepoLanguagesUsed

func (x *InitRequest) GetEnvRepoLanguagesUsed() []string

func (*InitRequest) GetEnvRepoName

func (x *InitRequest) GetEnvRepoName() string

func (*InitRequest) GetEnvRepoOwner

func (x *InitRequest) GetEnvRepoOwner() string

func (*InitRequest) GetGithubUserEmail

func (x *InitRequest) GetGithubUserEmail() string

func (*InitRequest) GetUserFullName

func (x *InitRequest) GetUserFullName() string

func (*InitRequest) ProtoMessage

func (*InitRequest) ProtoMessage()

func (*InitRequest) ProtoReflect

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

func (*InitRequest) Reset

func (x *InitRequest) Reset()

func (*InitRequest) String

func (x *InitRequest) String() string

type UnimplementedAgentServer

type UnimplementedAgentServer struct {
}

UnimplementedAgentServer must be embedded to have forward compatible implementations.

func (UnimplementedAgentServer) Init

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