alternativeruntime

package
v1.12.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// internal represent of privileged runtime name
	PrivilegedRuntimeName = "privileged runtime"
	// internal represent of unikernel runtime name
	UnikernelRuntimeName = "unikernel runtime"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlternativeRuntimeSets

type AlternativeRuntimeSets struct {

	// Lock to protect this sets
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewAlternativeRuntimeSets

func NewAlternativeRuntimeSets() *AlternativeRuntimeSets

func (*AlternativeRuntimeSets) Add

func (f *AlternativeRuntimeSets) Add(id string, runtimeType string)

Add add id record to specific runtime store.

func (*AlternativeRuntimeSets) GetRuntime

func (f *AlternativeRuntimeSets) GetRuntime(id string) string

GetRuntime return name of runtime it belongs to, return "" if none matched.

func (*AlternativeRuntimeSets) Has

func (f *AlternativeRuntimeSets) Has(id string, runtimeType string) bool

Has return if id exist in specific runtime store.

func (*AlternativeRuntimeSets) IsNotEmpty

func (f *AlternativeRuntimeSets) IsNotEmpty(runtimeType string) bool

IsNotEmpty return if specific runtime store is empty.

func (*AlternativeRuntimeSets) Remove

func (f *AlternativeRuntimeSets) Remove(id string, runtimeType string)

Remove remove id record from specific runtime store.

Jump to

Keyboard shortcuts

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