Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateHost(host *HostCreateRequest) (*Host, error)
- func (c *Client) CreateInstance(instance *InstanceCreateRequest) (*Instance, error)
- func (c *Client) CreateNetwork(network *NetworkCreateRequest) (*Network, error)
- func (c *Client) CreateSupernet(supernet *SupernetCreateRequest) (*Supernet, error)
- func (c *Client) DeleteHost(hostId string) error
- func (c *Client) DeleteInstance(instanceId string) error
- func (c *Client) DeleteNetwork(networkId string) error
- func (c *Client) DeleteSupernet(supernetId string) error
- func (c *Client) GetHost(hostId string) (*Host, error)
- func (c *Client) GetInstance(instanceId string) (*Instance, error)
- func (c *Client) GetNetwork(networkId string) (*Network, error)
- func (c *Client) GetSupernet(supernetId string) (*Supernet, error)
- func (c *Client) UpdateHost(hostId string, host *HostUpdateRequest) (*Host, error)
- func (c *Client) UpdateInstance(instanceId string, instance *InstanceUpdateRequest) (*Instance, error)
- func (c *Client) UpdateNetwork(networkId string, network *NetworkUpdateRequest) (*Network, error)
- func (c *Client) UpdateSupernet(supernetId string, supernet *SupernetUpdateRequest) (*Supernet, error)
- type Host
- type HostCreateRequest
- type HostDeleteResponse
- type HostUpdateRequest
- type Instance
- type InstanceCreateRequest
- type InstanceDeleteResponse
- type InstanceUpdateRequest
- type Network
- type NetworkCreateRequest
- type NetworkDeleteResponse
- type NetworkUpdateRequest
- type Supernet
- type SupernetCreateRequest
- type SupernetDeleteResponse
- type SupernetUpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateHost ¶
func (c *Client) CreateHost(host *HostCreateRequest) (*Host, error)
CreateHost - Create new host
func (*Client) CreateInstance ¶
func (c *Client) CreateInstance(instance *InstanceCreateRequest) (*Instance, error)
CreateInstance - Create new instance
func (*Client) CreateNetwork ¶
func (c *Client) CreateNetwork(network *NetworkCreateRequest) (*Network, error)
CreateNetwork - Assign a new network from a given supernet or supernetPool
func (*Client) CreateSupernet ¶
func (c *Client) CreateSupernet(supernet *SupernetCreateRequest) (*Supernet, error)
CreateSupernet - Create new supernet
func (*Client) DeleteHost ¶
DeleteHost - Release a host
func (*Client) DeleteInstance ¶
DeleteInstance - Delete an Instance
func (*Client) DeleteNetwork ¶
DeleteNetwork - Deleting a network releases it to the pool
func (*Client) DeleteSupernet ¶
DeleteSupernet - Delete a Supernet
func (*Client) GetInstance ¶
GetInstance - Returns a specifc Instance
func (*Client) GetNetwork ¶
GetNetwork - Returns a specifc Network
func (*Client) GetSupernet ¶
GetSupernet - Returns a specifc Supernet
func (*Client) UpdateHost ¶
func (c *Client) UpdateHost(hostId string, host *HostUpdateRequest) (*Host, error)
UpdateHost - Updates an Host
func (*Client) UpdateInstance ¶
func (c *Client) UpdateInstance(instanceId string, instance *InstanceUpdateRequest) (*Instance, error)
UpdateInstance - Updates an instance
func (*Client) UpdateNetwork ¶
func (c *Client) UpdateNetwork(networkId string, network *NetworkUpdateRequest) (*Network, error)
UpdateNetwork - Update a network
func (*Client) UpdateSupernet ¶
func (c *Client) UpdateSupernet(supernetId string, supernet *SupernetUpdateRequest) (*Supernet, error)
UpdateSupernet - Updates a supernet
type HostCreateRequest ¶
type HostDeleteResponse ¶
type HostUpdateRequest ¶
type InstanceCreateRequest ¶
type InstanceDeleteResponse ¶
type InstanceUpdateRequest ¶
type Network ¶
type Network struct {
ID string `json:"crn,omitempty"`
SupernetId string `json:"parent"`
Description string `json:"description"`
NameTag string `json:"nameTag"`
PrefixStr string `json:"prefixStr"`
HostAssign bool `json:"hostAssign"`
CreatedAt int `json:"createdAt"`
UpdatedAt int `json:"updatedAt"`
}
type NetworkCreateRequest ¶
type NetworkDeleteResponse ¶
type NetworkUpdateRequest ¶
type SupernetCreateRequest ¶
type SupernetDeleteResponse ¶
Click to show internal directories.
Click to hide internal directories.