credential

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultCredentials

func DefaultCredentials() (map[string]Credential, error)

func ParseConfig

func ParseConfig(configString []byte, filename string, startPos hcl.Pos) (hcl.Body, hcl.Diagnostics)

func ParseJsonConfig

func ParseJsonConfig(configString []byte, filename string) (hcl.Body, hcl.Diagnostics)

func ResolveConfigStruct

func ResolveConfigStruct(connectionType string) any

Types

type AbuseIPDBConnectionConfig

type AbuseIPDBConnectionConfig struct {
	APIKey *string `cty:"api_key" hcl:"api_key"`
}

func (*AbuseIPDBConnectionConfig) GetCredential

func (c *AbuseIPDBConnectionConfig) GetCredential(name string, shortName string) Credential

type AbuseIPDBCredential

type AbuseIPDBCredential struct {
	CredentialImpl

	APIKey *string `json:"api_key,omitempty" cty:"api_key" hcl:"api_key,optional"`
}

func (*AbuseIPDBCredential) CtyValue

func (c *AbuseIPDBCredential) CtyValue() (cty.Value, error)

func (*AbuseIPDBCredential) Equals

func (c *AbuseIPDBCredential) Equals(otherCredential Credential) bool

func (*AbuseIPDBCredential) GetTtl

func (c *AbuseIPDBCredential) GetTtl() int

func (*AbuseIPDBCredential) Resolve

func (c *AbuseIPDBCredential) Resolve(ctx context.Context) (Credential, error)

func (*AbuseIPDBCredential) Validate

func (c *AbuseIPDBCredential) Validate() hcl.Diagnostics

type AlicloudConnectionConfig

type AlicloudConnectionConfig struct {
	AccessKey        *string  `cty:"access_key" hcl:"access_key,optional"`
	IgnoreErrorCodes []string `cty:"ignore_error_codes" hcl:"ignore_error_codes,optional"`
	Regions          []string `cty:"regions" hcl:"regions,optional"`
	SecretKey        *string  `cty:"secret_key" hcl:"secret_key,optional"`
}

func (*AlicloudConnectionConfig) GetCredential

func (c *AlicloudConnectionConfig) GetCredential(name string, shortName string) Credential

type AlicloudCredential

type AlicloudCredential struct {
	CredentialImpl

	AccessKey *string `json:"access_key,omitempty" cty:"access_key" hcl:"access_key,optional"`
	SecretKey *string `json:"secret_key,omitempty" cty:"secret_key" hcl:"secret_key,optional"`
}

func (*AlicloudCredential) CtyValue

func (c *AlicloudCredential) CtyValue() (cty.Value, error)

func (*AlicloudCredential) Equals

func (c *AlicloudCredential) Equals(otherCredential Credential) bool

func (*AlicloudCredential) GetTtl

func (c *AlicloudCredential) GetTtl() int

in seconds

func (*AlicloudCredential) Resolve

func (c *AlicloudCredential) Resolve(ctx context.Context) (Credential, error)

func (*AlicloudCredential) Validate

func (c *AlicloudCredential) Validate() hcl.Diagnostics

type AwsConnectionConfig

type AwsConnectionConfig struct {
	Regions               []string `cty:"regions" hcl:"regions,optional"`
	DefaultRegion         *string  `cty:"default_region" hcl:"default_region,optional"`
	Profile               *string  `cty:"profile" hcl:"profile,optional"`
	AccessKey             *string  `cty:"access_key" hcl:"access_key,optional"`
	SecretKey             *string  `cty:"secret_key" hcl:"secret_key,optional"`
	SessionToken          *string  `cty:"session_token" hcl:"session_token,optional"`
	MaxErrorRetryAttempts *int     `cty:"max_error_retry_attempts" hcl:"max_error_retry_attempts,optional"`
	MinErrorRetryDelay    *int     `cty:"min_error_retry_delay" hcl:"min_error_retry_delay,optional"`
	IgnoreErrorCodes      []string `cty:"ignore_error_codes" hcl:"ignore_error_codes,optional"`
	EndpointUrl           *string  `cty:"endpoint_url" hcl:"endpoint_url,optional"`
	S3ForcePathStyle      *bool    `cty:"s3_force_path_style" hcl:"s3_force_path_style,optional"`
}

TODO: should we merge AwsConnectionConfig with AwsCredential? They have distinct usage but the data model is very similar

func (*AwsConnectionConfig) GetCredential

func (c *AwsConnectionConfig) GetCredential(name, shortName string) Credential

type AwsCredential

type AwsCredential struct {
	CredentialImpl

	AccessKey    *string `json:"access_key,omitempty" cty:"access_key" hcl:"access_key,optional"`
	SecretKey    *string `json:"secret_key,omitempty" cty:"secret_key" hcl:"secret_key,optional"`
	SessionToken *string `json:"session_token,omitempty" cty:"session_token" hcl:"session_token,optional"`
	Ttl          *int    `json:"ttl,omitempty" cty:"ttl" hcl:"ttl,optional"`
	Profile      *string `json:"profile,omitempty" cty:"profile" hcl:"profile,optional"`
}

func (*AwsCredential) CtyValue

func (c *AwsCredential) CtyValue() (cty.Value, error)

func (*AwsCredential) Equals

func (c *AwsCredential) Equals(otherCredential Credential) bool

func (*AwsCredential) GetTtl

func (c *AwsCredential) GetTtl() int

in seconds

func (*AwsCredential) Resolve

func (c *AwsCredential) Resolve(ctx context.Context) (Credential, error)

func (*AwsCredential) Validate

func (c *AwsCredential) Validate() hcl.Diagnostics

