fortios

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider creates and returns the FortiOS terraform.ResourceProvider

Types

type Config

type Config struct {
	Hostname string
	Token    string
	Insecure *bool
	CABundle string
	Vdom     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