fortiadc

package
v0.0.0-...-437628f Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FILTER_TYPE_LIST = 1
View Source
var FILTER_TYPE_STRING = 0

Functions

func Provider

func Provider() *schema.Provider

Provider creates and returns the FortiOS *schema.Provider.

Types

type Config

type Config struct {
	Hostname        string
	Token           string
	Insecure        *bool
	CABundle        string
	CABundleContent string
	Vdom            string
	HTTPProxy       string

	PeerAuth   string
	CaCert     string
	ClientCert string
	ClientKey  string
}

Config gets the authentication information from the given metadata

func (*Config) CreateClient

func (c *Config) CreateClient() (interface{}, error)

CreateClient creates a FortiClient Object with the authentication information. It returns the FortiClient Object for the use when the plugin is initialized.

type FortiClient

type FortiClient struct {
	//to sdk client
	Client *forticlient.FortiSDKClient
}

FortiClient contains the basic FortiOS SDK connection information to FortiOS It can be used to as a client of FortiOS for the plugin Now FortiClient contains two kinds of clients: Client is for FortiGate Client Fottimanager is for FortiManager

Source Files

Jump to

Keyboard shortcuts

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