type AzureConnectionConfig

type AzureConnectionConfig struct {
	CertificatePassword *string  `cty:"certificate_password" hcl:"certificate_password,optional"`
	CertificatePath     *string  `cty:"certificate_path" hcl:"certificate_path,optional"`
	ClientID            *string  `cty:"client_id" hcl:"client_id,optional"`
	ClientSecret        *string  `cty:"client_secret" hcl:"client_secret,optional"`
	Environment         *string  `cty:"environment" hcl:"environment,optional"`
	IgnoreErrorCodes    []string `cty:"ignore_error_codes" hcl:"ignore_error_codes,optional"`
	Password            *string  `cty:"password" hcl:"password,optional"`
	SubscriptionID      *string  `cty:"subscription_id" hcl:"subscription_id,optional"`
	TenantID            *string  `cty:"tenant_id" hcl:"tenant_id,optional"`
	Username            *string  `cty:"username" hcl:"username,optional"`
}

func (*AzureConnectionConfig) GetCredential

func (c *AzureConnectionConfig) GetCredential(name string, shortName string) Credential

type AzureCredential

type AzureCredential struct {
	CredentialImpl

	ClientID     *string `json:"client_id,omitempty" cty:"client_id" hcl:"client_id,optional"`
	ClientSecret *string `json:"client_secret,omitempty" cty:"client_secret" hcl:"client_secret,optional"`
	TenantID     *string `json:"tenant_id,omitempty" cty:"tenant_id" hcl:"tenant_id,optional"`
	Environment  *string `json:"environment,omitempty" cty:"environment" hcl:"environment,optional"`
}

func (*AzureCredential) CtyValue

func (c *AzureCredential) CtyValue() (cty.Value, error)

func (*AzureCredential) Equals

func (c *AzureCredential) Equals(otherCredential Credential) bool

func (*AzureCredential) GetTtl

func (c *AzureCredential) GetTtl() int

func (*AzureCredential) Resolve

func (c *AzureCredential) Resolve(ctx context.Context) (Credential, error)

func (*AzureCredential) Validate

func (c *AzureCredential) Validate() hcl.Diagnostics

type BitbucketConnectionConfig

type BitbucketConnectionConfig struct {
	BaseURL  *string `cty:"base_url" hcl:"base_url"`
	Password *string `cty:"password" hcl:"password"`
	Username *string `cty:"username" hcl:"username"`
}

func (*BitbucketConnectionConfig) GetCredential

func (c *BitbucketConnectionConfig) GetCredential(name string, shortName string) Credential

type BitbucketCredential

type BitbucketCredential struct {
	CredentialImpl

	BaseURL  *string `json:"base_url,omitempty" cty:"base_url" hcl:"base_url,optional"`
	Username *string `json:"username,omitempty" cty:"username" hcl:"username,optional"`
	Password *string `json:"password,omitempty" cty:"password" hcl:"password,optional"`
}

func (*BitbucketCredential) CtyValue

func (c *BitbucketCredential) CtyValue() (cty.Value, error)

func (*BitbucketCredential) Equals

func (c *BitbucketCredential) Equals(otherCredential Credential) bool

func (*BitbucketCredential) GetTtl

func (c *BitbucketCredential) GetTtl() int

func (*BitbucketCredential) Resolve

func (c *BitbucketCredential) Resolve(ctx context.Context) (Credential, error)

func (*BitbucketCredential) Validate

func (c *BitbucketCredential) Validate() hcl.Diagnostics

type ClickUpConnectionConfig

type ClickUpConnectionConfig struct {
	Token *string `cty:"token" hcl:"token"`
}

func (*ClickUpConnectionConfig) GetCredential

func (c *ClickUpConnectionConfig) GetCredential(name string, shortName string) Credential

type ClickUpCredential

type ClickUpCredential struct {
	CredentialImpl

	Token *string `json:"token,omitempty" cty:"token" hcl:"token,optional"`
}

func (*ClickUpCredential) CtyValue

func (c *ClickUpCredential) CtyValue() (cty.Value, error)

func (*ClickUpCredential) Equals

func (c *ClickUpCredential) Equals(otherCredential Credential) bool

func (*ClickUpCredential) GetTtl

func (c *ClickUpCredential) GetTtl() int

func (*ClickUpCredential) Resolve

func (c *ClickUpCredential) Resolve(ctx context.Context) (Credential, error)

func (*ClickUpCredential) Validate

func (c *ClickUpCredential) Validate() hcl.Diagnostics

type Credential

type Credential interface {
	modconfig.HclResource
	modconfig.ResourceWithMetadata

	SetHclResourceImpl(hclResourceImpl modconfig.HclResourceImpl)
	GetCredentialType() string
	SetCredentialType(string)
	GetUnqualifiedName() string

	CtyValue() (cty.Value, error)
	Resolve(ctx context.Context) (Credential, error)
	GetTtl() int // in seconds

	Validate() hcl.Diagnostics

	Equals(Credential) bool
	// contains filtered or unexported methods
}

func NewCredential

func NewCredential(block *hcl.Block) (Credential, error)

type CredentialConfig

type CredentialConfig interface {
	GetCredential(string, string) Credential
}

func InstantiateCredentialConfig

func InstantiateCredentialConfig(key string) (CredentialConfig, error)

type CredentialImpl

type CredentialImpl struct {
	modconfig.HclResourceImpl
	modconfig.ResourceWithMetadataImpl

	// required to allow partial decoding
	HclResourceRemain hcl.Body `hcl:",remain" json:"-"`

	Type string `json:"type" cty:"type" hcl:"type,label"`
}

func (*CredentialImpl) GetCredentialType

