Documentation
¶
Index ¶
- Constants
- type AuthResponse
- type AuthStruct
- type BindDiskResponse
- type Client
- func (c *Client) BindDisk(disk_id int, node_id string) (*BindDiskResponse, error)
- func (c *Client) CreateDisk(size int) (*Disk, error)
- func (c *Client) CreateLoadBalancer(bind_payload LoadBalancer) (string, error)
- func (c *Client) CreateNetwork(name string) (*NetworkR, error)
- func (c *Client) DeleteDisk(id int) error
- func (c *Client) DeleteLoadBalancer(bind_payload LoadBalancer) error
- func (c *Client) DeleteNetwork(id int) error
- func (c *Client) GetAllLoadBalancers() ([]LoadBalancer, error)
- func (c *Client) GetDisk(id int) (*Disk, error)
- func (c *Client) GetDisks() (*[]Disk, error)
- func (c *Client) GetLoadBalancer(bind_payload LoadBalancer) (*LoadBalancer, bool, error)
- func (c *Client) GetNetwork(id int) (*NetworkR, error)
- func (c *Client) GetNetworkByName(name string) (*NetworkR, error)
- func (c *Client) GetNodeByMetadata() (*NodeV2, error)
- func (c *Client) GetNodeByName(name string) (*NodeV2, error)
- func (c *Client) GetNodes() (*[]NodeV2, error)
- func (c *Client) GetToken() string
- func (c *Client) SignIn() (*AuthResponse, error)
- func (c *Client) UnBindDisk(disk_id int, node_id string) error
- func (c *Client) UpdateLoadBalancer(bind_payload LoadBalancer) error
- func (c *Client) UpdateNetwork(network NetworkR) (*NetworkR, error)
- type Config
- type Disk
- type DoRequester
- type LoadBalancer
- type NetworkInterface
- type NetworkR
- type Node
- type NodeV2
- type PayloadAddSsh
- type Port_Service
- type Worker
Constants ¶
View Source
const HostURL string = "http://127.0.0.1:8050"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶
type AuthStruct ¶
type BindDiskResponse ¶
type Client ¶
type Client struct { HostURL string HTTPClient DoRequester Token string Auth AuthStruct }
func (*Client) BindDisk ¶
func (c *Client) BindDisk(disk_id int, node_id string) (*BindDiskResponse, error)
func (*Client) CreateLoadBalancer ¶
func (c *Client) CreateLoadBalancer(bind_payload LoadBalancer) (string, error)
func (*Client) DeleteDisk ¶
func (*Client) DeleteLoadBalancer ¶
func (c *Client) DeleteLoadBalancer(bind_payload LoadBalancer) error
func (*Client) DeleteNetwork ¶
func (*Client) GetAllLoadBalancers ¶
func (c *Client) GetAllLoadBalancers() ([]LoadBalancer, error)
func (*Client) GetLoadBalancer ¶
func (c *Client) GetLoadBalancer(bind_payload LoadBalancer) (*LoadBalancer, bool, error)
func (*Client) GetNodeByMetadata ¶
func (*Client) SignIn ¶
func (c *Client) SignIn() (*AuthResponse, error)
func (*Client) UpdateLoadBalancer ¶
func (c *Client) UpdateLoadBalancer(bind_payload LoadBalancer) error
type LoadBalancer ¶
type LoadBalancer struct { Ports []Port_Service `json:"ports"` Nodes []Node `json:"nodes"` Namespace string `json:"namespace"` Name string `json:"name"` Ip string `json:"ip,omitempty"` }
type NetworkInterface ¶
type NodeV2 ¶
type NodeV2 struct { ID int `json:"id"` Name string `json:"name"` Interface []NetworkInterface `json:"interface"` Type string `json:"type"` Disks []Disk `json:"disks"` }
type PayloadAddSsh ¶
to fix - test
type Port_Service ¶
Click to show internal directories.
Click to hide internal directories.