commands

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(osArgs []string)

func InitCmd

func InitCmd()

Types

type ProductOrder

type ProductOrder struct {
	Param  *ProductParam
	Client *client.TypesProto

	QuoteID       string
	QuoteItemID   string
	QuoteCurrency string
	QuotePrice    float64

	InternalID string

	QuoteReq *models.ProtoOrchestraCommonRequest
	QuoteRsp *models.ProtoOrchestraCommonResponse

	CreateOrderReq    *models.ProtoCreateOrderParam
	ChangeOrderReq    *models.ProtoChangeOrderParam
	TerminateOrderReq *models.ProtoTerminateOrderParam
	CommonOrderRsp    *models.ProtoOrderID

	OrderInfoRsp *models.ProtoOrderInfo
}

func (*ProductOrder) CheckOrderStatus

func (o *ProductOrder) CheckOrderStatus() error

func (*ProductOrder) CreateChangeOrder

func (o *ProductOrder) CreateChangeOrder() error

func (*ProductOrder) CreateNewOrder

func (o *ProductOrder) CreateNewOrder() error

func (*ProductOrder) CreateQuote

func (o *ProductOrder) CreateQuote(action string) error

func (*ProductOrder) CreateTerminateOrder

func (o *ProductOrder) CreateTerminateOrder() error

func (*ProductOrder) GetOrderInfo

func (o *ProductOrder) GetOrderInfo() error

func (*ProductOrder) GetOrderInfoByInternalId

func (o *ProductOrder) GetOrderInfoByInternalId(internalId string) (*models.ProtoOrderInfo, error)

func (*ProductOrder) GetOrderInfoBySellerAndOrderId

func (o *ProductOrder) GetOrderInfoBySellerAndOrderId(seller string, orderId string) (*models.ProtoOrderInfo, error)

func (*ProductOrder) Init

func (o *ProductOrder) Init() error

type ProductParam

type ProductParam struct {
	RunEnv string

	BuyerAddr  string
	BuyerName  string
	SellerAddr string
	SellerName string

	Name      string
	Bandwidth int32
	CosName   string
	StartTime int64
	EndTime   int64

	BuyerProductID string

	ExistProductID       string
	ExistConnectionParam *models.ProtoConnectionParam
}

Jump to

Keyboard shortcuts

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