Documentation ¶
Index ¶
- Constants
- func New(version string) func() provider.Provider
- type Twingate
- func (t Twingate) Configure(ctx context.Context, request provider.ConfigureRequest, ...)
- func (t Twingate) DataSources(ctx context.Context) []func() datasource.DataSource
- func (t Twingate) Metadata(ctx context.Context, request provider.MetadataRequest, ...)
- func (t Twingate) Resources(ctx context.Context) []func() resource.Resource
- func (t Twingate) Schema(ctx context.Context, request provider.SchemaRequest, ...)
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 ¶
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) Schema ¶
func (t Twingate) Schema(ctx context.Context, request provider.SchemaRequest, response *provider.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.