v2_1

package
v0.0.0-...-f4df827 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFilterBool

func GetFilterBool(c *gin.Context, name string) (bool, bool)

func GetFilterUInt

func GetFilterUInt(c *gin.Context, name string) (bool, uint64)

func NewService

func NewService(client api.Interface, k8sClient k8s.Interface, tm auth.TokenManager, serverID string, prefix string) rest.Service

Types

type CPUInfo

type CPUInfo struct {
	Arch     string          `json:"arch"`
	Model    string          `json:"model"`
	Vendor   string          `json:"vendor"`
	Features []string        `json:"features"`
	Topology CPUInfoTopology `json:"topology"`
}

type CPUInfoTopology

type CPUInfoTopology struct {
	Cores   uint `json:"cores"`
	Threads uint `json:"threads"`
	Sockets uint `json:"sockets"`
}

type FlavorCreateReq

type FlavorCreateReq struct {
	Flavor FlavorInfoDetail `json:"flavor"`
}

type FlavorExtraSpecsCreateReq

type FlavorExtraSpecsCreateReq struct {
	ExtraSpecs map[string]string `json:"extra_specs"`
}

type FlavorExtraSpecsListRes

type FlavorExtraSpecsListRes struct {
	ExtraSpecs map[string]string `json:"extra_specs"`
}

type FlavorInfo

type FlavorInfo struct {
	ID    string          `json:"id"`
	Name  string          `json:"name"`
	Links []rest.LinkInfo `json:"links"`
}

type FlavorInfoDetail

type FlavorInfoDetail struct {
	FlavorInfo `json:",inline"`
	RAM        uint64  `json:"ram"`
	Disk       uint64  `json:"disk"`
	VCpus      uint64  `json:"vcpus"`
	Ephemeral  uint64  `json:"OS-FLV-EXT-DATA:ephemeral"`
	Disabled   bool    `json:"OS-FLV-DISABLED:disabled"`
	Swap       uint64  `json:"swap"`
	RxTxFactor float64 `json:"rxtx_factor"`
	Public     bool    `json:"os-flavor-access:is_public"`
}

type FlavorListDetailRes

type FlavorListDetailRes struct {
	Flavors []FlavorInfoDetail `json:"flavors"`
}

type FlavorListRes

type FlavorListRes struct {
	Flavors []FlavorInfo `json:"flavors"`
}

type FlavorShowRes

type FlavorShowRes struct {
	Flavor FlavorInfoDetail `json:"flavor"`
}

type HypervisorInfo

type HypervisorInfo struct {
	ID       string `json:"id"`
	Hostname string `json:"hypervisor_hostname"`
	State    string `json:"state"`
	Status   string `json:"status"`
}

type HypervisorInfoDetail

type HypervisorInfoDetail struct {
	ID                 string      `json:"id"`
	Hostname           string      `json:"hypervisor_hostname"`
	Type               string      `json:"hypervisor_type"`
	Version            string      `json:"hypervisor_version"`
	State              string      `json:"state"`
	Status             string      `json:"status"`
	CPUInfo            CPUInfo     `json:"cpu_info"`
	CurrentWorkload    uint64      `json:"current_workload"`
	DiskAvailableLeast uint64      `json:"disk_available_least"`
	HostIP             string      `json:"host_ip"`
	FreeDiskGB         uint64      `json:"free_disk_gb"`
	FreeRamMB          uint64      `json:"free_ram_mb"`
	LocalGB            uint64      `json:"local_gb"`
	LocalGBUsed        uint64      `json:"local_gb_used"`
	MemoryMB           uint64      `json:"memory_mb"`
	MemoryMBUsed       uint64      `json:"memory_mb_used"`
	RunningVMs         uint64      `json:"running_vm"`
	VCPUs              uint64      `json:"vcpus"`
	VCPUsUsed          uint64      `json:"vcpus_used"`
	Service            ServiceInfo `json:"service"`
}

type HypervisorListDetailRes

type HypervisorListDetailRes struct {
	Hypervisors []HypervisorInfoDetail `json:"hypervisors"`
	Links       []rest.LinkInfo        `json:"hypervisor_links"`
}

type HypervisorListRes

type HypervisorListRes struct {
	Hypervisors []HypervisorInfo `json:"hypervisors"`
	Links       []rest.LinkInfo  `json:"hypervisor_links"`
}

type HypervisorShowRes

type HypervisorShowRes struct {
	Hypervisor HypervisorInfoDetail `json:"hypervisor"`
}

type IndexRes

type IndexRes struct {
	Versions []VersionInfo `json:"version"`
}

type KeypairCreateReq

type KeypairCreateReq struct {
	Keypair KeypairInfo `json:"keypair"`
}

type KeypairCreateRes

type KeypairCreateRes struct {
	Keypair KeypairNewInfo `json:"keypair"`
}

type KeypairInfo

type KeypairInfo struct {
	Fingerprint string  `json:"fingerprint"`
	Name        string  `json:"name"`
	Type        string  `json:"type"`
	PublicKey   string  `json:"public_key"`
	PrivateKey  string  `json:"private_key,omitempty"`
	UserID      string  `json:"user_id"`
	Deleted     bool    `json:"deleted"`
	CreatedAt   string  `json:"created_at"`
	UpdatedAt   *string `json:"updated_at"`
	DeletedAt   *string `json:"deleted_at"`
	ID          uint64  `json:"id"`
}

type KeypairListRes

type KeypairListRes struct {
	Keypairs []KeypairInfo   `json:"keypairs"`
	Links    []rest.LinkInfo `json:"keypair_links"`
}

type KeypairNewInfo

type KeypairNewInfo struct {
	Fingerprint string `json:"fingerprint"`
	Name        string `json:"name"`
	Type        string `json:"type"`
	PublicKey   string `json:"public_key"`
	PrivateKey  string `json:"private_key,omitempty"`
	UserID      string `json:"user_id"`
}

type KeypairShowRes

type KeypairShowRes struct {
	Keypair KeypairInfo `json:"keypair"`
}

type MediaTypeInfo

type MediaTypeInfo struct {
	Base string `json:"base"`
	Type string `json:"type"`
}

type ServiceInfo

type ServiceInfo struct {
	ID             string  `json:"id"`
	Host           string  `json:"host"`
	DisabledReason *string `json:"disabled_reason"`
}

type VersionIndexRes

type VersionIndexRes struct {
	Version VersionInfo `json:"version"`
}

type VersionInfo

type VersionInfo struct {
	ID         string          `json:"id"`
	Status     string          `json:"status"`
	Updated    string          `json:"updated"`
	MinVersion string          `json:"min_version"`
	Version    string          `json:"version"`
	MediaTypes []MediaTypeInfo `json:"media-types"`
	Links      []rest.LinkInfo `json:"links"`
}

Jump to

Keyboard shortcuts

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