integrations

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TwilioKeys   = []string{"account_sid", "api_key_secret", "api_key_sid"}
	MongoKeys    = []string{"private_key", "public_key"}
	AWSKeys      = []string{"access_keys", "federated_workload_identity"}
	GCPKeys      = []string{"service_account_key", "federated_workload_identity"}
	PostgresKeys = []string{"connection_string"}
)
View Source
var IntegrationProviders = maps.Keys(providerToRequiredFields)

Functions

func CtyValueToMap

func CtyValueToMap(value cty.Value) (map[string]any, error)

func NewCmdCreate

func NewCmdCreate(ctx *cmd.Context, runF func(*CreateOpts) error) *cmd.Command

func NewCmdDelete

func NewCmdDelete(ctx *cmd.Context, runF func(*DeleteOpts) error) *cmd.Command

func NewCmdIntegrations

func NewCmdIntegrations(ctx *cmd.Context) *cmd.Command

func NewCmdList

func NewCmdList(ctx *cmd.Context, runF func(*ListOpts) error) *cmd.Command

func NewCmdRead

func NewCmdRead(ctx *cmd.Context, runF func(*ReadOpts) error) *cmd.Command

func NewCmdUpdate

func NewCmdUpdate(ctx *cmd.Context, runF func(*UpdateOpts) error) *cmd.Command

Types

type CreateOpts

type CreateOpts struct {
	Ctx     context.Context
	Profile *profile.Profile
	IO      iostreams.IOStreams
	Output  *format.Outputter

	IntegrationName string
	ConfigFilePath  string
	Client          secret_service.ClientService
}

type DeleteOpts

type DeleteOpts struct {
	Ctx     context.Context
	Profile *profile.Profile
	Output  *format.Outputter
	IO      iostreams.IOStreams

	IntegrationName string
	Type            IntegrationType
	Client          secret_service.ClientService
}

type IntegrationConfig

type IntegrationConfig struct {
	Type    IntegrationType `hcl:"type"`
	Details cty.Value       `hcl:"details"`
}

type IntegrationType

type IntegrationType string
const (
	Twilio       IntegrationType = "twilio"
	MongoDBAtlas IntegrationType = "mongodb-atlas"
	AWS          IntegrationType = "aws"
	GCP          IntegrationType = "gcp"
	Postgres     IntegrationType = "postgres"
)

type ListOpts

type ListOpts struct {
	Ctx     context.Context
	Profile *profile.Profile
	Output  *format.Outputter
	IO      iostreams.IOStreams

	Type   IntegrationType
	Client secret_service.ClientService
}

type ReadOpts

type ReadOpts struct {
	Ctx     context.Context
	Profile *profile.Profile
	Output  *format.Outputter
	IO      iostreams.IOStreams

	IntegrationName string
	Type            IntegrationType
	Client          secret_service.ClientService
}

type UpdateOpts

type UpdateOpts struct {
	Ctx     context.Context
	Profile *profile.Profile
	IO      iostreams.IOStreams
	Output  *format.Outputter

	IntegrationName string
	ConfigFilePath  string
	Client          secret_service.ClientService
}

Jump to

Keyboard shortcuts

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