pb

package
v0.0.0-...-5826143 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProvisionerType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "NONE",
		2: "KUBERNETES",
	}
	ProvisionerType_value = map[string]int32{
		"UNSPECIFIED": 0,
		"NONE":        1,
		"KUBERNETES":  2,
	}
)

Enum value maps for ProvisionerType.

View Source
var EnvironmentLookupService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ctf.EnvironmentLookupService",
	HandlerType: (*EnvironmentLookupServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "IsEnvironmentReady",
			Handler:    _EnvironmentLookupService_IsEnvironmentReady_Handler,
		},
		{
			MethodName: "GetEnvironmentInfo",
			Handler:    _EnvironmentLookupService_GetEnvironmentInfo_Handler,
		},
		{
			MethodName: "ListUserEnvironments",
			Handler:    _EnvironmentLookupService_ListUserEnvironments_Handler,
		},
		{
			MethodName: "ListEnvironmentServices",
			Handler:    _EnvironmentLookupService_ListEnvironmentServices_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ctfoperator.proto",
}

EnvironmentLookupService_ServiceDesc is the grpc.ServiceDesc for EnvironmentLookupService 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 EnvironmentProvisioningService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ctf.EnvironmentProvisioningService",
	HandlerType: (*EnvironmentProvisioningServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StartEnvironment",
			Handler:    _EnvironmentProvisioningService_StartEnvironment_Handler,
		},
		{
			MethodName: "StopEnvironment",
			Handler:    _EnvironmentProvisioningService_StopEnvironment_Handler,
		},
		{
			MethodName: "UploadEnvironmentTemplate",
			Handler:    _EnvironmentProvisioningService_UploadEnvironmentTemplate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ctfoperator.proto",
}

EnvironmentProvisioningService_ServiceDesc is the grpc.ServiceDesc for EnvironmentProvisioningService 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_common_proto protoreflect.FileDescriptor
View Source
var File_ctfoperator_internal_proto protoreflect.FileDescriptor
View Source
var File_ctfoperator_proto protoreflect.FileDescriptor
View Source
var File_termproxy_proto protoreflect.FileDescriptor
View Source
var TermproxyService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "TermproxyService",
	HandlerType: (*TermproxyServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ProxyTerminal",
			Handler:       _TermproxyService_ProxyTerminal_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "termproxy.proto",
}

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

Functions

func RegisterEnvironmentLookupServiceServer

func RegisterEnvironmentLookupServiceServer(s grpc.ServiceRegistrar, srv EnvironmentLookupServiceServer)

func RegisterEnvironmentProvisioningServiceServer

func RegisterEnvironmentProvisioningServiceServer(s grpc.ServiceRegistrar, srv EnvironmentProvisioningServiceServer)

func RegisterTermproxyServiceServer

func RegisterTermproxyServiceServer(s grpc.ServiceRegistrar, srv TermproxyServiceServer)

Types

type ClientMessage

type ClientMessage struct {

	// Types that are assignable to Message:
	//	*ClientMessage_OpenConnection
	//	*ClientMessage_Stdin
	//	*ClientMessage_Resize
	Message isClientMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*ClientMessage) Descriptor deprecated

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

Deprecated: Use ClientMessage.ProtoReflect.Descriptor instead.

func (*ClientMessage) GetMessage

func (m *ClientMessage) GetMessage() isClientMessage_Message

func (*ClientMessage) GetOpenConnection

func (x *ClientMessage) GetOpenConnection() *OpenConnectionMessage

func (*ClientMessage) GetResize

func (x *ClientMessage) GetResize() *ResizeMessage

func (*ClientMessage) GetStdin

func (x *ClientMessage) GetStdin() *StreamMessage

func (*ClientMessage) ProtoMessage

func (*ClientMessage) ProtoMessage()

func (*ClientMessage) ProtoReflect

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

func (*ClientMessage) Reset

func (x *ClientMessage) Reset()

func (*ClientMessage) String

func (x *ClientMessage) String() string

type ClientMessage_OpenConnection

type ClientMessage_OpenConnection struct {
	OpenConnection *OpenConnectionMessage `protobuf:"bytes,1,opt,name=open_connection,json=openConnection,proto3,oneof"`
}

type ClientMessage_Resize

type ClientMessage_Resize struct {
	Resize *ResizeMessage `protobuf:"bytes,3,opt,name=resize,proto3,oneof"`
}

