network

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2019 Cohesity Inc.

Copyright 2019 Cohesity Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NETWORK

type NETWORK interface {
	CreateBond(*models.CreateBondParameters) (*models.CreateBondResult, error)

	UpdateBond(*models.UpdateBondParameters) (*models.UpdateBondResult, error)

	DeleteBond(string) error

	DeleteHosts([]string) (*models.HostResult, error)

	ListHosts() ([]*models.HostEntry, error)

	CreateAppendHosts(*models.AppendHostsParameters) (*models.HostResult, error)

	UpdateEditHosts(*models.EditHostsParameters) (*models.HostResult, error)

	ListNetworkInterfaces() ([]*models.NodeNetworkInterfaces, error)
}

* Interface for the NETWORK_IMPL

type NETWORK_IMPL

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

* Client structure as interface implementation

func NewNETWORK

func NewNETWORK(config configuration.CONFIGURATION) *NETWORK_IMPL

* Factory for the NETWORK interaface returning NETWORK_IMPL

func (*NETWORK_IMPL) CreateAppendHosts

func (me *NETWORK_IMPL) CreateAppendHosts(
	body *models.AppendHostsParameters) (*models.HostResult, error)

*

  • Sends a request to add one or more new entries to the Cluster's /etc/hosts
  • file.
  • @param *models.AppendHostsParameters body parameter: Required
  • @return Returns the *models.HostResult response from the API call

func (*NETWORK_IMPL) CreateBond

*

  • Sends a request to create a new network bond on the Cluster. This can only be
  • performed on a Node before it is part of a Cluster.
  • @param *models.CreateBondParameters body parameter: Required
  • @return Returns the *models.CreateBondResult response from the API call

func (*NETWORK_IMPL) DeleteBond

func (me *NETWORK_IMPL) DeleteBond(
	name string) error

*

  • Sends a request to delete a network bond from the Cluster. This can only be
  • performed on a Node before it is part of a Cluster.
  • @param string name parameter: Required
  • @return Returns the response from the API call

func (*NETWORK_IMPL) DeleteHosts

func (me *NETWORK_IMPL) DeleteHosts(
	ips []string) (*models.HostResult, error)

*

  • Sends a request to remove one or more entries from the Cluster's
  • etc/hosts file.
  • @param []string ips parameter: Required
  • @return Returns the *models.HostResult response from the API call

func (*NETWORK_IMPL) ListHosts

func (me *NETWORK_IMPL) ListHosts() ([]*models.HostEntry, error)

*

  • Sends a request to get a list of the current entries in the hosts file
  • on the Cluster.
  • @return Returns the []*models.HostEntry response from the API call

func (*NETWORK_IMPL) ListNetworkInterfaces

func (me *NETWORK_IMPL) ListNetworkInterfaces() ([]*models.NodeNetworkInterfaces, error)

*

  • Sends a request to a Cluster to list all of the network interfaces present
  • on the Cluster.
  • @return Returns the []*models.NodeNetworkInterfaces response from the API call

func (*NETWORK_IMPL) UpdateBond

*

  • Sends a request to update the bonding mode of a network bond. This can only be
  • performed on a Node before it is part of a Cluster.
  • @param *models.UpdateBondParameters body parameter: Required
  • @return Returns the *models.UpdateBondResult response from the API call

func (*NETWORK_IMPL) UpdateEditHosts

func (me *NETWORK_IMPL) UpdateEditHosts(
	body *models.EditHostsParameters) (*models.HostResult, error)

*

  • Sends a request to edit one or more entries in the Cluster's /etc/hosts file.
  • @param *models.EditHostsParameters body parameter: Required
  • @return Returns the *models.HostResult response from the API call

Jump to

Keyboard shortcuts

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