Documentation
¶
Index ¶
- Constants
- type AlternativeRuntimeSets
- func (f *AlternativeRuntimeSets) Add(id string, runtimeType string)
- func (f *AlternativeRuntimeSets) GetRuntime(id string) string
- func (f *AlternativeRuntimeSets) Has(id string, runtimeType string) bool
- func (f *AlternativeRuntimeSets) IsNotEmpty(runtimeType string) bool
- func (f *AlternativeRuntimeSets) Remove(id string, runtimeType string)
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.
Click to show internal directories.
Click to hide internal directories.