launcher

package module
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0, BSD-3-Clause Imports: 34 Imported by: 0

Documentation

Overview

Package launcher contains functionalities to start a measured workload

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolver

func Resolver(token string) remotes.Resolver

Resolver returns a custom resolver that can use the token to authenticate with the repo.

func RetrieveAuthToken

func RetrieveAuthToken(client *metadata.Client) (oauth2.Token, error)

RetrieveAuthToken takes in a metadata server client, and uses it to read the default service account token from a GCE VM and returns the token.

Types

type ContainerRunner

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

ContainerRunner contains information about the container settings

func NewRunner

func NewRunner(ctx context.Context, cdClient *containerd.Client, token oauth2.Token, launchSpec spec.LaunchSpec, mdsClient *metadata.Client, tpm io.ReadWriteCloser, logger *log.Logger) (*ContainerRunner, error)

NewRunner returns a runner.

func (*ContainerRunner) Close

func (r *ContainerRunner) Close(ctx context.Context)

Close the container runner

func (*ContainerRunner) Run

func (r *ContainerRunner) Run(ctx context.Context) error

Run the container Container output will always be redirected to logger writer for now

type RetryableError

type RetryableError struct {
	Err error
}

RetryableError means launcher should reboot the VM to retry.

func (*RetryableError) Error

func (e *RetryableError) Error() string

type WorkloadError

type WorkloadError struct {
	ReturnCode uint32
}

WorkloadError represents the result of an workload/task that is non-zero.

func (*WorkloadError) Error

func (e *WorkloadError) Error() string

Directories

Path Synopsis
Package agent coordinates the communication between the TPM and the remote attestation service.
Package agent coordinates the communication between the TPM and the remote attestation service.
image
testworkloads/basic
package main is a binary that will print out the MDS vars and check the token.
package main is a binary that will print out the MDS vars and check the token.
package main is a program that will start a container with attestation.
package main is a program that will start a container with attestation.
Package spec contains definition of some basic container launch specs needed to launch a container, provided by the operator.
Package spec contains definition of some basic container launch specs needed to launch a container, provided by the operator.
Package verifier contains clients for various attestation verifiers.
Package verifier contains clients for various attestation verifiers.
fake
Package fake is a fake implementation of the Client interface for testing.
Package fake is a fake implementation of the Client interface for testing.
rest
Package rest contains the code to use the REST-based Google API
Package rest contains the code to use the REST-based Google API

Jump to

Keyboard shortcuts

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