twingate

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultHTTPTimeout  = "35"
	DefaultHTTPMaxRetry = "10"
	DefaultURL          = "twingate.com"

	// EnvAPIToken env var for Token.
	EnvAPIToken     = "TWINGATE_API_TOKEN" // #nosec G101
	EnvNetwork      = "TWINGATE_NETWORK"
	EnvURL          = "TWINGATE_URL"
	EnvHTTPTimeout  = "TWINGATE_HTTP_TIMEOUT"
	EnvHTTPMaxRetry = "TWINGATE_HTTP_MAX_RETRY"
)

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

Types

type Twingate

type Twingate struct {
	// contains filtered or unexported fields
}

func (Twingate) Configure

func (t Twingate) Configure(ctx context.Context, request provider.ConfigureRequest, response *provider.ConfigureResponse)

func (Twingate) DataSources

func (t Twingate) DataSources(ctx context.Context) []func() datasource.DataSource

func (Twingate) Metadata

func (t Twingate) Metadata(ctx context.Context, request provider.MetadataRequest, response *provider.MetadataResponse)

func (Twingate) Resources

func (t Twingate) Resources(ctx context.Context) []func() resource.Resource

func (Twingate) Schema

func (t Twingate) Schema(ctx context.Context, request provider.SchemaRequest, response *provider.SchemaResponse)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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