os

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GuestOsToCommonKey represents the element key in OS map of guest OS to common template mapping
	GuestOsToCommonKey = "guestos2common"

	// OsInfoToCommonKey represents the element key in OS map of OS type to common template mapping
	OsInfoToCommonKey = "osinfo2common"

	// OsConfigMapName represents the environment variable name that holds the OS config map name
	OsConfigMapName = "OS_CONFIGMAP_NAME"

	// OsConfigMapNamespace represents the environment variable name that holds the OS config map namespace
	OsConfigMapNamespace = "OS_CONFIGMAP_NAMESPACE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OSMapProvider

type OSMapProvider interface {
	GetOSMaps() (map[string]string, map[string]string, error)
}

OSMapProvider is responsible for getting the operating systems maps

type OSMaps

type OSMaps struct {
	Client client.Client
}

OSMaps is responsible for getting the operating systems maps which contain mapping of GuestOS to common templates and mapping of osinfo to common templates

func NewOSMapProvider

func NewOSMapProvider(client client.Client) *OSMaps

NewOSMapProvider creates new OSMapProvider

func (*OSMaps) GetOSMaps

func (o *OSMaps) GetOSMaps() (map[string]string, map[string]string, error)

GetOSMaps retrieve the OS mapping config map

Jump to

Keyboard shortcuts

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