appgate

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version12 = 12
	Version13 = 13
	Version14 = 14

	// DefaultClientVersion is the latest support version of appgate sdp client that is supported.
	// its not recommended to change this value.
	DefaultClientVersion = Version14
)
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",
		// contains filtered or unexported fields
	}

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

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
}

Client is the appgate API client.

type Config

type Config struct {
	URL      string
	Username string
	Password string
	Provider string
	Insecure bool
	Timeout  int
	Debug    bool
	Version  int
}

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