Documentation
¶
Index ¶
- Constants
- func NewHttpClient(apiPort int, requestTimeout time.Duration) *httpClient
- type Client
- func (h *Client) AdvertiseOffersNeighbor(ctx context.Context, fromTrader, toNeighborTrader, traderOffering *types.Node) error
- func (h *Client) CreateOffer(ctx context.Context, fromNode, toNode *types.Node, offer *types.Offer) error
- func (h *Client) GetOffers(ctx context.Context, fromNode, toTrader *types.Node, relay bool) ([]types.AvailableOffer, error)
- func (h *Client) LaunchContainer(ctx context.Context, fromBuyer, toSupplier *types.Node, offer *types.Offer, ...) ([]types.ContainerStatus, error)
- func (h *Client) ObtainConfiguration(ctx context.Context, systemsNode *types.Node) (*configuration.Configuration, error)
- func (h *Client) RefreshOffer(ctx context.Context, fromTrader, toSupp *types.Node, offer *types.Offer) (bool, error)
- func (h *Client) RemoveOffer(ctx context.Context, fromSupp, toTrader *types.Node, offer *types.Offer) error
- func (h *Client) StopLocalContainer(ctx context.Context, toSupplier *types.Node, containerID string) error
- func (h *Client) UpdateOffer(ctx context.Context, fromSupplier, toTrader *types.Node, offer *types.Offer) error
- type Error
Constants ¶
View Source
const Unknown = 1
Variables ¶
This section is empty.
Functions ¶
func NewHttpClient ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AdvertiseOffersNeighbor ¶
func (*Client) CreateOffer ¶
func (*Client) LaunchContainer ¶
func (*Client) ObtainConfiguration ¶
func (h *Client) ObtainConfiguration(ctx context.Context, systemsNode *types.Node) (*configuration.Configuration, error)
func (*Client) RefreshOffer ¶
func (*Client) RemoveOffer ¶
func (*Client) StopLocalContainer ¶
Click to show internal directories.
Click to hide internal directories.