template_manager

package
v0.0.0-...-c009a92 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCClient

type GRPCClient struct {
	Client template_manager.TemplateServiceClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient() (*GRPCClient, error)

func (*GRPCClient) Close

func (a *GRPCClient) Close() error

type TemplateManager

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

func New

func New() (*TemplateManager, error)

func (*TemplateManager) Close

func (tm *TemplateManager) Close() error

func (*TemplateManager) CreateTemplate

func (tm *TemplateManager) CreateTemplate(
	t trace.Tracer,
	ctx context.Context,
	db *db.DB,
	buildCache *builds.BuildCache,
	templateID string,
	buildID uuid.UUID,
	kernelVersion,
	firecrackerVersion,
	startCommand string,
	vCpuCount,
	diskSizeMB,
	memoryMB int64,
) error

func (*TemplateManager) DeleteInstance

func (tm *TemplateManager) DeleteInstance(ctx context.Context, templateID string) error

Jump to

Keyboard shortcuts

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