func (c *CredentialImpl) GetCredentialType() string

func (*CredentialImpl) GetUnqualifiedName

func (c *CredentialImpl) GetUnqualifiedName() string

func (*CredentialImpl) SetCredentialType

func (c *CredentialImpl) SetCredentialType(credType string)

func (*CredentialImpl) SetHclResourceImpl

func (c *CredentialImpl) SetHclResourceImpl(hclResourceImpl modconfig.HclResourceImpl)

type CredentialImport

type CredentialImport struct {
	modconfig.HclResourceImpl
	modconfig.ResourceWithMetadataImpl

	FileName        string `json:"file_name"`
	StartLineNumber int    `json:"start_line_number"`
	EndLineNumber   int    `json:"end_line_number"`

	Source      *string  `json:"source" cty:"source" hcl:"source"`
	Connections []string `json:"connections" cty:"connections" hcl:"connections,optional"`
	Prefix      *string  `json:"prefix" cty:"prefix" hcl:"prefix,optional"`
}

The definition of a single Flowpipe CredentialImport

func NewCredentialImport

func NewCredentialImport(block *hcl.Block) *CredentialImport

func (CredentialImport) Equals

func (c CredentialImport) Equals(other CredentialImport) bool

func (*CredentialImport) GetConnections

func (c *CredentialImport) GetConnections() []string

func (*CredentialImport) GetPrefix

func (c *CredentialImport) GetPrefix() *string

func (*CredentialImport) GetSource

func (c *CredentialImport) GetSource() *string

func (*CredentialImport) SetFileReference

func (c *CredentialImport) SetFileReference(fileName string, startLineNumber int, endLineNumber int)

type DatadogConnectionConfig

type DatadogConnectionConfig struct {
	APIKey *string `cty:"api_key" hcl:"api_key"`
	APIUrl *string `cty:"api_url" hcl:"api_url"`
	AppKey *string `cty:"app_key" hcl:"app_key"`
}

func (*DatadogConnectionConfig) GetCredential

func (c *DatadogConnectionConfig) GetCredential(name string, shortName string) Credential

type DatadogCredential

type DatadogCredential struct {
	CredentialImpl

	APIKey *string `json:"api_key,omitempty" cty:"api_key" hcl:"api_key,optional"`
	AppKey *string `json:"app_key,omitempty" cty:"app_key" hcl:"app_key,optional"`
	APIUrl *string `json:"api_url,omitempty" cty:"api_url" hcl:"api_url,optional"`
}

func (*DatadogCredential) CtyValue

func (c *DatadogCredential) CtyValue() (cty.Value, error)

func (*DatadogCredential) Equals

func (c *DatadogCredential) Equals(otherCredential Credential) bool

func (*DatadogCredential) GetTtl

func (c *DatadogCredential) GetTtl() int

func (*DatadogCredential) Resolve

func (c *DatadogCredential) Resolve(ctx context.Context) (Credential, error)

func (*DatadogCredential) Validate

func (c *DatadogCredential) Validate() hcl.Diagnostics

type DiscordConnectionConfig

type DiscordConnectionConfig struct {
	Token *string `cty:"token" hcl:"token"`
}

func (*DiscordConnectionConfig) GetCredential

func (c *DiscordConnectionConfig) GetCredential(name string, shortName string) Credential

type DiscordCredential

type DiscordCredential struct {
	CredentialImpl

	Token *string `json:"token,omitempty" cty:"token" hcl:"token,optional"`
}

func (*DiscordCredential) CtyValue

func (c *DiscordCredential) CtyValue() (cty.Value, error)

func (*DiscordCredential) Equals

func (c *DiscordCredential) Equals(otherCredential Credential) bool

func (*DiscordCredential) GetTtl

func (c *DiscordCredential) GetTtl() int

func (*DiscordCredential) Resolve

func (c *DiscordCredential) Resolve(ctx context.Context) (Credential, error)

func (*DiscordCredential) Validate

func (c *DiscordCredential) Validate() hcl.Diagnostics

type FreshdeskConnectionConfig

type FreshdeskConnectionConfig struct {
	APIKey    *string `cty:"api_key" hcl:"api_key"`
	Subdomain *string `cty:"subdomain" hcl:"subdomain"`
}

func (*FreshdeskConnectionConfig) GetCredential

func (c *FreshdeskConnectionConfig) GetCredential(name string, shortName string) Credential

type FreshdeskCredential

type FreshdeskCredential struct {
	CredentialImpl

	APIKey    *string `json:"api_key,omitempty" cty:"api_key" hcl:"api_key,optional"`
	Subdomain *string `json:"subdomain,omitempty" cty:"subdomain" hcl:"subdomain,optional"`
}

func (*FreshdeskCredential) CtyValue

func (c *FreshdeskCredential) CtyValue() (cty.Value, error)

func (*FreshdeskCredential) Equals

func (c *FreshdeskCredential) Equals(otherCredential Credential) bool

func (*FreshdeskCredential) GetTtl

func (c *FreshdeskCredential) GetTtl() int

func (*FreshdeskCredential) Resolve

func (c *FreshdeskCredential) Resolve(ctx context.Context) (Credential, error)

func (*FreshdeskCredential) Validate

func (c *FreshdeskCredential) Validate() hcl.Diagnostics

type GcpConnectionConfig

type GcpConnectionConfig struct {
	Credentials               *string  `cty:"credentials" hcl:"credentials,optional"`
	IgnoreErrorCodes          []string `cty:"ignore_error_codes" hcl:"ignore_error_codes,optional"`
	ImpersonateServiceAccount *string  `cty:"impersonate_service_account" hcl:"impersonate_service_account,optional"`
	Project                   *string  `cty:"project" hcl:"project,optional"`
}

