Documentation
¶
Overview ¶
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func GetRestURL(endPoint string) string
- type RookNetworkRestClient
- func (c *RookNetworkRestClient) CreateBlockImage(newImage model.BlockImage) (string, error)
- func (c *RookNetworkRestClient) CreatePool(newPool model.Pool) (string, error)
- func (a *RookNetworkRestClient) Do(method, query string, body io.Reader) ([]byte, error)
- func (a *RookNetworkRestClient) DoGet(query string) ([]byte, error)
- func (a *RookNetworkRestClient) DoPost(query string, body io.Reader) ([]byte, error)
- func (c *RookNetworkRestClient) GetBlockImageMapInfo() (model.BlockImageMapInfo, error)
- func (c *RookNetworkRestClient) GetBlockImages() ([]model.BlockImage, error)
- func (a *RookNetworkRestClient) GetNodes() ([]model.Node, error)
- func (c *RookNetworkRestClient) GetPools() ([]model.Pool, error)
- func (a *RookNetworkRestClient) GetStatusDetails() (model.StatusDetails, error)
- func (a *RookNetworkRestClient) URL() string
- type RookRestClient
- type RookRestError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRestURL ¶
Types ¶
type RookNetworkRestClient ¶
func NewRookNetworkRestClient ¶
func NewRookNetworkRestClient(url string, httpClient *http.Client) *RookNetworkRestClient
func (*RookNetworkRestClient) CreateBlockImage ¶
func (c *RookNetworkRestClient) CreateBlockImage(newImage model.BlockImage) (string, error)
func (*RookNetworkRestClient) CreatePool ¶
func (c *RookNetworkRestClient) CreatePool(newPool model.Pool) (string, error)
func (*RookNetworkRestClient) DoGet ¶
func (a *RookNetworkRestClient) DoGet(query string) ([]byte, error)
func (*RookNetworkRestClient) GetBlockImageMapInfo ¶
func (c *RookNetworkRestClient) GetBlockImageMapInfo() (model.BlockImageMapInfo, error)
func (*RookNetworkRestClient) GetBlockImages ¶
func (c *RookNetworkRestClient) GetBlockImages() ([]model.BlockImage, error)
func (*RookNetworkRestClient) GetNodes ¶
func (a *RookNetworkRestClient) GetNodes() ([]model.Node, error)
func (*RookNetworkRestClient) GetPools ¶
func (c *RookNetworkRestClient) GetPools() ([]model.Pool, error)
func (*RookNetworkRestClient) GetStatusDetails ¶
func (a *RookNetworkRestClient) GetStatusDetails() (model.StatusDetails, error)
func (*RookNetworkRestClient) URL ¶
func (a *RookNetworkRestClient) URL() string
type RookRestClient ¶
type RookRestClient interface { URL() string GetNodes() ([]model.Node, error) GetPools() ([]model.Pool, error) CreatePool(pool model.Pool) (string, error) GetBlockImages() ([]model.BlockImage, error) CreateBlockImage(image model.BlockImage) (string, error) GetBlockImageMapInfo() (model.BlockImageMapInfo, error) GetStatusDetails() (model.StatusDetails, error) }
type RookRestError ¶
func (RookRestError) Error ¶
func (e RookRestError) Error() string