fortios

package
v0.0.0-...-631c333 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

	FMG_Hostname string
	FMG_Username string
	FMG_Passwd   string
	FMG_Insecure *bool
	FMG_CABundle 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
	ClientFortimanager *fmgclient.FmgSDKClient
}

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