velocloud

package
v0.0.0-...-686a89c Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopy

func DeepCopy(src map[string]interface{}) (map[string]interface{}, error)

DeepCopy ...

func GetApplications

func GetApplications(c *Client, application_name string) (float64, error)

GetApplications ...

func GetProfile

func GetProfile(c *Client, profilename string, enterpriseID int) (int, error)

GetProfile ...

Types

type AuthResponse

type AuthResponse struct {
	UserID   int    `json:"user_id"`
	Username string `json:"username"`
	Token    string `json:"token"`
}

AuthResponse -

type AuthStruct

type AuthStruct struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

AuthStruct -

type Client

type Client struct {
	HostURL      string
	HTTPClient   *http.Client
	Token        string
	Cookies      []string
	SSL          bool
	Operator     bool
	EnterpriseId int
}

Client -

func NewTokenClient

func NewTokenClient(vco, token *string, ssl *bool) (*Client, error)

NewTokenClient

func NewUsernamePasswordClient

func NewUsernamePasswordClient(vco, username *string, password *string, ssl *bool, operator *bool) (*Client, error)

NewTokenClient

func (*Client) DoRequest

func (c *Client) DoRequest(req *http.Request) ([]byte, error)

func (*Client) SetEnterprise

func (c *Client) SetEnterprise(e int)

Jump to

Keyboard shortcuts

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