type ClientMessage_Stdin

type ClientMessage_Stdin struct {
	Stdin *StreamMessage `protobuf:"bytes,2,opt,name=stdin,proto3,oneof"`
}

type CloseConnectionMessage

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

func (*CloseConnectionMessage) Descriptor deprecated

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

Deprecated: Use CloseConnectionMessage.ProtoReflect.Descriptor instead.

func (*CloseConnectionMessage) ProtoMessage

func (*CloseConnectionMessage) ProtoMessage()

func (*CloseConnectionMessage) ProtoReflect

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

func (*CloseConnectionMessage) Reset

func (x *CloseConnectionMessage) Reset()

func (*CloseConnectionMessage) String

func (x *CloseConnectionMessage) String() string

type Environment

type Environment struct {

	//*
	// Time that this environment was created.
	CreatedTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
	//*
	// Last time that this environment was interacted with
	// by the player who owns it.
	LastPingTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_ping_time,json=lastPingTime,proto3" json:"last_ping_time,omitempty"`
	//*
	// This flag is true if the provisioner has run.
	ProvisionerDone bool `protobuf:"varint,3,opt,name=provisioner_done,json=provisionerDone,proto3" json:"provisioner_done,omitempty"`
	//*
	// Type of provisioner that is used for this environment.
	ProvisionerType ProvisionerType `` /* 132-byte string literal not displayed */
	//*
	// The ID of the user that owns this environment.
	OwnerId *UUID `protobuf:"bytes,5,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	//*
	// The ID of the challenge set.
	ChallengeSetId *UUID `protobuf:"bytes,6,opt,name=challenge_set_id,json=challengeSetId,proto3" json:"challenge_set_id,omitempty"`
	//*
	// The ID of the challenge.
	ChallengeId *UUID `protobuf:"bytes,7,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
	// contains filtered or unexported fields
}

* Represents an environment that is running.

func (*Environment) Descriptor deprecated

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

Deprecated: Use Environment.ProtoReflect.Descriptor instead.

func (*Environment) GetChallengeId

func (x *Environment) GetChallengeId() *UUID

func (*Environment) GetChallengeSetId

func (x *Environment) GetChallengeSetId() *UUID

func (*Environment) GetCreatedTime

func (x *Environment) GetCreatedTime() *timestamppb.Timestamp

func (*Environment) GetLastPingTime

func (x *Environment) GetLastPingTime() *timestamppb.Timestamp

func (*Environment) GetOwnerId

func (x *Environment) GetOwnerId() *UUID

func (*Environment) GetProvisionerDone

func (x *Environment) GetProvisionerDone() bool

func (*Environment) GetProvisionerType

func (x *Environment) GetProvisionerType() ProvisionerType

func (*Environment) ProtoMessage

func (*Environment) ProtoMessage()

func (*Environment) ProtoReflect

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

func (*Environment) Reset

func (x *Environment) Reset()

func (*Environment) String

func (x *Environment) String() string

type EnvironmentLookupServiceClient

type EnvironmentLookupServiceClient interface {
	IsEnvironmentReady(ctx context.Context, in *IsEnvironmentReadyRequest, opts ...grpc.CallOption) (*IsEnvironmentReadyResponse, error)
	// Deprecated: Do not use.
	// deprecated: ListEnvironmentServices replaces this call.
	GetEnvironmentInfo(ctx context.Context, in *GetEnvironmentInfoRequest, opts ...grpc.CallOption) (*GetEnvironmentInfoResponse, error)
	ListUserEnvironments(ctx context.Context, in *ListUserEnvironmentsRequest, opts ...grpc.CallOption) (*ListUserEnvironmentsResponse, error)
	ListEnvironmentServices(ctx context.Context, in *ListEnvironmentServicesRequest, opts ...grpc.CallOption) (*ListEnvironmentServicesResponse, error)
}

EnvironmentLookupServiceClient is the client API for EnvironmentLookupService 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 EnvironmentLookupServiceServer