func (*GcpConnectionConfig) GetCredential

func (c *GcpConnectionConfig) GetCredential(name string, shortName string) Credential

type GcpCredential

type GcpCredential struct {
	CredentialImpl

	Credentials *string `json:"credentials,omitempty" cty:"credentials" hcl:"credentials,optional"`
	Ttl         *int    `json:"ttl,omitempty" cty:"ttl" hcl:"ttl,optional"`

	AccessToken *string `json:"access_token,omitempty" cty:"access_token" hcl:"access_token,optional"`
}

func (*GcpCredential) CtyValue

func (c *GcpCredential) CtyValue() (cty.Value, error)

func (*GcpCredential) Equals

func (c *GcpCredential) Equals(otherCredential Credential) bool

func (*GcpCredential) GetTtl

func (c *GcpCredential) GetTtl() int

func (*GcpCredential) Resolve

func (c *GcpCredential) Resolve(ctx context.Context) (Credential, error)

func (*GcpCredential) Validate

func (c *GcpCredential) Validate() hcl.Diagnostics

type GitLabCredential

type GitLabCredential struct {
	CredentialImpl

	Token *string `json:"token,omitempty" cty:"token" hcl:"token,optional"`
}

func (*GitLabCredential) CtyValue

func (c *GitLabCredential) CtyValue() (cty.Value, error)

func (*GitLabCredential) Equals

func (c *GitLabCredential) Equals(otherCredential Credential) bool

func (*GitLabCredential) GetTtl

func (c *GitLabCredential) GetTtl() int

func (*GitLabCredential) Resolve

func (c *GitLabCredential) Resolve(ctx context.Context) (Credential, error)

func (*GitLabCredential) Validate

func (c *GitLabCredential) Validate() hcl.Diagnostics

type GithubConnectionConfig

type GithubConnectionConfig struct {
	Token *string `cty:"token" hcl:"token"`
}

func (*GithubConnectionConfig) GetCredential

func (c *GithubConnectionConfig) GetCredential(name string, shortName string) Credential

type GithubCredential

type GithubCredential struct {
	CredentialImpl

	Token *string `json:"token,omitempty" cty:"token" hcl:"token,optional"`
}

func (*GithubCredential) CtyValue

func (c *GithubCredential) CtyValue() (cty.Value, error)

func (*GithubCredential) Equals

func (c *GithubCredential) Equals(otherCredential Credential) bool

func (*GithubCredential) GetTtl

func (c *GithubCredential) GetTtl() int

func (*GithubCredential) Resolve

func (c *GithubCredential) Resolve(ctx context.Context) (Credential, error)

func (*GithubCredential) Validate

func (c *GithubCredential) Validate() hcl.Diagnostics

type GitlabConnectionConfig

type GitlabConnectionConfig struct {
	BaseUrl *string `cty:"baseurl" hcl:"baseurl,optional"`
	Token   *string `cty:"token" hcl:"token"`
}

func (*GitlabConnectionConfig) GetCredential

func (c *GitlabConnectionConfig) GetCredential(name string, shortName string) Credential

type GuardrailsConnectionConfig

type GuardrailsConnectionConfig struct {
	AccessKey *string `cty:"access_key" hcl:"access_key,optional"`
	Profile   *string `cty:"profile" hcl:"profile,optional"`
	SecretKey *string `cty:"secret_key" hcl:"secret_key,optional"`
	Workspace *string `cty:"workspace" hcl:"workspace,optional"`
}

func (*GuardrailsConnectionConfig) GetCredential

func (c *GuardrailsConnectionConfig) GetCredential(name string, shortName string) Credential

type GuardrailsCredential

type GuardrailsCredential struct {
	CredentialImpl

	AccessKey *string `json:"access_key,omitempty" cty:"access_key" hcl:"access_key,optional"`
	SecretKey *string `json:"secret_key,omitempty" cty:"secret_key" hcl:"secret_key,optional"`
	Workspace *string `json:"workspace,omitempty" cty:"workspace" hcl:"workspace,optional"`
}

func (*GuardrailsCredential) CtyValue

func (c *GuardrailsCredential) CtyValue() (cty.Value, error)

func (*GuardrailsCredential) Equals

func (c *GuardrailsCredential) Equals(otherCredential Credential) bool

func (*GuardrailsCredential) GetTtl

func (c *GuardrailsCredential) GetTtl() int

func (*GuardrailsCredential) Resolve

func (*GuardrailsCredential) Validate

func (c *GuardrailsCredential) Validate() hcl.Diagnostics

type IP2LocationIOConnectionConfig

type IP2LocationIOConnectionConfig struct {
	APIKey *string `cty:"api_key" hcl:"api_key"`
}

func (*IP2LocationIOConnectionConfig) GetCredential

func (c *IP2LocationIOConnectionConfig) GetCredential(name string, shortName string) Credential

type IP2LocationIOCredential

type IP2LocationIOCredential struct {
	CredentialImpl

	APIKey *string `json:"api_key,omitempty" cty:"api_key" hcl:"api_key,optional"`
}

func (*IP2LocationIOCredential) CtyValue

func (c *IP2LocationIOCredential) CtyValue() (cty.Value, error)

func (*IP2LocationIOCredential) Equals

func (c *IP2LocationIOCredential) Equals(otherCredential Credential) bool

func (*IP2LocationIOCredential) GetTtl

func (c *IP2LocationIOCredential) GetTtl() int

func (*IP2LocationIOCredential) Resolve

func (*IP2LocationIOCredential) Validate

func (c *IP2LocationIOCredential) Validate() hcl.Diagnostics

