entity

package
v0.0.0-...-72177e3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 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 Flavor

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

type FlavorsResp

type FlavorsResp struct {
	Flavors []Flavor `json:"flavors"`
}

type GetTokenReq

type GetTokenReq struct {
	Auth struct {
		PasswordCredentials struct {
			UserName string `json:"username"`
			Password string `json:"password"`
		} `json:"passwordCredentials"`
		TenantID string `json:"tenantId"`
	} `json:"auth"`
}

type GetTokenResp

type GetTokenResp struct {
	Access struct {
		Token struct {
			Id      string `json:"id"`
			Expires string `json:"expires"`
		} `json:"token"`
	} `json:"access"`
}

type Image

type Image struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Status string `json:"status"`
}

type ImageReq

type ImageReq struct {
	Name string
}

type ImageResp

type ImageResp struct {
	Images []Image `json:"images"`
}

type LaunchServerReq

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

type LaunchServerResp

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

type Server

type Server struct {
	ImageRef  string `json:"imageRef"`
	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"`
}

type ServerActionReq

type ServerActionReq struct {
	CreateImage *struct {
		Name string `json:"name"`
	} `json:"createImage"`
}

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"`
}

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 ServerDetailResp

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

Jump to

Keyboard shortcuts

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