type EnvironmentLookupServiceServer interface {
	IsEnvironmentReady(context.Context, *IsEnvironmentReadyRequest) (*IsEnvironmentReadyResponse, error)
	// Deprecated: Do not use.
	// deprecated: ListEnvironmentServices replaces this call.
	GetEnvironmentInfo(context.Context, *GetEnvironmentInfoRequest) (*GetEnvironmentInfoResponse, error)
	ListUserEnvironments(context.Context, *ListUserEnvironmentsRequest) (*ListUserEnvironmentsResponse, error)
	ListEnvironmentServices(context.Context, *ListEnvironmentServicesRequest) (*ListEnvironmentServicesResponse, error)
	// contains filtered or unexported methods
}

EnvironmentLookupServiceServer is the server API for EnvironmentLookupService service. All implementations must embed UnimplementedEnvironmentLookupServiceServer for forward compatibility

type EnvironmentProvisioningServiceClient

type EnvironmentProvisioningServiceClient interface {
	StartEnvironment(ctx context.Context, in *StartEnvironmentRequest, opts ...grpc.CallOption) (*StartEnvironmentResponse, error)
	StopEnvironment(ctx context.Context, in *StopEnvironmentRequest, opts ...grpc.CallOption) (*StopEnvironmentResponse, error)
	UploadEnvironmentTemplate(ctx context.Context, in *UploadEnvironmentTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

EnvironmentProvisioningServiceClient is the client API for EnvironmentProvisioningService 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 EnvironmentProvisioningServiceServer

type EnvironmentProvisioningServiceServer interface {
	StartEnvironment(context.Context, *StartEnvironmentRequest) (*StartEnvironmentResponse, error)
	StopEnvironment(context.Context, *StopEnvironmentRequest) (*StopEnvironmentResponse, error)
	UploadEnvironmentTemplate(context.Context, *UploadEnvironmentTemplateRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

EnvironmentProvisioningServiceServer is the server API for EnvironmentProvisioningService service. All implementations must embed UnimplementedEnvironmentProvisioningServiceServer for forward compatibility

type GetEnvironmentInfoRequest

type GetEnvironmentInfoRequest struct {
	EnvironmentId *UUID `protobuf:"bytes,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEnvironmentInfoRequest) Descriptor deprecated

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

Deprecated: Use GetEnvironmentInfoRequest.ProtoReflect.Descriptor instead.

func (*GetEnvironmentInfoRequest) GetEnvironmentId

func (x *GetEnvironmentInfoRequest) GetEnvironmentId() *UUID

func (*GetEnvironmentInfoRequest) ProtoMessage

func (*GetEnvironmentInfoRequest) ProtoMessage()

func (*GetEnvironmentInfoRequest) ProtoReflect

func (*GetEnvironmentInfoRequest) Reset

func (x *GetEnvironmentInfoRequest) Reset()

func (*GetEnvironmentInfoRequest) String

func (x *GetEnvironmentInfoRequest) String() string

type GetEnvironmentInfoResponse

type GetEnvironmentInfoResponse struct {
	SshHost string `protobuf:"bytes,1,opt,name=ssh_host,json=sshHost,proto3" json:"ssh_host,omitempty"`
	SshPort int32  `protobuf:"varint,2,opt,name=ssh_port,json=sshPort,proto3" json:"ssh_port,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEnvironmentInfoResponse) Descriptor deprecated

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

Deprecated: Use GetEnvironmentInfoResponse.ProtoReflect.Descriptor instead.

func (*GetEnvironmentInfoResponse) GetSshHost

func (x *GetEnvironmentInfoResponse) GetSshHost() string

func (*GetEnvironmentInfoResponse) GetSshPort

func (x *GetEnvironmentInfoResponse) GetSshPort() int32

func (*GetEnvironmentInfoResponse) ProtoMessage

func (*GetEnvironmentInfoResponse) ProtoMessage()

func (*GetEnvironmentInfoResponse) ProtoReflect

func (*GetEnvironmentInfoResponse) Reset

func (x *GetEnvironmentInfoResponse) Reset()

func (*GetEnvironmentInfoResponse) String

func (x *GetEnvironmentInfoResponse) String() string

type IsEnvironmentReadyRequest

type IsEnvironmentReadyRequest struct {
	EnvironmentId *UUID `protobuf:"bytes,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*IsEnvironmentReadyRequest) Descriptor deprecated

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

Deprecated: Use IsEnvironmentReadyRequest.ProtoReflect.Descriptor instead.

func (*IsEnvironmentReadyRequest) GetEnvironmentId

func (x *IsEnvironmentReadyRequest) GetEnvironmentId() *UUID

func (*IsEnvironmentReadyRequest) ProtoMessage

func (*IsEnvironmentReadyRequest) ProtoMessage()

func (*IsEnvironmentReadyRequest) ProtoReflect

func (*IsEnvironmentReadyRequest) Reset

func (x *IsEnvironmentReadyRequest) Reset()

func (*IsEnvironmentReadyRequest) String

func (x *IsEnvironmentReadyRequest) String() string

type IsEnvironmentReadyResponse

type IsEnvironmentReadyResponse struct {
	Ready bool `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"`
	// contains filtered or unexported fields
}

func (*IsEnvironmentReadyResponse) Descriptor deprecated

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

Deprecated: Use IsEnvironmentReadyResponse.ProtoReflect.Descriptor instead.

func (*IsEnvironmentReadyResponse) GetReady

func (x *IsEnvironmentReadyResponse) GetReady() bool

func (*IsEnvironmentReadyResponse) ProtoMessage

func (*IsEnvironmentReadyResponse) ProtoMessage()

func (*IsEnvironmentReadyResponse) ProtoReflect

func (*IsEnvironmentReadyResponse) Reset

func (x *IsEnvironmentReadyResponse) Reset()

func (*IsEnvironmentReadyResponse) String

func (x *IsEnvironmentReadyResponse) String() string

type ListEnvironmentServicesRequest

type ListEnvironmentServicesRequest struct {
	EnvironmentId *UUID `protobuf:"bytes,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEnvironmentServicesRequest) Descriptor deprecated

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

Deprecated: Use ListEnvironmentServicesRequest.ProtoReflect.Descriptor instead.

func (*ListEnvironmentServicesRequest) GetEnvironmentId

func (x *ListEnvironmentServicesRequest) GetEnvironmentId() *UUID

func (*ListEnvironmentServicesRequest) ProtoMessage

func (*ListEnvironmentServicesRequest) ProtoMessage()

func (*ListEnvironmentServicesRequest) ProtoReflect

func (*ListEnvironmentServicesRequest) Reset

func (x *ListEnvironmentServicesRequest) Reset()

func (*ListEnvironmentServicesRequest) String

type ListEnvironmentServicesResponse

type ListEnvironmentServicesResponse struct {
	TermproxyServices []*TermproxyService `protobuf:"bytes,1,rep,name=termproxy_services,json=termproxyServices,proto3" json:"termproxy_services,omitempty"`
	WebServices       []*WebService       `protobuf:"bytes,2,rep,name=web_services,json=webServices,proto3" json:"web_services,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEnvironmentServicesResponse) Descriptor deprecated

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

Deprecated: Use ListEnvironmentServicesResponse.ProtoReflect.Descriptor instead.

func (*ListEnvironmentServicesResponse) GetTermproxyServices

func (x *ListEnvironmentServicesResponse) GetTermproxyServices() []*TermproxyService

func (*ListEnvironmentServicesResponse) GetWebServices

func (x *ListEnvironmentServicesResponse) GetWebServices() []*WebService

func (*ListEnvironmentServicesResponse) ProtoMessage

func (*ListEnvironmentServicesResponse) ProtoMessage()

func (*ListEnvironmentServicesResponse) ProtoReflect

func (*ListEnvironmentServicesResponse) Reset

func (*ListEnvironmentServicesResponse) String

type ListUserEnvironmentsRequest

type ListUserEnvironmentsRequest struct {
	UserId *UUID `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserEnvironmentsRequest) Descriptor deprecated

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

Deprecated: Use ListUserEnvironmentsRequest.ProtoReflect.Descriptor instead.

func (*ListUserEnvironmentsRequest) GetUserId

func (x *ListUserEnvironmentsRequest) GetUserId() *UUID

func (*ListUserEnvironmentsRequest) ProtoMessage

func (*ListUserEnvironmentsRequest) ProtoMessage()

func (*ListUserEnvironmentsRequest) ProtoReflect

func (*ListUserEnvironmentsRequest) Reset

func (x *ListUserEnvironmentsRequest) Reset()

func (*ListUserEnvironmentsRequest) String

func (x *ListUserEnvironmentsRequest) String() string

type ListUserEnvironmentsResponse

type ListUserEnvironmentsResponse struct {
	Environments []*UserEnvironmentInfo `protobuf:"bytes,1,rep,name=environments,proto3" json:"environments,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserEnvironmentsResponse) Descriptor deprecated

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

Deprecated: Use ListUserEnvironmentsResponse.ProtoReflect.Descriptor instead.

func (*ListUserEnvironmentsResponse) GetEnvironments

func (x *ListUserEnvironmentsResponse) GetEnvironments() []*UserEnvironmentInfo

func (*ListUserEnvironmentsResponse) ProtoMessage

func (*ListUserEnvironmentsResponse) ProtoMessage()

func (*ListUserEnvironmentsResponse) ProtoReflect

func (*ListUserEnvironmentsResponse) Reset

func (x *ListUserEnvironmentsResponse) Reset()

func (*ListUserEnvironmentsResponse) String

type OpenConnectionMessage

type OpenConnectionMessage struct {
	EnvironmentId *UUID `protobuf:"bytes,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*OpenConnectionMessage) Descriptor deprecated

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

Deprecated: Use OpenConnectionMessage.ProtoReflect.Descriptor instead.

func (*OpenConnectionMessage) GetEnvironmentId

func (x *OpenConnectionMessage) GetEnvironmentId() *UUID

func (*OpenConnectionMessage) ProtoMessage

func (*OpenConnectionMessage) ProtoMessage()

func (*OpenConnectionMessage) ProtoReflect

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

func (*OpenConnectionMessage) Reset

func (x *OpenConnectionMessage) Reset()

func (*OpenConnectionMessage) String

func (x *OpenConnectionMessage) String() string

type ProvisionerType

type ProvisionerType int32

* Indicates which provisioner was used in this environment.

const (
	ProvisionerType_UNSPECIFIED ProvisionerType = 0
	ProvisionerType_NONE        ProvisionerType = 1
	ProvisionerType_KUBERNETES  ProvisionerType = 2
)

func (ProvisionerType) Descriptor

func (ProvisionerType) Enum

func (x ProvisionerType) Enum() *ProvisionerType

func (ProvisionerType) EnumDescriptor deprecated

func (ProvisionerType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProvisionerType.Descriptor instead.

func (ProvisionerType) Number

func (ProvisionerType) String

func (x ProvisionerType) String() string

func (ProvisionerType) Type

type ResizeMessage

type ResizeMessage struct {
	Columns int32 `protobuf:"varint,1,opt,name=columns,proto3" json:"columns,omitempty"`
	Rows    int32 `protobuf:"varint,2,opt,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

func (*ResizeMessage) Descriptor deprecated

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

Deprecated: Use ResizeMessage.ProtoReflect.Descriptor instead.

func (*ResizeMessage) GetColumns

func (x *ResizeMessage) GetColumns() int32

func (*ResizeMessage) GetRows

func (x *ResizeMessage) GetRows() int32

func (*ResizeMessage) ProtoMessage

func (*ResizeMessage) ProtoMessage()

func (*ResizeMessage) ProtoReflect

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

func (*ResizeMessage) Reset

func (x *ResizeMessage) Reset()

func (*ResizeMessage) String

func (x *ResizeMessage) String() string

type ServerMessage

type ServerMessage struct {

	// Types that are assignable to Message:
	//	*ServerMessage_CloseConnection
	//	*ServerMessage_Stdout
	//	*ServerMessage_Stderr
	Message isServerMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*ServerMessage) Descriptor deprecated

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

Deprecated: Use ServerMessage.ProtoReflect.Descriptor instead.

func (*ServerMessage) GetCloseConnection

func (x *ServerMessage) GetCloseConnection() *CloseConnectionMessage

func (*ServerMessage) GetMessage

func (m *ServerMessage) GetMessage() isServerMessage_Message

func (*ServerMessage) GetStderr

func (x *ServerMessage) GetStderr() *StreamMessage

func (*ServerMessage) GetStdout

func (x *ServerMessage) GetStdout() *StreamMessage

func (*ServerMessage) ProtoMessage

func (*ServerMessage) ProtoMessage()

func (*ServerMessage) ProtoReflect

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

func (*ServerMessage) Reset

func (x *ServerMessage) Reset()

func (*ServerMessage) String

func (x *ServerMessage) String() string

type ServerMessage_CloseConnection

type ServerMessage_CloseConnection struct {
	CloseConnection *CloseConnectionMessage `protobuf:"bytes,1,opt,name=close_connection,json=closeConnection,proto3,oneof"`
}

type ServerMessage_Stderr

type ServerMessage_Stderr struct {
	Stderr *StreamMessage `protobuf:"bytes,3,opt,name=stderr,proto3,oneof"`
}

type ServerMessage_Stdout

type ServerMessage_Stdout struct {
	Stdout *StreamMessage `protobuf:"bytes,2,opt,name=stdout,proto3,oneof"`
}

type StartEnvironmentFailureResponse

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

func (*StartEnvironmentFailureResponse) Descriptor deprecated

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

Deprecated: Use StartEnvironmentFailureResponse.ProtoReflect.Descriptor instead.

func (*StartEnvironmentFailureResponse) ProtoMessage

func (*StartEnvironmentFailureResponse) ProtoMessage()

func (*StartEnvironmentFailureResponse) ProtoReflect

func (*StartEnvironmentFailureResponse) Reset

func (*StartEnvironmentFailureResponse) String

type StartEnvironmentRequest

type StartEnvironmentRequest struct {

	//*
	// ID of the challenge set.
	ChallengeSetId *UUID `protobuf:"bytes,1,opt,name=challenge_set_id,json=challengeSetId,proto3" json:"challenge_set_id,omitempty"`
	//*
	// ID of the challenge template.
	ChallengeId *UUID `protobuf:"bytes,2,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
	//*
	// UUID of the owner of this environment.
	ChallengeOwner *UUID `protobuf:"bytes,3,opt,name=challenge_owner,json=challengeOwner,proto3" json:"challenge_owner,omitempty"`
	// contains filtered or unexported fields
}

* Request message for starting a new environment.

func (*StartEnvironmentRequest) Descriptor deprecated

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

Deprecated: Use StartEnvironmentRequest.ProtoReflect.Descriptor instead.

func (*StartEnvironmentRequest) GetChallengeId

func (x *StartEnvironmentRequest) GetChallengeId() *UUID

func (*StartEnvironmentRequest) GetChallengeOwner

func (x *StartEnvironmentRequest) GetChallengeOwner() *UUID

func (*StartEnvironmentRequest) GetChallengeSetId

func (x *StartEnvironmentRequest) GetChallengeSetId() *UUID

func (*StartEnvironmentRequest) ProtoMessage

func (*StartEnvironmentRequest) ProtoMessage()

func (*StartEnvironmentRequest) ProtoReflect

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

func (*StartEnvironmentRequest) Reset

func (x *StartEnvironmentRequest) Reset()

func (*StartEnvironmentRequest) String

func (x *StartEnvironmentRequest) String() string

type StartEnvironmentResponse

type StartEnvironmentResponse struct {

	// Types that are assignable to Response:
	//	*StartEnvironmentResponse_Success
	//	*StartEnvironmentResponse_Failure
	Response isStartEnvironmentResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

* Response message for starting a new environment.

func (*StartEnvironmentResponse) Descriptor deprecated

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

Deprecated: Use StartEnvironmentResponse.ProtoReflect.Descriptor instead.

func (*StartEnvironmentResponse) GetFailure

func (*StartEnvironmentResponse) GetResponse

func (m *StartEnvironmentResponse) GetResponse() isStartEnvironmentResponse_Response

func (*StartEnvironmentResponse) GetSuccess

func (*StartEnvironmentResponse) ProtoMessage

func (*StartEnvironmentResponse) ProtoMessage()

func (*StartEnvironmentResponse) ProtoReflect

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

func (*StartEnvironmentResponse) Reset

func (x *StartEnvironmentResponse) Reset()

func (*StartEnvironmentResponse) String

func (x *StartEnvironmentResponse) String() string

type StartEnvironmentResponse_Failure

type StartEnvironmentResponse_Failure struct {
	Failure *StartEnvironmentFailureResponse `protobuf:"bytes,2,opt,name=failure,proto3,oneof"`
}

type StartEnvironmentResponse_Success

type StartEnvironmentResponse_Success struct {
	Success *StartEnvironmentSuccessResponse `protobuf:"bytes,1,opt,name=success,proto3,oneof"`
}

type StartEnvironmentSuccessResponse

type StartEnvironmentSuccessResponse struct {

	//*
	// This is a UUID that uniquely identifies an environment.
	EnvironmentId *UUID `protobuf:"bytes,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StartEnvironmentSuccessResponse) Descriptor deprecated

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

Deprecated: Use StartEnvironmentSuccessResponse.ProtoReflect.Descriptor instead.

func (*StartEnvironmentSuccessResponse) GetEnvironmentId

func (x *StartEnvironmentSuccessResponse) GetEnvironmentId() *UUID

func (*StartEnvironmentSuccessResponse) ProtoMessage

func (*StartEnvironmentSuccessResponse) ProtoMessage()

func (*StartEnvironmentSuccessResponse) ProtoReflect

func (*StartEnvironmentSuccessResponse) Reset

func (*StartEnvironmentSuccessResponse) String

type StopEnvironmentRequest

type StopEnvironmentRequest struct {
	EnvironmentId *UUID `protobuf:"bytes,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	// contains filtered or unexported fields
}

* Request message for stopping an environment.

func (*StopEnvironmentRequest) Descriptor deprecated

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

Deprecated: Use StopEnvironmentRequest.ProtoReflect.Descriptor instead.

func (*StopEnvironmentRequest) GetEnvironmentId

func (x *StopEnvironmentRequest) GetEnvironmentId() *UUID

func (*StopEnvironmentRequest) ProtoMessage

func (*StopEnvironmentRequest) ProtoMessage()

func (*StopEnvironmentRequest) ProtoReflect

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

func (*StopEnvironmentRequest) Reset

func (x *StopEnvironmentRequest) Reset()

func (*StopEnvironmentRequest) String

func (x *StopEnvironmentRequest) String() string

type StopEnvironmentResponse

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

* Response message for stopping an environment.

func (*StopEnvironmentResponse) Descriptor deprecated

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

Deprecated: Use StopEnvironmentResponse.ProtoReflect.Descriptor instead.

func (*StopEnvironmentResponse) ProtoMessage

func (*StopEnvironmentResponse) ProtoMessage()

func (*StopEnvironmentResponse) ProtoReflect

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

func (*StopEnvironmentResponse) Reset

func (x *StopEnvironmentResponse) Reset()

func (*StopEnvironmentResponse) String

func (x *StopEnvironmentResponse) String() string

type StreamMessage

type StreamMessage struct {
	Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamMessage) Descriptor deprecated

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

Deprecated: Use StreamMessage.ProtoReflect.Descriptor instead.

func (*StreamMessage) GetContents

func (x *StreamMessage) GetContents() []byte

func (*StreamMessage) ProtoMessage

func (*StreamMessage) ProtoMessage()

func (*StreamMessage) ProtoReflect

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

func (*StreamMessage) Reset

func (x *StreamMessage) Reset()

func (*StreamMessage) String

func (x *StreamMessage) String() string

type TermproxyService

type TermproxyService struct {
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port int32  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*TermproxyService) Descriptor deprecated

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

Deprecated: Use TermproxyService.ProtoReflect.Descriptor instead.

func (*TermproxyService) GetHost

func (x *TermproxyService) GetHost() string

func (*TermproxyService) GetPort

func (x *TermproxyService) GetPort() int32

func (*TermproxyService) ProtoMessage

func (*TermproxyService) ProtoMessage()

func (*TermproxyService) ProtoReflect

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

func (*TermproxyService) Reset

func (x *TermproxyService) Reset()

func (*TermproxyService) String

func (x *TermproxyService) String() string

type TermproxyServiceClient

type TermproxyServiceClient interface {
	ProxyTerminal(ctx context.Context, opts ...grpc.CallOption) (TermproxyService_ProxyTerminalClient, error)
}

TermproxyServiceClient is the client API for TermproxyService 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 TermproxyServiceServer

type TermproxyServiceServer interface {
	ProxyTerminal(TermproxyService_ProxyTerminalServer) error
	// contains filtered or unexported methods
}

TermproxyServiceServer is the server API for TermproxyService service. All implementations must embed UnimplementedTermproxyServiceServer for forward compatibility

type TermproxyService_ProxyTerminalClient

type TermproxyService_ProxyTerminalClient interface {
	Send(*ClientMessage) error
	Recv() (*ServerMessage, error)
	grpc.ClientStream
}

type TermproxyService_ProxyTerminalServer

type TermproxyService_ProxyTerminalServer interface {
	Send(*ServerMessage) error
	Recv() (*ClientMessage, error)
	grpc.ServerStream
}

type UUID

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

* Wrapper to store a UUID. See https://en.wikipedia.org/wiki/Universally_unique_identifier

func (*UUID) Descriptor deprecated

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

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetContents

func (x *UUID) GetContents() string

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect

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

func (*UUID) Reset

func (x *UUID) Reset()

func (*UUID) String

func (x *UUID) String() string

type UnimplementedEnvironmentLookupServiceServer

type UnimplementedEnvironmentLookupServiceServer struct {
}

UnimplementedEnvironmentLookupServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEnvironmentLookupServiceServer) GetEnvironmentInfo

func (UnimplementedEnvironmentLookupServiceServer) IsEnvironmentReady

func (UnimplementedEnvironmentLookupServiceServer) ListUserEnvironments

type UnimplementedEnvironmentProvisioningServiceServer

type UnimplementedEnvironmentProvisioningServiceServer struct {
}

UnimplementedEnvironmentProvisioningServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEnvironmentProvisioningServiceServer) StartEnvironment

func (UnimplementedEnvironmentProvisioningServiceServer) StopEnvironment

func (UnimplementedEnvironmentProvisioningServiceServer) UploadEnvironmentTemplate

type UnimplementedTermproxyServiceServer

type UnimplementedTermproxyServiceServer struct {
}

UnimplementedTermproxyServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTermproxyServiceServer) ProxyTerminal

type UnsafeEnvironmentLookupServiceServer

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

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

type UnsafeEnvironmentProvisioningServiceServer

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

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

type UnsafeTermproxyServiceServer

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

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

type UploadEnvironmentTemplateRequest

type UploadEnvironmentTemplateRequest struct {
	EnvZip []byte `protobuf:"bytes,1,opt,name=env_zip,json=envZip,proto3" json:"env_zip,omitempty"`
	// contains filtered or unexported fields
}

* Request message for uploading a challenge template.

func (*UploadEnvironmentTemplateRequest) Descriptor deprecated

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

Deprecated: Use UploadEnvironmentTemplateRequest.ProtoReflect.Descriptor instead.

func (*UploadEnvironmentTemplateRequest) GetEnvZip

func (x *UploadEnvironmentTemplateRequest) GetEnvZip() []byte

func (*UploadEnvironmentTemplateRequest) ProtoMessage

func (*UploadEnvironmentTemplateRequest) ProtoMessage()

func (*UploadEnvironmentTemplateRequest) ProtoReflect

func (*UploadEnvironmentTemplateRequest) Reset

func (*UploadEnvironmentTemplateRequest) String

type UserEnvironmentInfo

type UserEnvironmentInfo struct {
	EnvId          *UUID `protobuf:"bytes,1,opt,name=env_id,json=envId,proto3" json:"env_id,omitempty"`
	ChallengeSetId *UUID `protobuf:"bytes,2,opt,name=challenge_set_id,json=challengeSetId,proto3" json:"challenge_set_id,omitempty"`
	ChallengeId    *UUID `protobuf:"bytes,3,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserEnvironmentInfo) Descriptor deprecated

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

Deprecated: Use UserEnvironmentInfo.ProtoReflect.Descriptor instead.

func (*UserEnvironmentInfo) GetChallengeId

func (x *UserEnvironmentInfo) GetChallengeId() *UUID

func (*UserEnvironmentInfo) GetChallengeSetId

func (x *UserEnvironmentInfo) GetChallengeSetId() *UUID

func (*UserEnvironmentInfo) GetEnvId

func (x *UserEnvironmentInfo) GetEnvId() *UUID

func (*UserEnvironmentInfo) ProtoMessage

func (*UserEnvironmentInfo) ProtoMessage()

func (*UserEnvironmentInfo) ProtoReflect

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

func (*UserEnvironmentInfo) Reset

func (x *UserEnvironmentInfo) Reset()

func (*UserEnvironmentInfo) String

func (x *UserEnvironmentInfo) String() string

type WebService

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

func (*WebService) Descriptor deprecated

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

Deprecated: Use WebService.ProtoReflect.Descriptor instead.

func (*WebService) GetUrl

func (x *WebService) GetUrl() string

func (*WebService) ProtoMessage

func (*WebService) ProtoMessage()

func (*WebService) ProtoReflect

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

func (*WebService) Reset

func (x *WebService) Reset()

func (*WebService) String

func (x *WebService) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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