tee_backend

package
v0.0.0-...-b50b54d Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTeeBackend

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

func NewMockTeeBackend

func NewMockTeeBackend(ctx context.Context) (*MockTeeBackend, error)

func (*MockTeeBackend) CleanUpInstance

func (m *MockTeeBackend) CleanUpInstance(instanceName string) error

func (*MockTeeBackend) GetInstanceStatus

func (m *MockTeeBackend) GetInstanceStatus(instanceName string) (string, error)

func (*MockTeeBackend) LaunchInstance

func (m *MockTeeBackend) LaunchInstance(instanceName string, image string, digest string, extraEnvs map[string]string) error

type TEEProvider

type TEEProvider interface {
	LaunchInstance(instanceName string, image string, digest string, extraEnvs map[string]string) error
	GetInstanceStatus(instanceName string) (string, error)
	CleanUpInstance(instanceName string) error
}

type TEEProviderGCPConfidentialSpace

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

func NewTEEProviderGCPConfidentialSpace

func NewTEEProviderGCPConfidentialSpace(ctx context.Context) (*TEEProviderGCPConfidentialSpace, error)

func (*TEEProviderGCPConfidentialSpace) CleanUpInstance

func (c *TEEProviderGCPConfidentialSpace) CleanUpInstance(instanceName string) error

func (*TEEProviderGCPConfidentialSpace) GetInstanceStatus

func (c *TEEProviderGCPConfidentialSpace) GetInstanceStatus(instanceName string) (string, error)

func (*TEEProviderGCPConfidentialSpace) LaunchInstance

func (c *TEEProviderGCPConfidentialSpace) LaunchInstance(instanceName string, image string, digest string, extraEnvs map[string]string) error

Jump to

Keyboard shortcuts

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