template_manager

package
v0.0.0-...-414a8a2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_template_manager_proto protoreflect.FileDescriptor
View Source
var TemplateService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "TemplateService",
	HandlerType: (*TemplateServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "TemplateDelete",
			Handler:    _TemplateService_TemplateDelete_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "TemplateCreate",
			Handler:       _TemplateService_TemplateCreate_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "template-manager.proto",
}

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

Functions

func RegisterTemplateServiceServer

func RegisterTemplateServiceServer(s grpc.ServiceRegistrar, srv TemplateServiceServer)

Types

type TemplateBuildLog

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

Logs from template build

func (*TemplateBuildLog) Descriptor deprecated

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

Deprecated: Use TemplateBuildLog.ProtoReflect.Descriptor instead.

func (*TemplateBuildLog) GetLog

func (x *TemplateBuildLog) GetLog() string

func (*TemplateBuildLog) ProtoMessage

func (*TemplateBuildLog) ProtoMessage()

func (*TemplateBuildLog) ProtoReflect

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

func (*TemplateBuildLog) Reset

func (x *TemplateBuildLog) Reset()

func (*TemplateBuildLog) String

func (x *TemplateBuildLog) String() string

type TemplateConfig

type TemplateConfig struct {
	TemplateID         string `protobuf:"bytes,1,opt,name=templateID,proto3" json:"templateID,omitempty"`
	BuildID            string `protobuf:"bytes,2,opt,name=buildID,proto3" json:"buildID,omitempty"`
	MemoryMB           int32  `protobuf:"varint,3,opt,name=memoryMB,proto3" json:"memoryMB,omitempty"`
	VCpuCount          int32  `protobuf:"varint,4,opt,name=vCpuCount,proto3" json:"vCpuCount,omitempty"`
	DiskSizeMB         int32  `protobuf:"varint,5,opt,name=diskSizeMB,proto3" json:"diskSizeMB,omitempty"`
	KernelVersion      string `protobuf:"bytes,6,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"`
	FirecrackerVersion string `protobuf:"bytes,7,opt,name=firecrackerVersion,proto3" json:"firecrackerVersion,omitempty"`
	StartCommand       string `protobuf:"bytes,8,opt,name=startCommand,proto3" json:"startCommand,omitempty"`
	HugePages          bool   `protobuf:"varint,9,opt,name=hugePages,proto3" json:"hugePages,omitempty"`
	// contains filtered or unexported fields
}

func (*TemplateConfig) Descriptor deprecated

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

Deprecated: Use TemplateConfig.ProtoReflect.Descriptor instead.

func (*TemplateConfig) GetBuildID

func (x *TemplateConfig) GetBuildID() string

func (*TemplateConfig) GetDiskSizeMB

func (x *TemplateConfig) GetDiskSizeMB() int32

func (*TemplateConfig) GetFirecrackerVersion

func (x *TemplateConfig) GetFirecrackerVersion() string

func (*TemplateConfig) GetHugePages

func (x *TemplateConfig) GetHugePages() bool

func (*TemplateConfig) GetKernelVersion

func (x *TemplateConfig) GetKernelVersion() string

func (*TemplateConfig) GetMemoryMB

func (x *TemplateConfig) GetMemoryMB() int32

func (*TemplateConfig) GetStartCommand

func (x *TemplateConfig) GetStartCommand() string

func (*TemplateConfig) GetTemplateID

func (x *TemplateConfig) GetTemplateID() string

func (*TemplateConfig) GetVCpuCount

func (x *TemplateConfig) GetVCpuCount() int32

func (*TemplateConfig) ProtoMessage

func (*TemplateConfig) ProtoMessage()

func (*TemplateConfig) ProtoReflect

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

func (*TemplateConfig) Reset

func (x *TemplateConfig) Reset()

func (*TemplateConfig) String

func (x *TemplateConfig) String() string

type TemplateCreateRequest

type TemplateCreateRequest struct {
	Template *TemplateConfig `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
	// contains filtered or unexported fields
}

func (*TemplateCreateRequest) Descriptor deprecated

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

Deprecated: Use TemplateCreateRequest.ProtoReflect.Descriptor instead.

func (*TemplateCreateRequest) GetTemplate

func (x *TemplateCreateRequest) GetTemplate() *TemplateConfig

func (*TemplateCreateRequest) ProtoMessage

func (*TemplateCreateRequest) ProtoMessage()

func (*TemplateCreateRequest) ProtoReflect

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

func (*TemplateCreateRequest) Reset

func (x *TemplateCreateRequest) Reset()

func (*TemplateCreateRequest) String

func (x *TemplateCreateRequest) String() string

type TemplateDeleteRequest

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

Data required for deleting a template.

func (*TemplateDeleteRequest) Descriptor deprecated

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

Deprecated: Use TemplateDeleteRequest.ProtoReflect.Descriptor instead.

func (*TemplateDeleteRequest) GetTemplateID

func (x *TemplateDeleteRequest) GetTemplateID() string

func (*TemplateDeleteRequest) ProtoMessage

func (*TemplateDeleteRequest) ProtoMessage()

func (*TemplateDeleteRequest) ProtoReflect

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

func (*TemplateDeleteRequest) Reset

func (x *TemplateDeleteRequest) Reset()

func (*TemplateDeleteRequest) String

func (x *TemplateDeleteRequest) String() string

type TemplateServiceClient

type TemplateServiceClient interface {
	// TemplateCreate is a gRPC service that creates a new template
	TemplateCreate(ctx context.Context, in *TemplateCreateRequest, opts ...grpc.CallOption) (TemplateService_TemplateCreateClient, error)
	// TemplateDelete is a gRPC service that deletes files associated with a template
	TemplateDelete(ctx context.Context, in *TemplateDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

TemplateServiceClient is the client API for TemplateService 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 TemplateServiceServer

type TemplateServiceServer interface {
	// TemplateCreate is a gRPC service that creates a new template
	TemplateCreate(*TemplateCreateRequest, TemplateService_TemplateCreateServer) error
	// TemplateDelete is a gRPC service that deletes files associated with a template
	TemplateDelete(context.Context, *TemplateDeleteRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

TemplateServiceServer is the server API for TemplateService service. All implementations must embed UnimplementedTemplateServiceServer for forward compatibility

type TemplateService_TemplateCreateClient

type TemplateService_TemplateCreateClient interface {
	Recv() (*TemplateBuildLog, error)
	grpc.ClientStream
}

type TemplateService_TemplateCreateServer

type TemplateService_TemplateCreateServer interface {
	Send(*TemplateBuildLog) error
	grpc.ServerStream
}

type UnimplementedTemplateServiceServer

type UnimplementedTemplateServiceServer struct {
}

UnimplementedTemplateServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTemplateServiceServer) TemplateDelete

type UnsafeTemplateServiceServer

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

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

Jump to

Keyboard shortcuts

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