staticroute

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 STATICROUTE

type STATICROUTE interface {
	GetStaticRoutes() ([]*models.StaticRoute, error)

	RemoveStaticRoute(string) error

	UpdateStaticRoute(string, *models.StaticRoute) (*models.StaticRoute, error)
}

* Interface for the STATICROUTE_IMPL

type STATICROUTE_IMPL

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

* Client structure as interface implementation

func NewSTATICROUTE

func NewSTATICROUTE(config configuration.CONFIGURATION) *STATICROUTE_IMPL

* Factory for the STATICROUTE interaface returning STATICROUTE_IMPL

func (*STATICROUTE_IMPL) GetStaticRoutes

func (me *STATICROUTE_IMPL) GetStaticRoutes() ([]*models.StaticRoute, error)

*

  • Returns the Static Routes for the Cohesity Cluster.
  • @return Returns the []*models.StaticRoute response from the API call

func (*STATICROUTE_IMPL) RemoveStaticRoute

func (me *STATICROUTE_IMPL) RemoveStaticRoute(
	ip string) error

*

  • Returns the delete status upon completion.
  • @param string ip parameter: Required
  • @return Returns the response from the API call

func (*STATICROUTE_IMPL) UpdateStaticRoute

func (me *STATICROUTE_IMPL) UpdateStaticRoute(
	ip string,
	body *models.StaticRoute) (*models.StaticRoute, error)

*

  • Returns the created or updated Static Route on the Cohesity Cluster.
  • @param string ip parameter: Required
  • @param *models.StaticRoute body parameter: Optional
  • @return Returns the *models.StaticRoute response from the API call

Jump to

Keyboard shortcuts

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