os

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 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"
)

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 {
	// contains filtered or unexported fields
}

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, osConfigMapName string, osConfigMapNamespace string) *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