Documentation
¶
Index ¶
- Constants
- type Error
- type HttpClient
- func (client *HttpClient) AdvertiseOffersNeighbor(fromTrader, toNeighborTrader, traderOffering *types.Node) error
- func (client *HttpClient) CreateOffer(fromNode, toNode *types.Node, offer *types.Offer) error
- func (client *HttpClient) GetOffers(fromNode, toTrader *types.Node, relay bool) ([]types.AvailableOffer, error)
- func (client *HttpClient) LaunchContainer(fromBuyer, toSupplier *types.Node, offer *types.Offer, ...) (*types.ContainerStatus, error)
- func (client *HttpClient) ObtainConfiguration(systemsNode *types.Node) (*configuration.Configuration, error)
- func (client *HttpClient) RefreshOffer(fromTrader, toSupp *types.Node, offer *types.Offer) (bool, error)
- func (client *HttpClient) RemoveOffer(fromSupp, toTrader *types.Node, offer *types.Offer) error
- func (client *HttpClient) StopLocalContainer(toSupplier *types.Node, containerID string) error
Constants ¶
View Source
const Unknown = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Code int
// contains filtered or unexported fields
}
Error of CARAVELA's remote client.
func NewRemoteClientError ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
HttpClient is used to contact the REST API of other nodes.
func NewHttpClient ¶
func NewHttpClient(config *configuration.Configuration) *HttpClient
func (*HttpClient) AdvertiseOffersNeighbor ¶
func (client *HttpClient) AdvertiseOffersNeighbor(fromTrader, toNeighborTrader, traderOffering *types.Node) error
func (*HttpClient) CreateOffer ¶
func (*HttpClient) GetOffers ¶
func (client *HttpClient) GetOffers(fromNode, toTrader *types.Node, relay bool) ([]types.AvailableOffer, error)
func (*HttpClient) LaunchContainer ¶
func (client *HttpClient) LaunchContainer(fromBuyer, toSupplier *types.Node, offer *types.Offer, containerConfig *types.ContainerConfig) (*types.ContainerStatus, error)
func (*HttpClient) ObtainConfiguration ¶
func (client *HttpClient) ObtainConfiguration(systemsNode *types.Node) (*configuration.Configuration, error)
func (*HttpClient) RefreshOffer ¶
func (*HttpClient) RemoveOffer ¶
func (*HttpClient) StopLocalContainer ¶
func (client *HttpClient) StopLocalContainer(toSupplier *types.Node, containerID string) error
Click to show internal directories.
Click to hide internal directories.