action

package
v0.0.0-...-dac2165 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCleanAction

func NewCleanAction() *cleanAction

func NewImageAction

func NewImageAction(imageURL, diskPath, metadataContents, networkdataContents, userDataContents string) *imageAction

Types

type Action

type Action interface {
	Do(hardware *baremetalv1alpha1.BareMetalDiscoveryHardware)
	Status() (*Status, error)
}

type ImageRequest

type ImageRequest struct {
	ImageURL            string `json:"image_url"`
	DiskPath            string `json:"disk_path"`
	MetadataContents    string `json:"metadata_contents"`
	NetworkDataContents string `json:"network_data_contents"`
	UserDataContents    string `json:"user_data_contents"`
}

type Status

type Status struct {
	Type  Type   `json:"type"`
	Done  bool   `json:"done"`
	Error string `json:"error,omitempty"`
}

type Type

type Type string
const (
	ImagingActionType  Type = "Imaging"
	CleaningActionType Type = "Cleaning"
)

Jump to

Keyboard shortcuts

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