type IPStackConnectionConfig

type IPStackConnectionConfig struct {
	AccessKey *string `cty:"access_key" hcl:"access_key,optional"`
	Https     *bool   `cty:"https" hcl:"https,optional"`
	Security  *bool   `cty:"security" hcl:"security,optional"`
	Token     *string `cty:"token" hcl:"token,optional"`
}

func (*IPStackConnectionConfig) GetCredential

func (c *IPStackConnectionConfig) GetCredential(name string, shortName string) Credential

type IPstackCredential

type IPstackCredential struct {
	CredentialImpl

	AccessKey *string `json:"access_key,omitempty" cty:"access_key" hcl:"access_key,optional"`
}

func (*IPstackCredential) CtyValue

func (c *IPstackCredential) CtyValue() (cty.Value, error)

func (*IPstackCredential) Equals

func (c *IPstackCredential) Equals(otherCredential Credential) bool

func (*IPstackCredential) GetTtl

func (c *IPstackCredential) GetTtl() int

func (*IPstackCredential) Resolve

func (c *IPstackCredential) Resolve(ctx context.Context) (Credential, error)

func (*IPstackCredential) Validate

func (c *IPstackCredential) Validate() hcl.Diagnostics

type JiraConnectionConfig

type JiraConnectionConfig struct {
	APIToken            *string `cty:"api_token" hcl:"api_token,optional"`
	BaseURL             *string `cty:"base_url" hcl:"base_url,optional"`
	PersonalAccessToken *string `cty:"personal_access_token" hcl:"personal_access_token,optional"`
	Token               *string `cty:"token" hcl:"token,optional"`
	Username            *string `cty:"username" hcl:"username,optional"`
}

func (*JiraConnectionConfig) GetCredential

func (c *JiraConnectionConfig) GetCredential(name string, shortName string) Credential

type JiraCredential

type JiraCredential struct {
	CredentialImpl

	APIToken *string `json:"api_token,omitempty" cty:"api_token" hcl:"api_token,optional"`
	BaseURL  *string `json:"base_url,omitempty" cty:"base_url" hcl:"base_url,optional"`
	Username *string `json:"username,omitempty" cty:"username" hcl:"username,optional"`
}

func (*JiraCredential) CtyValue

func (c *JiraCredential) CtyValue() (cty.Value, error)

func (*JiraCredential) Equals

func (c *JiraCredential) Equals(otherCredential Credential) bool

func (*JiraCredential) GetTtl

func (c *JiraCredential) GetTtl() int

func (*JiraCredential) Resolve

func (c *JiraCredential) Resolve(ctx context.Context) (Credential, error)

func (*JiraCredential) Validate

func (c *JiraCredential) Validate() hcl.Diagnostics

type JumpCloudConnectionConfig

type JumpCloudConnectionConfig struct {
	APIKey *string `cty:"api_key" hcl:"api_key"`
	OrgID  *string `cty:"org_id" hcl:"org_id,optional"`
}

func (*JumpCloudConnectionConfig) GetCredential

func (c *JumpCloudConnectionConfig) GetCredential(name string, shortName string) Credential

type JumpCloudCredential

type JumpCloudCredential struct {
	CredentialImpl

	APIKey *string `json:"api_key,omitempty" cty:"api_key" hcl:"api_key,optional"`
}

func (*JumpCloudCredential) CtyValue

func (c *JumpCloudCredential) CtyValue() (cty.Value, error)

func (*JumpCloudCredential) Equals

func (c *JumpCloudCredential) Equals(otherCredential Credential) bool

func (*JumpCloudCredential) GetTtl

func (c *JumpCloudCredential) GetTtl() int

func (*JumpCloudCredential) Resolve

func (c *JumpCloudCredential) Resolve(ctx context.Context) (Credential, error)

func (*JumpCloudCredential) Validate

func (c *JumpCloudCredential) Validate() hcl.Diagnostics

type MastodonConnectionConfig

type MastodonConnectionConfig struct {
	AccessToken *string `cty:"access_token" hcl:"access_token"`
	App         *string `cty:"app" hcl:"app"`
	MaxToots    *string `cty:"max_toots" hcl:"max_toots"`
	Server      *string `cty:"server" hcl:"server"`
}

func (*MastodonConnectionConfig) GetCredential

func (c *MastodonConnectionConfig) GetCredential(name string, shortName string) Credential

type MastodonCredential

type MastodonCredential struct {
	CredentialImpl

	AccessToken *string `json:"access_token,omitempty" cty:"access_token" hcl:"access_token,optional"`
	Server      *string `json:"server,omitempty" cty:"server" hcl:"server,optional"`
}

func (*MastodonCredential) CtyValue

func (c *MastodonCredential) CtyValue() (cty.Value, error)

func (*MastodonCredential) Equals

func (c *MastodonCredential) Equals(otherCredential Credential) bool

func (*MastodonCredential) GetTtl

func (c *MastodonCredential) GetTtl() int

func (*MastodonCredential) Resolve

func (c *MastodonCredential) Resolve(ctx context.Context) (Credential, error)

func (*MastodonCredential) Validate

func (c *MastodonCredential) Validate() hcl.Diagnostics

type MicrosoftTeamsConnectionConfig

type MicrosoftTeamsConnectionConfig struct {
	AccessToken *string `cty:"access_token" hcl:"access_token"`
}

func (*MicrosoftTeamsConnectionConfig) GetCredential

func (c *MicrosoftTeamsConnectionConfig) GetCredential(name string, shortName string) Credential

type MicrosoftTeamsCredential

