common

package
v0.0.0-...-97e04f7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileName string

Functions

func GetOpenstackConfWithPlatform

func GetOpenstackConfWithPlatform(platform string) (*config.Conf, error)

func GetToken

func GetToken(Platform string) (token string)

Types

type Auth

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

type CrServer

type CrServer struct {
	Server Server `json:"server,omitempty"`
}

type CreateSerReq

type CreateSerReq struct {
	Platform string   `json:"platform,omitempty"`
	CrServer CrServer `json:"crServer,omitempty"`
}

type CreateServerResp

type CreateServerResp struct {
	Code   int64      `json:"code"`
	Msg    string     `json:"msg"`
	Data   string     `json:"data"`
	Server ServerResp `json:"server,omitempty"`
}

type GetServersDetailedByIdReq

type GetServersDetailedByIdReq struct {
	ServerId string `json:"server_id,omitempty"`
	Platform string `json:"platform,omitempty"`
}

type GetServersDetailedByIdResp

type GetServersDetailedByIdResp struct {
	Code int64  `json:"code"`
	Msg  string `json:"msg"`
	//	Data   string         `json:"data"`
	Server ServerDetailed `json:"server,omitempty"`
}

type Networks

type Networks struct {
	Uuid string `json:"uuid,omitempty"`
}

type Server

type Server struct {
	FlavorRef  string     `json:"flavorRef,omitempty"`
	Name       string     `json:"name,omitempty"`
	Networks   []Networks `json:"networks,omitempty"`
	ImageRef   string     `json:"imageRef,omitempty"`
	AccessIPv4 string     `json:"accessIPv4,omitempty"`
	AccessIPv6 string     `json:"accessIPv6,omitempty"`
	AdminPass  string     `json:"adminPass,omitempty"`
	MinCount   int64      `json:"min_count,omitempty"`
}

type ServerDetailed

type ServerDetailed struct {
	Status string `json:"status,omitempty"`
	Id     string `json:"id,omitempty"`
}

type ServerResp

type ServerResp struct {
	Id string `json:"id,omitempty"`
}

type Token

type Token struct {
	Token struct {
		ExpiresAt time.Time `json:"expires_at"`
		AuditIds  []string  `json:"audit_ids"`
		Methods   []string  `json:"methods"`
		IssuedAt  time.Time `json:"issued_at"`
		User      struct {
			Domain struct {
				Id   string `json:"id"`
				Name string `json:"name"`
			} `json:"domain"`
			Id                string `json:"id"`
			Name              string `json:"name"`
			PasswordExpiresAt string `json:"password_expires_at"`
		} `json:"user"`
	} `json:"token"`
}

Jump to

Keyboard shortcuts

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