networking

package
v0.0.0-...-11f2a26 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

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
}

Client is a networking client for DC/OS.

func NewClient

func NewClient(baseClient *httpclient.Client) *Client

NewClient creates a new networking client.

func (*Client) Nodes

func (c *Client) Nodes() ([]Node, error)

Nodes returns the nodes in a cluster.

type Node

type Node struct {
	Updated   time.Time `json:"updated"`
	PublicIPs []string  `json:"public_ips"`
	PrivateIP string    `json:"private_ip"`
	Hostname  string    `json:"hostname"`
}

Node is the struct representing what is returned by the networking API.

Jump to

Keyboard shortcuts

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