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