client

package
v0.0.0-...-72c0a3b Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2017 License: MIT Imports: 7 Imported by: 1

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 represent the Meraki client structure

func NewClient

func NewClient(urlBase *url.URL, token, version string) (*Client, error)

NewClient returns new instance of a Meraka api client

func (*Client) Organization

func (c *Client) Organization(id int) OrganizationInterface

Organizations returns organization client interface

func (*Client) Organizations

func (c *Client) Organizations() (*api.OrganizationList, error)

Organizations returns list of organizations

type ClientInterface

type ClientInterface interface {
	// Organizations returns list of organizations
	Organization(id string) OrganizationInterface
	// Organizations returns list of organizations
	Organizations() (*api.OrganizationList, error)
}

ClientInterface regroups all Meraki Client methods

type DeviceInterface

type DeviceInterface interface {
	// Get returns the Device api object corresponding to the ID
	Get() (*api.Device, error)
	// Performances returns new Performance client interface
	Performance() (*api.Performance, error)
}

type NetworkInterface

type NetworkInterface interface {
	// Get returns the Network api object corresponding to the ID
	Get() (*api.Network, error)
	// Devices returns list of device associated the a Network
	Devices() (*api.DeviceList, error)
	// Device return Device client interface
	Device(id string) DeviceInterface
}

type OrganizationInterface

type OrganizationInterface interface {
	// Get returns the Organization api object corresponding to the ID
	Get() (*api.Organization, error)
	// Networks returns the list of network associated to the Organization ID
	Networks() (*api.NetworkList, error)
	// Network returns the Network API Client endpoint associated to the ID
	Network(id string) NetworkInterface
}

OrganizationInterface interface for the Organization Meraki API endpoint

Jump to

Keyboard shortcuts

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