type MicrosoftTeamsCredential struct {
	CredentialImpl

	AccessToken *string `json:"access_token,omitempty" cty:"access_token" hcl:"access_token,optional"`
}

func (*MicrosoftTeamsCredential) CtyValue

func (c *MicrosoftTeamsCredential) CtyValue() (cty.Value, error)

func (*MicrosoftTeamsCredential) Equals

func (c *MicrosoftTeamsCredential) Equals(otherCredential Credential) bool

func (*MicrosoftTeamsCredential) GetTtl

func (c *MicrosoftTeamsCredential) GetTtl() int

func (*MicrosoftTeamsCredential) Resolve

func (*MicrosoftTeamsCredential) Validate

func (c *MicrosoftTeamsCredential) Validate() hcl.Diagnostics

type OktaConnectionConfig

type OktaConnectionConfig struct {
	ClientID   *string `cty:"client_id" hcl:"client_id,optional"`
	Domain     *string `cty:"domain" hcl:"domain,optional"`
	PrivateKey *string `cty:"private_key" hcl:"private_key,optional"`
	Token      *string `cty:"token" hcl:"token,optional"`
}

func (*OktaConnectionConfig) GetCredential

func (c *OktaConnectionConfig) GetCredential(name string, shortName string) Credential

type OktaCredential

type OktaCredential struct {
	CredentialImpl

	Domain *string `json:"domain,omitempty" cty:"domain" hcl:"domain,optional"`
	Token  *string `json:"token,omitempty" cty:"token" hcl:"token,optional"`
}

func (*OktaCredential) CtyValue

func (c *OktaCredential) CtyValue() (cty.Value, error)

func (*OktaCredential) Equals

func (c *OktaCredential) Equals(otherCredential Credential) bool

func (*OktaCredential) GetTtl

func (c *OktaCredential) GetTtl() int

func (*OktaCredential) Resolve

func (c *OktaCredential) Resolve(ctx context.Context) (Credential, error)

func (*OktaCredential) Validate

func (c *OktaCredential) Validate() hcl.Diagnostics

type OpenAIConnectionConfig

type OpenAIConnectionConfig struct {
	APIKey *string `cty:"api_key" hcl:"api_key"`
}

func (*OpenAIConnectionConfig) GetCredential

func (c *OpenAIConnectionConfig) GetCredential(name string, shortName string) Credential

type OpenAICredential

type OpenAICredential struct {
	CredentialImpl

	APIKey *string `json:"api_key,omitempty" cty:"api_key" hcl:"api_key,optional"`
}

func (*OpenAICredential) CtyValue

func (c *OpenAICredential) CtyValue() (cty.Value, error)

func (*OpenAICredential) Equals

func (c *OpenAICredential) Equals(otherCredential Credential) bool

func (*OpenAICredential) GetTtl

func (c *OpenAICredential) GetTtl() int

func (*OpenAICredential) Resolve

func (c *OpenAICredential) Resolve(ctx context.Context) (Credential, error)

func (*OpenAICredential) Validate

func (c *OpenAICredential) Validate() hcl.Diagnostics

type OpsgenieConnectionConfig

type OpsgenieConnectionConfig struct {
	AlertAPIKey    *string `cty:"alert_api_key" hcl:"alert_api_key"`
	IncidentAPIKey *string `cty:"incident_api_key" hcl:"incident_api_key"`
}

func (*OpsgenieConnectionConfig) GetCredential

func (c *OpsgenieConnectionConfig) GetCredential(name string, shortName string) Credential

type OpsgenieCredential

type OpsgenieCredential struct {
	CredentialImpl

	AlertAPIKey    *string `json:"alert_api_key,omitempty" cty:"alert_api_key" hcl:"alert_api_key,optional"`
	IncidentAPIKey *string `json:"incident_api_key,omitempty" cty:"incident_api_key" hcl:"incident_api_key,optional"`
}

func (*OpsgenieCredential) CtyValue

func (c *OpsgenieCredential) CtyValue() (cty.Value, error)

func (*OpsgenieCredential) Equals

func (c *OpsgenieCredential) Equals(otherCredential Credential) bool

func (*OpsgenieCredential) GetTtl

func (c *OpsgenieCredential) GetTtl() int

func (*OpsgenieCredential) Resolve

func (c *OpsgenieCredential) Resolve(ctx context.Context) (Credential, error)

func (*OpsgenieCredential) Validate

func (c *OpsgenieCredential) Validate() hcl.Diagnostics

type PagerDutyConnectionConfig

type PagerDutyConnectionConfig struct {
	Token *string `cty:"token" hcl:"token"`
}

func (*PagerDutyConnectionConfig) GetCredential

func (c *PagerDutyConnectionConfig) GetCredential(name string, shortName string) Credential

type PagerDutyCredential

type PagerDutyCredential struct {
	CredentialImpl

	Token *string `json:"token,omitempty" cty:"token" hcl:"token,optional"`
}

func (*PagerDutyCredential) CtyValue

func (c *PagerDutyCredential) CtyValue() (cty.Value, error)

func (*PagerDutyCredential) Equals

func (c *PagerDutyCredential) Equals(otherCredential Credential) bool

func (*PagerDutyCredential) GetTtl

func (c *PagerDutyCredential) GetTtl() int

func (*PagerDutyCredential) Resolve

func (c *PagerDutyCredential) Resolve(ctx context.Context) (Credential, error)

func (*PagerDutyCredential) Validate

func (c *PagerDutyCredential) Validate() hcl.Diagnostics

type PipesConnectionConfig

type PipesConnectionConfig struct {
	Host  *string `cty:"host" hcl:"host,optional"`
	Token *string `cty:"token" hcl:"token"`
}

