appgate

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version12 = 12
	Version13 = 13
	Version14 = 14
	Version15 = 15
	Version16 = 16
	// DefaultClientVersion is the latest support version of appgate sdp client that is supported.
	// its not recommended to change this value.
	DefaultClientVersion = Version15
)
View Source
const (
	// DefaultDescription is the default string for terraform resources.
	DefaultDescription = "Managed by terraform"
)

Variables

View Source
var (
	// ApplianceVersionMap match appliance version to go client version.
	ApplianceVersionMap = map[int]string{
		Version12: "5.1.0",
		Version13: "5.2.0",
		Version14: "5.3.0",
		Version15: "5.4.0",
		Version16: "5.5.0",
	}

	Appliance53Version, _ = version.NewVersion(ApplianceVersionMap[Version14])
	Appliance54Version, _ = version.NewVersion(ApplianceVersionMap[Version15])
)

Functions

func Nprintf added in v0.5.4

func Nprintf(format string, params map[string]interface{}) string

Nprintf is a Printf sibling (Nprintf; Named Printf), which handles strings like Nprintf("Hello %{target}!", map[string]interface{}{"target":"world"}) == "Hello world!". This is particularly useful for generated tests, where we don't want to use Printf, since that would require us to generate a very particular ordering of arguments.

func Provider

func Provider() *schema.Provider

Provider function returns the object that implements the terraform.ResourceProvider interface, specifically a schema.Provider

Types

type Client

type Client struct {
	Token                  string
	UUID                   string
	ApplianceVersion       *version.Version
	LatestSupportedVersion *version.Version
	ClientVersion          int
	API                    *openapi.APIClient
	Config                 *Config
}

Client is the appgate API client.

func (*Client) GetToken added in v0.6.6

func (c *Client) GetToken() (string, error)

GetToken makes first login and initiate the client towards the controller. this is always the first made

type Config

type Config struct {
	URL          string `json:"appgate_url,omitempty"`
	Username     string `json:"appgate_username,omitempty"`
	Password     string `json:"appgate_password,omitempty"`
	Provider     string `json:"appgate_provider,omitempty"`
	Insecure     bool   `json:"appgate_insecure,omitempty"`
	Timeout      int    `json:"appgate_timeout,omitempty"`
	LoginTimeout int    `json:"appgate_login_timeout,omitempty"`
	Debug        bool   `json:"appgate_http_debug,omitempty"`
	Version      int    `json:"appgate_client_version,omitempty"`
}

Config for appgate provider.

func (*Config) Client

func (c *Config) Client() (*Client, error)

Client creates

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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