Documentation ¶
Index ¶
- Variables
- type AuctionNATSClient
- func (rep *AuctionNATSClient) BidForStartAuction(repGuids []string, startAuctionInfo auctiontypes.StartAuctionInfo) auctiontypes.StartAuctionBids
- func (rep *AuctionNATSClient) BidForStopAuction(repGuids []string, stopAuctionInfo auctiontypes.StopAuctionInfo) auctiontypes.StopAuctionBids
- func (rep *AuctionNATSClient) RebidThenTentativelyReserve(repGuids []string, startAuctionInfo auctiontypes.StartAuctionInfo) auctiontypes.StartAuctionBids
- func (rep *AuctionNATSClient) ReleaseReservation(repGuids []string, startAuctionInfo auctiontypes.StartAuctionInfo)
- func (rep *AuctionNATSClient) Reset(repGuid string)
- func (rep *AuctionNATSClient) Run(repGuid string, startAuction models.LRPStartAuction)
- func (rep *AuctionNATSClient) SetSimulatedInstances(repGuid string, instances []auctiontypes.SimulatedInstance)
- func (rep *AuctionNATSClient) SimulatedInstances(repGuid string) []auctiontypes.SimulatedInstance
- func (rep *AuctionNATSClient) Stop(repGuid string, stopInstance models.StopLRPInstance)
- func (rep *AuctionNATSClient) TotalResources(repGuid string) auctiontypes.Resources
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestFailedError = errors.New("request failed")
Functions ¶
This section is empty.
Types ¶
type AuctionNATSClient ¶
type AuctionNATSClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(natsClient yagnats.NATSClient, timeout time.Duration, runTimeout time.Duration, logger lager.Logger) (*AuctionNATSClient, error)
func (*AuctionNATSClient) BidForStartAuction ¶
func (rep *AuctionNATSClient) BidForStartAuction(repGuids []string, startAuctionInfo auctiontypes.StartAuctionInfo) auctiontypes.StartAuctionBids
func (*AuctionNATSClient) BidForStopAuction ¶
func (rep *AuctionNATSClient) BidForStopAuction(repGuids []string, stopAuctionInfo auctiontypes.StopAuctionInfo) auctiontypes.StopAuctionBids
func (*AuctionNATSClient) RebidThenTentativelyReserve ¶
func (rep *AuctionNATSClient) RebidThenTentativelyReserve(repGuids []string, startAuctionInfo auctiontypes.StartAuctionInfo) auctiontypes.StartAuctionBids
func (*AuctionNATSClient) ReleaseReservation ¶
func (rep *AuctionNATSClient) ReleaseReservation(repGuids []string, startAuctionInfo auctiontypes.StartAuctionInfo)
func (*AuctionNATSClient) Reset ¶
func (rep *AuctionNATSClient) Reset(repGuid string)
func (*AuctionNATSClient) Run ¶
func (rep *AuctionNATSClient) Run(repGuid string, startAuction models.LRPStartAuction)
func (*AuctionNATSClient) SetSimulatedInstances ¶
func (rep *AuctionNATSClient) SetSimulatedInstances(repGuid string, instances []auctiontypes.SimulatedInstance)
func (*AuctionNATSClient) SimulatedInstances ¶
func (rep *AuctionNATSClient) SimulatedInstances(repGuid string) []auctiontypes.SimulatedInstance
func (*AuctionNATSClient) Stop ¶
func (rep *AuctionNATSClient) Stop(repGuid string, stopInstance models.StopLRPInstance)
func (*AuctionNATSClient) TotalResources ¶
func (rep *AuctionNATSClient) TotalResources(repGuid string) auctiontypes.Resources
Click to show internal directories.
Click to hide internal directories.