func (*PipesConnectionConfig) GetCredential

func (c *PipesConnectionConfig) GetCredential(name string, shortName string) Credential

type PipesCredential

type PipesCredential struct {
	CredentialImpl

	Token *string `json:"token,omitempty" cty:"token" hcl:"token,optional"`
}

func (*PipesCredential) CtyValue

func (c *PipesCredential) CtyValue() (cty.Value, error)

func (*PipesCredential) Equals

func (c *PipesCredential) Equals(otherCredential Credential) bool

func (*PipesCredential) GetTtl

func (c *PipesCredential) GetTtl() int

func (*PipesCredential) Resolve

func (c *PipesCredential) Resolve(ctx context.Context) (Credential, error)

func (*PipesCredential) Validate

func (c *PipesCredential) Validate() hcl.Diagnostics

type SendGridConnectionConfig

type SendGridConnectionConfig struct {
	APIKey *string `cty:"api_key" hcl:"api_key"`
}

func (*SendGridConnectionConfig) GetCredential

func (c *SendGridConnectionConfig) GetCredential(name string, shortName string) Credential

type SendGridCredential

type SendGridCredential struct {
	CredentialImpl

	APIKey *string `json:"api_key,omitempty" cty:"api_key" hcl:"api_key,optional"`
}

func (*SendGridCredential) CtyValue

func (c *SendGridCredential) CtyValue() (cty.Value, error)

func (*SendGridCredential) Equals

func (c *SendGridCredential) Equals(otherCredential Credential) bool

func (*SendGridCredential) GetTtl

func (c *SendGridCredential) GetTtl() int

func (*SendGridCredential) Resolve

func (c *SendGridCredential) Resolve(ctx context.Context) (Credential, error)

func (*SendGridCredential) Validate

func (c *SendGridCredential) Validate() hcl.Diagnostics

type ServiceNowConnectionConfig

type ServiceNowConnectionConfig struct {
	ClientID     *string `cty:"client_id" hcl:"client_id,optional"`
	ClientSecret *string `cty:"client_secret" hcl:"client_secret,optional"`
	InstanceURL  *string `cty:"instance_url" hcl:"instance_url"`
	Objects      *string `cty:"objects" hcl:"objects,optional"`
	Password     *string `cty:"password" hcl:"password"`
	Username     *string `cty:"username" hcl:"username"`
}

func (*ServiceNowConnectionConfig) GetCredential

func (c *ServiceNowConnectionConfig) GetCredential(name string, shortName string) Credential

type ServiceNowCredential

type ServiceNowCredential struct {
	CredentialImpl

	InstanceURL *string `json:"instance_url,omitempty" cty:"instance_url" hcl:"instance_url,optional"`
	Username    *string `json:"username,omitempty" cty:"username" hcl:"username,optional"`
	Password    *string `json:"password,omitempty" cty:"password" hcl:"password,optional"`
}

func (*ServiceNowCredential) CtyValue

func (c *ServiceNowCredential) CtyValue() (cty.Value, error)

func (*ServiceNowCredential) Equals

func (c *ServiceNowCredential) Equals(otherCredential Credential) bool

func (*ServiceNowCredential) GetTtl

func (c *ServiceNowCredential) GetTtl() int

func (*ServiceNowCredential) Resolve

func (*ServiceNowCredential) Validate

func (c *ServiceNowCredential) Validate() hcl.Diagnostics

type SlackConnectionConfig

type SlackConnectionConfig struct {
	Token *string `cty:"token" hcl:"token"`
}

func (*SlackConnectionConfig) GetCredential

func (c *SlackConnectionConfig) GetCredential(name string, shortName string) Credential

type SlackCredential

type SlackCredential struct {
	CredentialImpl

	Token *string `json:"token,omitempty" cty:"token" hcl:"token,optional"`
}

func (*SlackCredential) CtyValue

func (c *SlackCredential) CtyValue() (cty.Value, error)

func (*SlackCredential) Equals

func (c *SlackCredential) Equals(otherCredential Credential) bool

func (*SlackCredential) GetTtl

func (c *SlackCredential) GetTtl() int

func (*SlackCredential) Resolve

func (c *SlackCredential) Resolve(ctx context.Context) (Credential, error)

func (*SlackCredential) Validate

func (c *SlackCredential) Validate() hcl.Diagnostics

type TrelloConnectionConfig

type TrelloConnectionConfig struct {
	APIKey *string `cty:"api_key" hcl:"api_key"`
	Token  *string `cty:"token" hcl:"token"`
}

func (*TrelloConnectionConfig) GetCredential

func (c *TrelloConnectionConfig) GetCredential(name string, shortName string) Credential

type TrelloCredential

type TrelloCredential struct {
	CredentialImpl

	APIKey *string `json:"api_key,omitempty" cty:"api_key" hcl:"api_key,optional"`
	Token  *string `json:"token,omitempty" cty:"token" hcl:"token,optional"`
}

func (*TrelloCredential) CtyValue

func (c *TrelloCredential) CtyValue() (cty.Value, error)

func (*TrelloCredential) Equals

func (c *TrelloCredential) Equals(otherCredential Credential) bool

func (*TrelloCredential) GetTtl

func (c *TrelloCredential) GetTtl() int

func (*TrelloCredential) Resolve

func (c *TrelloCredential) Resolve(ctx context.Context) (Credential, error)

func (*TrelloCredential) Validate

func (c *TrelloCredential) Validate() hcl.Diagnostics

type UptimeRobotConnectionConfig

type UptimeRobotConnectionConfig struct {
	APIKey *string `cty:"api_key" hcl:"api_key"`
}

func (*UptimeRobotConnectionConfig) GetCredential

