client

package
v0.0.0-...-b966cd9 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

this package provides an implementation of allocationStore that works by making HTTP calls to a server instance

There is a lot of duplication between the methods here, and it would be nice to

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseUrl string) *Client

func (*Client) CreateOrUpdate

func (c *Client) CreateOrUpdate(newAllocation *allocations.AllocationSpecification) (bool, error)

func (*Client) Delete

func (c *Client) Delete(name string) error

func (*Client) Get

func (c *Client) Get(name string) (*allocations.Allocation, error)

func (*Client) List

func (c *Client) List() (allocations.Allocations, error)

Jump to

Keyboard shortcuts

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