entity

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetServerDetailResp

type GetServerDetailResp struct {
	Server ServerDetail `json:"server"`
}

type GetTokenReq

type GetTokenReq struct {
	Auth struct {
		Identity struct {
			Methods  []string `json:"methods"`
			Password struct {
				User struct {
					Name     string `json:"name"`
					Password string `json:"password"`
				} `json:"user"`
			} `json:"password"`
		} `json:"identity"`
		Scope struct {
			Project struct {
				ID string `json:"id"`
			} `json:"project"`
		} `json:"scope"`
	} `json:"auth"`
}

type GetTokenResp

type GetTokenResp struct {
	Token struct {
		ExpiresAt string `json:"expires_at"`
	} `json:"token"`
}

type LaunchServerReq

type LaunchServerReq struct {
	Server Server `json:"server"`
}

type LaunchServerResp

type LaunchServerResp struct {
	Server struct {
		ID string `json:"id"`
	} `json:"server"`
}

type ListFlavorsResp

type ListFlavorsResp struct {
	Flavors []struct {
		ID         string `json:"id"`
		Name       string `json:"name"`
		RAM        int    `json:"ram"`
		Disk       int    `json:"disk"`
		Swap       string `json:"swap"`
		VCPUS      int    `json:"vcpus"`
		RxTxFactor int    `json:"rxtx_factor"`
		Disabled   bool   `json:"OS-FLV-DISABLED:disabled"`
		Public     bool   `json:"os-flavor-access:is_public"`
	} `json:"flavors"`
}

type ListServerDetailsResp

type ListServerDetailsResp struct {
	Servers []ServerDetail `json:"servers"`
}

type ListVolumesResp

type ListVolumesResp struct {
	Volumes []Volume `json:"volumes"`
}

type Server

type Server struct {
	FlavorRef string `json:"flavorRef"`
	UserData  string `json:"user_data"`
	MetaData  struct {
		InstanceNameTag string `json:"instance_name_tag"`
	} `json:"metadata"`
	SecurityGroups []struct {
		Name string `json:"name"`
	} `json:"security_groups"`
	BlockDevices []struct {
		UUID string `json:"uuid"`
	} `json:"block_device_mapping_v2"`
}

type ServerDetail

type ServerDetail struct {
	ID        string                           `json:"id"`
	Name      string                           `json:"name"`
	Status    string                           `json:"status"`
	Addresses map[string][]ServerDetailAddress `json:"addresses"`
	Metadata  ServerDetailMetadata             `json:"metadata"`
	Volumes   []Volume                         `json:"os-extended-volumes:volumes_attached"`
}

type ServerDetailAddress

type ServerDetailAddress struct {
	Addr    string `json:"addr"`
	Version int    `json:"version"`
}

type ServerDetailMetadata

type ServerDetailMetadata struct {
	InstanceNameTag string `json:"instance_name_tag"`
}

type UpdateVolumeReq

type UpdateVolumeReq struct {
	Volume struct {
		Name string `json:"name"`
	} `json:"volume"`
}

type Volume

type Volume struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type VolumeActionReq

type VolumeActionReq struct {
	UploadImage struct {
		ImageName string `json:"image_name"`
	} `json:"os-volume_upload_image"`
}

Jump to

Keyboard shortcuts

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