storage

package
v0.0.0-...-5b8b77a Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagProvider

type FlagProvider interface {
	GetFlags() *pflag.FlagSet
	GetInitializedConfiguration() map[string]interface{}
}

FlagProvider defines an interface for the policy storage provider flag handling.

type KernelLookup

type KernelLookup struct {
	ID string
}

KernelLookup is the kernel query parameters configuration.

type KernelResult

type KernelResult interface {
	HostPath() string
	Metadata() interface{}
}

KernelResult contains the information about the resolved kernel.

type Provider

type Provider interface {
	Configure(map[string]interface{}) error

	// FetchKernel fetches a Linux Kernel by ID.
	FetchKernel(*KernelLookup) (KernelResult, error)
	// FetchRootfs fetches a root file system by ID.
	FetchRootfs(*RootfsLookup) (RootfsResult, error)

	StoreRootfsFile(*RootfsStore) (*RootfsStoreResult, error)
}

Provider represents a storage provider.

type RootfsLookup

type RootfsLookup struct {
	Org     string
	Image   string
	Version string
}

RootfsLookup is the rootfs query parameters configuration.

type RootfsResult

type RootfsResult interface {
	HostPath() string
	Metadata() interface{}
}

RootfsResult contains the information about the resolved rootfs.

type RootfsStore

type RootfsStore struct {
	LocalPath string
	Metadata  interface{}

	Org     string
	Image   string
	Version string
}

RootfsStore identifies rootfs storage arguments.

type RootfsStoreResult

type RootfsStoreResult struct {
	MetadataLocation string
	Provider         string
	RootfsLocation   string
}

RootfsStoreResult contains the information about the stored rootfs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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