v1alpha1

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

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.

Package v1alpha1 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type Agent

type Agent struct {
	Associated    bool        `json:"associated"`
	CreatedAt     time.Time   `json:"createdAt"`
	CredentialUrl string      `json:"credentialUrl"`
	DeletedAt     *time.Time  `json:"deletedAt,omitempty"`
	Id            string      `json:"id"`
	SourceId      *string     `json:"sourceId,omitempty"`
	Status        AgentStatus `json:"status"`
	StatusInfo    string      `json:"statusInfo"`
	UpdatedAt     time.Time   `json:"updatedAt"`
	Version       string      `json:"version"`
}

Agent defines model for Agent.

type AgentList

type AgentList = []Agent

AgentList defines model for AgentList.

type AgentStatus

type AgentStatus string

AgentStatus defines model for Agent.Status.

const (
	AgentStatusError                     AgentStatus = "error"
	AgentStatusGatheringInitialInventory AgentStatus = "gathering-initial-inventory"
	AgentStatusNotConnected              AgentStatus = "not-connected"
	AgentStatusSourceGone                AgentStatus = "source-gone"
	AgentStatusUpToDate                  AgentStatus = "up-to-date"
	AgentStatusWaitingForCredentials     AgentStatus = "waiting-for-credentials"
)

Defines values for AgentStatus.

func StringToAgentStatus

func StringToAgentStatus(s string) AgentStatus

type Error

type Error struct {
	// Message Error message
	Message string `json:"message"`
}

Error defines model for Error.

type GetImageParams

type GetImageParams struct {
	// SshKey public SSH key
	SshKey *string `form:"sshKey,omitempty" json:"sshKey,omitempty"`
}

GetImageParams defines parameters for GetImage.

type HeadImageParams

type HeadImageParams struct {
	// SshKey public SSH key
	SshKey *string `form:"sshKey,omitempty" json:"sshKey,omitempty"`
}

HeadImageParams defines parameters for HeadImage.

type Infra

type Infra struct {
	Datastores []struct {
		FreeCapacityGB  int    `json:"freeCapacityGB"`
		TotalCapacityGB int    `json:"totalCapacityGB"`
		Type            string `json:"type"`
	} `json:"datastores"`
	HostPowerStates map[string]int `json:"hostPowerStates"`
	HostsPerCluster []int          `json:"hostsPerCluster"`
	Networks        []struct {
		Dvswitch *string           `json:"dvswitch,omitempty"`
		Name     string            `json:"name"`
		Type     InfraNetworksType `json:"type"`
		VlanId   *string           `json:"vlanId,omitempty"`
	} `json:"networks"`
	TotalClusters int `json:"totalClusters"`
	TotalHosts    int `json:"totalHosts"`
}

Infra defines model for Infra.

type InfraNetworksType

type InfraNetworksType string

InfraNetworksType defines model for Infra.Networks.Type.

const (
	Distributed InfraNetworksType = "distributed"
	Dvswitch    InfraNetworksType = "dvswitch"
	Standard    InfraNetworksType = "standard"
	Unsupported InfraNetworksType = "unsupported"
)

Defines values for InfraNetworksType.

type Inventory

type Inventory struct {
	Infra   Infra   `json:"infra"`
	Vcenter VCenter `json:"vcenter"`
	Vms     VMs     `json:"vms"`
}

Inventory defines model for Inventory.

type MigrationIssues

type MigrationIssues = []struct {
	Assessment string `json:"assessment"`
	Count      int    `json:"count"`
	Label      string `json:"label"`
}

MigrationIssues defines model for MigrationIssues.

type Source

type Source struct {
	Agents     *[]SourceAgentItem `json:"agents,omitempty"`
	CreatedAt  time.Time          `json:"createdAt"`
	Id         openapi_types.UUID `json:"id"`
	Inventory  *Inventory         `json:"inventory,omitempty"`
	Name       string             `json:"name"`
	SshKey     *string            `json:"sshKey,omitempty"`
	Status     SourceStatus       `json:"status"`
	StatusInfo string             `json:"statusInfo"`
	UpdatedAt  time.Time          `json:"updatedAt"`
}

Source defines model for Source.

type SourceAgentItem

type SourceAgentItem struct {
	Associated bool               `json:"associated"`
	Id         openapi_types.UUID `json:"id"`
}

SourceAgentItem defines model for SourceAgentItem.

type SourceCreate

type SourceCreate struct {
	Name string `json:"name"`
}

SourceCreate defines model for SourceCreate.

type SourceList

type SourceList = []Source

SourceList defines model for SourceList.

type SourceStatus

type SourceStatus string

SourceStatus defines model for Source.Status.

const (
	SourceStatusError                     SourceStatus = "error"
	SourceStatusGatheringInitialInventory SourceStatus = "gathering-initial-inventory"
	SourceStatusNotConnected              SourceStatus = "not-connected"
	SourceStatusUpToDate                  SourceStatus = "up-to-date"
	SourceStatusWaitingForCredentials     SourceStatus = "waiting-for-credentials"
)

Defines values for SourceStatus.

type Status

type Status struct {
	// Message A human-readable description of the status of this operation.
	Message *string `json:"message,omitempty"`

	// Reason A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.
	Reason *string `json:"reason,omitempty"`

	// Status Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *string `json:"status,omitempty"`
}

Status Status is a return value for calls that don't return other objects.

type VCenter

type VCenter struct {
	Id string `json:"id"`
}

VCenter defines model for VCenter.

type VMResourceBreakdown

type VMResourceBreakdown struct {
	Histogram struct {
		Data     []int `json:"data"`
		MinValue int   `json:"minValue"`
		Step     int   `json:"step"`
	} `json:"histogram"`
	Total                          int `json:"total"`
	TotalForMigratable             int `json:"totalForMigratable"`
	TotalForMigratableWithWarnings int `json:"totalForMigratableWithWarnings"`
	TotalForNotMigratable          int `json:"totalForNotMigratable"`
}

VMResourceBreakdown defines model for VMResourceBreakdown.

type VMs

type VMs struct {
	CpuCores                    VMResourceBreakdown `json:"cpuCores"`
	DiskCount                   VMResourceBreakdown `json:"diskCount"`
	DiskGB                      VMResourceBreakdown `json:"diskGB"`
	MigrationWarnings           MigrationIssues     `json:"migrationWarnings"`
	NotMigratableReasons        MigrationIssues     `json:"notMigratableReasons"`
	Os                          map[string]int      `json:"os"`
	PowerStates                 map[string]int      `json:"powerStates"`
	RamGB                       VMResourceBreakdown `json:"ramGB"`
	Total                       int                 `json:"total"`
	TotalMigratable             int                 `json:"totalMigratable"`
	TotalMigratableWithWarnings *int                `json:"totalMigratableWithWarnings,omitempty"`
}

VMs defines model for VMs.

Directories

Path Synopsis
Package v1alpha1 provides primitives to interact with the openapi HTTP API.
Package v1alpha1 provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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