func (c *UptimeRobotConnectionConfig) GetCredential(name string, shortName string) Credential

type UptimeRobotCredential

type UptimeRobotCredential struct {
	CredentialImpl

	APIKey *string `json:"api_key,omitempty" cty:"api_key" hcl:"api_key,optional"`
}

func (*UptimeRobotCredential) CtyValue

func (c *UptimeRobotCredential) CtyValue() (cty.Value, error)

func (*UptimeRobotCredential) Equals

func (c *UptimeRobotCredential) Equals(otherCredential Credential) bool

func (*UptimeRobotCredential) GetTtl

func (c *UptimeRobotCredential) GetTtl() int

func (*UptimeRobotCredential) Resolve

func (*UptimeRobotCredential) Validate

func (c *UptimeRobotCredential) Validate() hcl.Diagnostics

type UrlscanConnectionConfig

type UrlscanConnectionConfig struct {
	APIKey *string `cty:"api_key" hcl:"api_key"`
}

func (*UrlscanConnectionConfig) GetCredential

func (c *UrlscanConnectionConfig) GetCredential(name string, shortName string) Credential

type UrlscanCredential

type UrlscanCredential struct {
	CredentialImpl

	APIKey *string `json:"api_key,omitempty" cty:"api_key" hcl:"api_key,optional"`
}

func (*UrlscanCredential) CtyValue

func (c *UrlscanCredential) CtyValue() (cty.Value, error)

func (*UrlscanCredential) Equals

func (c *UrlscanCredential) Equals(otherCredential Credential) bool

func (*UrlscanCredential) GetTtl

func (c *UrlscanCredential) GetTtl() int

func (*UrlscanCredential) Resolve

func (c *UrlscanCredential) Resolve(ctx context.Context) (Credential, error)

func (*UrlscanCredential) Validate

func (c *UrlscanCredential) Validate() hcl.Diagnostics

type VaultConnectionConfig

type VaultConnectionConfig struct {
	Address     *string `cty:"address" hcl:"address"`
	AuthType    *string `cty:"auth_type" hcl:"auth_type,optional"`
	AwsProvider *string `cty:"aws_provider" hcl:"aws_provider,optional"`
	AwsRole     *string `cty:"aws_role" hcl:"aws_role,optional"`
	Token       *string `cty:"token" hcl:"token,optional"`
}

func (*VaultConnectionConfig) GetCredential

func (c *VaultConnectionConfig) GetCredential(name string, shortName string) Credential

type VaultCredential

type VaultCredential struct {
	CredentialImpl

	Address *string `json:"address,omitempty" cty:"address" hcl:"address,optional"`
	Token   *string `json:"token,omitempty" cty:"token" hcl:"token,optional"`
}

func (*VaultCredential) CtyValue

func (c *VaultCredential) CtyValue() (cty.Value, error)

func (*VaultCredential) Equals

func (c *VaultCredential) Equals(otherCredential Credential) bool

func (*VaultCredential) GetTtl

func (c *VaultCredential) GetTtl() int

func (*VaultCredential) Resolve

func (c *VaultCredential) Resolve(ctx context.Context) (Credential, error)

func (*VaultCredential) Validate

func (c *VaultCredential) Validate() hcl.Diagnostics

type VirusTotalConnectionConfig

type VirusTotalConnectionConfig struct {
	APIKey *string `cty:"api_key" hcl:"api_key"`
}

func (*VirusTotalConnectionConfig) GetCredential

func (c *VirusTotalConnectionConfig) GetCredential(name string, shortName string) Credential

type VirusTotalCredential

type VirusTotalCredential struct {
	CredentialImpl

	APIKey *string `json:"api_key,omitempty" cty:"api_key" hcl:"api_key,optional"`
}

func (*VirusTotalCredential) CtyValue

func (c *VirusTotalCredential) CtyValue() (cty.Value, error)

func (*VirusTotalCredential) Equals

func (c *VirusTotalCredential) Equals(otherCredential Credential) bool

func (*VirusTotalCredential) GetTtl

func (c *VirusTotalCredential) GetTtl() int

func (*VirusTotalCredential) Resolve

func (*VirusTotalCredential) Validate

func (c *VirusTotalCredential) Validate() hcl.Diagnostics

type ZendeskConnectionConfig

type ZendeskConnectionConfig struct {
	Email     *string `cty:"email" hcl:"email"`
	Subdomain *string `cty:"subdomain" hcl:"subdomain"`
	Token     *string `cty:"token" hcl:"token"`
}

func (*ZendeskConnectionConfig) GetCredential

func (c *ZendeskConnectionConfig) GetCredential(name string, shortName string) Credential

type ZendeskCredential

type ZendeskCredential struct {
	CredentialImpl

	Email     *string `json:"email,omitempty" cty:"email" hcl:"email,optional"`
	Subdomain *string `json:"subdomain,omitempty" cty:"subdomain" hcl:"subdomain,optional"`
	Token     *string `json:"token,omitempty" cty:"token" hcl:"token,optional"`
}

func (*ZendeskCredential) CtyValue

func (c *ZendeskCredential) CtyValue() (cty.Value, error)

func (*ZendeskCredential) Equals

func (c *ZendeskCredential) Equals(otherCredential Credential) bool

func (*ZendeskCredential) GetTtl

func (c *ZendeskCredential) GetTtl() int

func (*ZendeskCredential) Resolve

func (c *ZendeskCredential) Resolve(ctx context.Context) (Credential, error)

func (*ZendeskCredential) Validate

func (c *ZendeskCredential) Validate() hcl.Diagnostics

Jump to

Keyboard shortcuts

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